(thumbs-thumbname): The resulting thubname includes a hash value to improve its
[emacs.git] / configure
blobb482859f4c6c3d2bb4243d627e76ae291655b59e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 _ACEOF
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 cd "$ac_popdir"
992 done
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1013 $ $0 $@
1015 _ACEOF
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 _ASUNAME
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1049 } >&5
1051 cat >&5 <<_ACEOF
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1058 _ACEOF
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1073 for ac_arg
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1120 echo
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 esac;
1143 echo
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1244 done
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1364 gameuser=games
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1381 else :
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1457 esac
1458 with_x_toolkit=$val
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 canonical=$host
1685 configuration=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 esac
1724 ## NetBSD ports
1725 *-*-netbsd* )
1726 opsys=netbsd
1727 if test -f /usr/lib/crti.o; then
1729 cat >>confdefs.h <<\_ACEOF
1730 #define HAVE_CRTIN
1731 _ACEOF
1735 case "${canonical}" in
1736 alpha*-*-netbsd*) machine=alpha ;;
1737 i[3456]86-*-netbsd*) machine=intel386 ;;
1738 m68k-*-netbsd*)
1739 # This is somewhat bogus.
1740 machine=hp9000s300 ;;
1741 powerpc-apple-netbsd*) machine=macppc ;;
1742 mips-*-netbsd*) machine=pmax ;;
1743 mipsel-*-netbsd*) machine=pmax ;;
1744 mipseb-*-netbsd*) machine=pmax ;;
1745 ns32k-*-netbsd*) machine=ns32000 ;;
1746 powerpc-*-netbsd*) machine=macppc ;;
1747 sparc*-*-netbsd*) machine=sparc ;;
1748 vax-*-netbsd*) machine=vax ;;
1749 arm-*-netbsd*) machine=arm ;;
1750 esac
1753 ## OpenBSD ports
1754 *-*-openbsd* )
1755 opsys=openbsd
1756 case "${canonical}" in
1757 alpha*-*-openbsd*) machine=alpha ;;
1758 i386-*-openbsd*) machine=intel386 ;;
1759 m68k-*-openbsd*) machine=hp9000s300 ;;
1760 mipsel-*-openbsd*) machine=pmax ;;
1761 ns32k-*-openbsd*) machine=ns32000 ;;
1762 sparc-*-openbsd*) machine=sparc ;;
1763 vax-*-openbsd*) machine=vax ;;
1764 esac
1767 ## Acorn RISCiX:
1768 arm-acorn-riscix1.1* )
1769 machine=acorn opsys=riscix1-1
1771 arm-acorn-riscix1.2* | arm-acorn-riscix )
1772 ## This name is riscix12 instead of riscix1.2
1773 ## to avoid a file name conflict on MSDOS.
1774 machine=acorn opsys=riscix12
1777 ## BSDI ports
1778 *-*-bsdi* )
1779 opsys=bsdi
1780 case "${canonical}" in
1781 i[345]86-*-bsdi*) machine=intel386 ;;
1782 sparc-*-bsdi*) machine=sparc ;;
1783 powerpc-*-bsdi*) machine=macppc ;;
1784 esac
1785 case "${canonical}" in
1786 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1787 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1788 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1789 *-*-bsdi3* ) opsys=bsdos3 ;;
1790 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1791 esac
1794 ## Alliant machines
1795 ## Strictly speaking, we need the version of the alliant operating
1796 ## system to choose the right machine file, but currently the
1797 ## configuration name doesn't tell us enough to choose the right
1798 ## one; we need to give alliants their own operating system name to
1799 ## do this right. When someone cares, they can help us.
1800 fx80-alliant-* )
1801 machine=alliant4 opsys=bsd4-2
1803 i860-alliant-* )
1804 machine=alliant-2800 opsys=bsd4-3
1807 ## Alpha (DEC) machines.
1808 alpha*-dec-osf* )
1809 machine=alpha opsys=osf1
1810 # This is needed to find X11R6.1 libraries for certain tests.
1811 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1812 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1813 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1814 # due to non-traditional preprocessing with the current compiler
1815 # defaults. OSF 4 can also have that compiler version, and there
1816 # seems always to have been a usable /usr/bin/cpp.
1817 NON_GNU_CPP=/usr/bin/cpp
1818 case "${canonical}" in
1819 alpha*-dec-osf[5-9]*)
1820 opsys=osf5-0 ;;
1821 esac
1824 alpha*-*-linux-gnu* )
1825 machine=alpha opsys=gnu-linux
1828 arm*-*-linux-gnu* )
1829 machine=arm opsys=gnu-linux
1832 ## Altos 3068
1833 m68*-altos-sysv* )
1834 machine=altos opsys=usg5-2
1837 ## Amdahl UTS
1838 580-amdahl-sysv* )
1839 machine=amdahl opsys=usg5-2-2
1842 ## Apollo, Domain/OS
1843 m68*-apollo-* )
1844 machine=apollo opsys=bsd4-3
1847 ## AT&T 3b2, 3b5, 3b15, 3b20
1848 we32k-att-sysv* )
1849 machine=att3b opsys=usg5-2-2
1852 ## AT&T 3b1 - The Mighty Unix PC!
1853 m68*-att-sysv* )
1854 machine=7300 opsys=usg5-2-2
1857 ## Bull dpx20
1858 rs6000-bull-bosx* )
1859 machine=ibmrs6000 opsys=aix3-2
1862 ## Bull dpx2
1863 m68*-bull-sysv3* )
1864 machine=dpx2 opsys=usg5-3
1867 ## Bull sps7
1868 m68*-bull-sysv2* )
1869 machine=sps7 opsys=usg5-2
1872 ## CCI 5/32, 6/32 -- see "Tahoe".
1874 ## Celerity
1875 ## I don't know what configuration name to use for this; config.sub
1876 ## doesn't seem to know anything about it. Hey, Celerity users, get
1877 ## in touch with us!
1878 celerity-celerity-bsd* )
1879 machine=celerity opsys=bsd4-2
1882 ## Clipper
1883 ## What operating systems does this chip run that Emacs has been
1884 ## tested on?
1885 clipper-* )
1886 machine=clipper
1887 ## We'll use the catch-all code at the bottom to guess the
1888 ## operating system.
1891 ## Compaq Nonstop
1892 mips-compaq-nonstopux* )
1893 machine=nonstopux opsys=nonstopux
1896 ## Convex
1897 *-convex-bsd* | *-convex-convexos* )
1898 machine=convex opsys=bsd4-3
1899 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1900 NON_GNU_CPP="cc -E -P"
1903 ## Cubix QBx/386
1904 i[3456]86-cubix-sysv* )
1905 machine=intel386 opsys=usg5-3
1908 ## Cydra 5
1909 cydra*-cydrome-sysv* )
1910 machine=cydra5 opsys=usg5-3
1913 ## Data General AViiON Machines
1914 ## DG changed naming conventions with the release of 5.4.4.10, they
1915 ## dropped the initial 5.4 but left the intervening R. Because of the
1916 ## R this shouldn't conflict with older versions of the OS (which I
1917 ## think were named like dgux4.*). In addition, DG new AViiONs series
1918 ## uses either Motorola M88k or Intel Pentium CPUs.
1919 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1920 machine=aviion opsys=dgux4
1922 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1923 ## This name is dgux5-4-3 instead of dgux5-4r3
1924 ## to avoid a file name conflict on MSDOS.
1925 machine=aviion opsys=dgux5-4-3
1927 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1928 machine=aviion opsys=dgux5-4r2
1930 m88k-dg-dgux* )
1931 machine=aviion opsys=dgux
1934 ## Data General AViiON Intel (x86) Machines
1935 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1936 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1937 i[345]86-dg-dguxR4* )
1938 machine=aviion-intel opsys=dgux4
1941 ## DECstations
1942 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1943 machine=pmax opsys=bsd4-2
1945 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1946 machine=pmax opsys=bsd4-3
1948 mips-dec-ultrix* )
1949 machine=pmax opsys=ultrix4-3
1951 mips-dec-osf* )
1952 machine=pmax opsys=osf1
1954 mips-dec-mach_bsd4.3* )
1955 machine=pmax opsys=mach-bsd4-3
1958 ## Motorola Delta machines
1959 m68k-motorola-sysv* | m68000-motorola-sysv* )
1960 machine=delta opsys=usg5-3
1961 if test -z "`type gnucc | grep 'not found'`"
1962 then
1963 if test -s /etc/167config
1964 then CC="gnucc -m68040"
1965 else CC="gnucc -m68881"
1967 else
1968 if test -z "`type gcc | grep 'not found'`"
1969 then CC=gcc
1970 else CC=cc
1974 m88k-motorola-sysv4* )
1975 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1976 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1977 # I hope there are not other 4.0 versions for this machine
1978 # which really need usg5-4 instead.
1979 machine=delta88k opsys=usg5-4-2
1981 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1982 machine=delta88k opsys=usg5-3
1985 ## Dual machines
1986 m68*-dual-sysv* )
1987 machine=dual opsys=usg5-2
1989 m68*-dual-uniplus* )
1990 machine=dual opsys=unipl5-2
1993 ## Elxsi 6400
1994 elxsi-elxsi-sysv* )
1995 machine=elxsi opsys=usg5-2
1998 ## Encore machines
1999 ns16k-encore-bsd* )
2000 machine=ns16000 opsys=umax
2003 ## The GEC 63 - apparently, this port isn't really finished yet.
2004 # I'm sure we finished off the last of the machines, though. -- fx
2006 ## Gould Power Node and NP1
2007 pn-gould-bsd4.2* )
2008 machine=gould opsys=bsd4-2
2010 pn-gould-bsd4.3* )
2011 machine=gould opsys=bsd4-3
2013 np1-gould-bsd* )
2014 machine=gould-np1 opsys=bsd4-3
2017 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2018 ## as far as Emacs is concerned).
2019 m88k-harris-cxux* )
2020 # Build needs to be different on 7.0 and later releases
2021 case "`uname -r`" in
2022 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2023 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2024 esac
2025 NON_GNU_CPP="/lib/cpp"
2027 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2028 m68k-harris-cxux* )
2029 machine=nh3000 opsys=cxux
2031 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2032 powerpc-harris-powerunix )
2033 machine=nh6000 opsys=powerunix
2034 NON_GNU_CPP="cc -Xo -E -P"
2036 ## SR2001/SR2201 running HI-UX/MPP
2037 hppa1.1-hitachi-hiuxmpp* )
2038 machine=sr2k opsys=hiuxmpp
2040 hppa1.1-hitachi-hiuxwe2* )
2041 machine=sr2k opsys=hiuxwe2
2043 ## Honeywell XPS100
2044 xps*-honeywell-sysv* )
2045 machine=xps100 opsys=usg5-2
2048 ## HP 9000 series 200 or 300
2049 m68*-hp-bsd* )
2050 machine=hp9000s300 opsys=bsd4-3
2052 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2053 m68*-hp-hpux* )
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2058 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2059 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2060 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2061 *) machine=hp9000s300 opsys=hpux ;;
2062 esac
2065 ## HP 9000 series 700 and 800, running HP/UX
2066 hppa*-hp-hpux7* )
2067 machine=hp800 opsys=hpux
2069 hppa*-hp-hpux8* )
2070 machine=hp800 opsys=hpux8
2072 hppa*-hp-hpux9shr* )
2073 machine=hp800 opsys=hpux9shr
2075 hppa*-hp-hpux9* )
2076 machine=hp800 opsys=hpux9
2078 hppa*-hp-hpux10.2* )
2079 machine=hp800 opsys=hpux10-20
2081 hppa*-hp-hpux10* )
2082 machine=hp800 opsys=hpux10
2084 hppa*-hp-hpux1[1-9]* )
2085 machine=hp800 opsys=hpux11
2088 hppa*-*-linux-gnu* )
2089 machine=hp800 opsys=gnu-linux
2092 ## HP 9000 series 700 and 800, running HP/UX
2093 hppa*-hp-hpux* )
2094 ## Cross-compilation? Nah!
2095 case "`uname -r`" in
2096 ## Someone's system reports A.B8.05 for this.
2097 ## I wonder what other possibilities there are.
2098 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2099 *.08.* ) machine=hp800 opsys=hpux8 ;;
2100 *.09.* ) machine=hp800 opsys=hpux9 ;;
2101 *) machine=hp800 opsys=hpux10 ;;
2102 esac
2104 hppa*-*-nextstep* )
2105 machine=hp800 opsys=nextstep
2108 ## Orion machines
2109 orion-orion-bsd* )
2110 machine=orion opsys=bsd4-2
2112 clipper-orion-bsd* )
2113 machine=orion105 opsys=bsd4-2
2116 ## IBM machines
2117 i[3456]86-ibm-aix1.1* )
2118 machine=ibmps2-aix opsys=usg5-2-2
2120 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2121 machine=ibmps2-aix opsys=usg5-3
2123 i370-ibm-aix*)
2124 machine=ibm370aix opsys=usg5-3
2126 s390-*-linux-gnu* )
2127 machine=ibms390 opsys=gnu-linux
2129 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2130 machine=ibmrs6000 opsys=aix3-1
2132 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2133 machine=ibmrs6000 opsys=aix3-2-5
2135 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2136 machine=ibmrs6000 opsys=aix4-1
2138 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2139 machine=ibmrs6000 opsys=aix4-2
2141 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2142 machine=ibmrs6000 opsys=aix4-2
2144 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2145 machine=ibmrs6000 opsys=aix4
2147 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2148 machine=ibmrs6000 opsys=aix4-1
2150 rs6000-ibm-aix* | powerpc-ibm-aix* )
2151 machine=ibmrs6000 opsys=aix3-2
2153 romp-ibm-bsd4.3* )
2154 machine=ibmrt opsys=bsd4-3
2156 romp-ibm-bsd4.2* )
2157 machine=ibmrt opsys=bsd4-2
2159 romp-ibm-aos4.3* )
2160 machine=ibmrt opsys=bsd4-3
2162 romp-ibm-aos4.2* )
2163 machine=ibmrt opsys=bsd4-2
2165 romp-ibm-aos* )
2166 machine=ibmrt opsys=bsd4-3
2168 romp-ibm-bsd* )
2169 machine=ibmrt opsys=bsd4-3
2171 romp-ibm-aix* )
2172 machine=ibmrt-aix opsys=usg5-2-2
2175 ## Integrated Solutions `Optimum V'
2176 m68*-isi-bsd4.2* )
2177 machine=isi-ov opsys=bsd4-2
2179 m68*-isi-bsd4.3* )
2180 machine=isi-ov opsys=bsd4-3
2183 ## Intel 386 machines where we do care about the manufacturer
2184 i[3456]86-intsys-sysv* )
2185 machine=is386 opsys=usg5-2-2
2188 ## Prime EXL
2189 i[3456]86-prime-sysv* )
2190 machine=i386 opsys=usg5-3
2193 ## Sequent Symmetry running Dynix
2194 i[3456]86-sequent-bsd* )
2195 machine=symmetry opsys=bsd4-3
2198 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2199 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2200 machine=sequent-ptx opsys=ptx4
2201 NON_GNU_CPP=/lib/cpp
2204 ## Sequent Symmetry running DYNIX/ptx
2205 ## Use the old cpp rather than the newer ANSI one.
2206 i[3456]86-sequent-ptx* )
2207 machine=sequent-ptx opsys=ptx
2208 NON_GNU_CPP="/lib/cpp"
2211 ## ncr machine running svr4.3.
2212 i[3456]86-ncr-sysv4.3 )
2213 machine=ncr386 opsys=usg5-4-3
2216 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2217 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2218 i[3456]86-ncr-sysv* )
2219 machine=ncr386 opsys=usg5-4-2
2222 ## Intel Paragon OSF/1
2223 i860-intel-osf1* )
2224 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2227 ## Intel 860
2228 i860-*-sysv4* )
2229 machine=i860 opsys=usg5-4
2230 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2231 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2234 ## Macintosh PowerPC
2235 powerpc*-*-linux-gnu* )
2236 machine=macppc opsys=gnu-linux
2239 ## Masscomp machines
2240 m68*-masscomp-rtu* )
2241 machine=masscomp opsys=rtu
2244 ## Megatest machines
2245 m68*-megatest-bsd* )
2246 machine=mega68 opsys=bsd4-2
2249 ## Workstations sold by MIPS
2250 ## This is not necessarily all workstations using the MIPS processor -
2251 ## Irises are produced by SGI, and DECstations by DEC.
2253 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2254 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2255 ## it gives for choosing between the alternatives seems to be "Use
2256 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2257 ## the BSD world." I'll assume that these are instructions for
2258 ## handling two odd situations, and that every other situation
2259 ## should use mips.h and usg5-2-2, they being listed first.
2260 mips-mips-usg* )
2261 machine=mips4
2262 ## Fall through to the general code at the bottom to decide on the OS.
2264 mips-mips-riscos4* )
2265 machine=mips4 opsys=bsd4-3
2266 NON_GNU_CC="cc -systype bsd43"
2267 NON_GNU_CPP="cc -systype bsd43 -E"
2269 mips-mips-riscos5* )
2270 machine=mips4 opsys=riscos5
2271 NON_GNU_CC="cc -systype bsd43"
2272 NON_GNU_CPP="cc -systype bsd43 -E"
2274 mips-mips-bsd* )
2275 machine=mips opsys=bsd4-3
2277 mips-mips-* )
2278 machine=mips opsys=usg5-2-2
2281 ## NeXT
2282 m68*-next-* | m68k-*-nextstep* )
2283 machine=m68k opsys=nextstep
2286 ## The complete machine from National Semiconductor
2287 ns32k-ns-genix* )
2288 machine=ns32000 opsys=usg5-2
2291 ## NCR machines
2292 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2293 machine=tower32 opsys=usg5-2-2
2295 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2296 machine=tower32v3 opsys=usg5-3
2299 ## NEC EWS4800
2300 mips-nec-sysv4*)
2301 machine=ews4800 opsys=ux4800
2304 ## Nixdorf Targon 31
2305 m68*-nixdorf-sysv* )
2306 machine=targon31 opsys=usg5-2-2
2309 ## Nu (TI or LMI)
2310 m68*-nu-sysv* )
2311 machine=nu opsys=usg5-2
2314 ## Plexus
2315 m68*-plexus-sysv* )
2316 machine=plexus opsys=usg5-2
2319 ## Pyramid machines
2320 ## I don't really have any idea what sort of processor the Pyramid has,
2321 ## so I'm assuming it is its own architecture.
2322 pyramid-pyramid-bsd* )
2323 machine=pyramid opsys=bsd4-2
2326 ## Sequent Balance
2327 ns32k-sequent-bsd4.2* )
2328 machine=sequent opsys=bsd4-2
2330 ns32k-sequent-bsd4.3* )
2331 machine=sequent opsys=bsd4-3
2334 ## Siemens Nixdorf
2335 mips-siemens-sysv* | mips-sni-sysv*)
2336 machine=mips-siemens opsys=usg5-4
2337 NON_GNU_CC=/usr/ccs/bin/cc
2338 NON_GNU_CPP=/usr/ccs/lib/cpp
2341 ## Silicon Graphics machines
2342 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2343 m68*-sgi-iris3.5* )
2344 machine=irist opsys=iris3-5
2346 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2347 machine=irist opsys=iris3-6
2349 ## Iris 4D
2350 mips-sgi-irix3* )
2351 machine=iris4d opsys=irix3-3
2353 mips-sgi-irix4* )
2354 machine=iris4d opsys=irix4-0
2356 mips-sgi-irix6.5 )
2357 machine=iris4d opsys=irix6-5
2358 # Without defining _LANGUAGE_C, things get masked out in the headers
2359 # so that, for instance, grepping for `free' in stdlib.h fails and
2360 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2361 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2362 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2364 mips-sgi-irix6* )
2365 machine=iris4d opsys=irix6-0
2366 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2367 # but presumably it does no harm.
2368 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2369 # -32 probably isn't necessary in later v.6s -- anyone know which?
2370 NON_GCC_TEST_OPTIONS=-32
2372 mips-sgi-irix5.[01]* )
2373 machine=iris4d opsys=irix5-0
2375 mips-sgi-irix5* | mips-sgi-irix* )
2376 machine=iris4d opsys=irix5-2
2379 ## SONY machines
2380 m68*-sony-bsd4.2* )
2381 machine=news opsys=bsd4-2
2383 m68*-sony-bsd4.3* )
2384 machine=news opsys=bsd4-3
2386 m68*-sony-newsos3* | m68*-sony-news3*)
2387 machine=news opsys=bsd4-3
2389 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2390 machine=news-risc opsys=bsd4-3
2392 mips-sony-newsos6* )
2393 machine=news-r6 opsys=newsos6
2395 mips-sony-news* )
2396 machine=news-risc opsys=newsos5
2399 ## Stride
2400 m68*-stride-sysv* )
2401 machine=stride opsys=usg5-2
2404 ## Suns
2405 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2406 machine=sparc opsys=gnu-linux
2409 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2410 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2411 | rs6000-*-solaris2*)
2412 case "${canonical}" in
2413 m68*-sunos1* ) machine=sun1 ;;
2414 m68*-sunos2* ) machine=sun2 ;;
2415 m68* ) machine=sun3 ;;
2416 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2417 i[3456]86-*-* ) machine=intel386 ;;
2418 powerpcle* ) machine=powerpcle ;;
2419 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2420 sparc* ) machine=sparc ;;
2421 * ) unported=yes ;;
2422 esac
2423 case "${canonical}" in
2424 ## The Sun386 didn't get past 4.0.
2425 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2426 *-sunos4.0* ) opsys=sunos4-0 ;;
2427 *-sunos4.1.[3-9]*noshare )
2428 ## This name is sunos413 instead of sunos4-1-3
2429 ## to avoid a file name conflict on MSDOS.
2430 opsys=sunos413
2431 NON_GNU_CPP=/usr/lib/cpp
2432 NON_GCC_TEST_OPTIONS=-Bstatic
2433 GCC_TEST_OPTIONS=-static
2435 *-sunos4.1.[3-9]* | *-sunos4shr*)
2436 opsys=sunos4shr
2437 NON_GNU_CPP=/usr/lib/cpp
2439 *-sunos4* | *-sunos )
2440 opsys=sunos4-1
2441 NON_GCC_TEST_OPTIONS=-Bstatic
2442 GCC_TEST_OPTIONS=-static
2444 *-sunos5.3* | *-solaris2.3* )
2445 opsys=sol2-3
2446 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 *-sunos5.4* | *-solaris2.4* )
2449 opsys=sol2-4
2450 NON_GNU_CPP=/usr/ccs/lib/cpp
2451 RANLIB="ar -ts"
2453 *-sunos5.5* | *-solaris2.5* )
2454 opsys=sol2-5
2455 NON_GNU_CPP=/usr/ccs/lib/cpp
2456 RANLIB="ar -ts"
2458 *-sunos5.6* | *-solaris2.6* )
2459 opsys=sol2-6
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 RANLIB="ar -ts"
2463 *-sunos5* | *-solaris* )
2464 opsys=sol2-6
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2467 * ) opsys=bsd4-2 ;;
2468 esac
2469 ## Watch out for a compiler that we know will not work.
2470 case "${canonical}" in
2471 *-solaris* | *-sunos5* )
2472 if [ "x$CC" = x/usr/ucb/cc ]; then
2473 ## /usr/ucb/cc doesn't work;
2474 ## we should find some other compiler that does work.
2475 unset CC
2478 *) ;;
2479 esac
2481 sparc-*-nextstep* )
2482 machine=sparc opsys=nextstep
2485 ## Tadpole 68k
2486 m68*-tadpole-sysv* )
2487 machine=tad68k opsys=usg5-3
2490 ## Tahoe machines
2491 tahoe-tahoe-bsd4.2* )
2492 machine=tahoe opsys=bsd4-2
2494 tahoe-tahoe-bsd4.3* )
2495 machine=tahoe opsys=bsd4-3
2498 ## Tandem Integrity S2
2499 mips-tandem-sysv* )
2500 machine=tandem-s2 opsys=usg5-3
2503 ## Tektronix XD88
2504 m88k-tektronix-sysv3* )
2505 machine=tekxd88 opsys=usg5-3
2508 ## Tektronix 16000 box (6130?)
2509 ns16k-tektronix-bsd* )
2510 machine=ns16000 opsys=bsd4-2
2512 ## Tektronix 4300
2513 ## src/m/tek4300.h hints that this is a m68k machine.
2514 m68*-tektronix-bsd* )
2515 machine=tek4300 opsys=bsd4-3
2518 ## Titan P2 or P3
2519 ## We seem to have lost the machine-description file titan.h!
2520 titan-titan-sysv* )
2521 machine=titan opsys=usg5-3
2524 ## Ustation E30 (SS5E)
2525 m68*-unisys-uniplus* )
2526 machine=ustation opsystem=unipl5-2
2529 ## Vaxen.
2530 vax-dec-* )
2531 machine=vax
2532 case "${canonical}" in
2533 *-bsd4.1* ) opsys=bsd4-1 ;;
2534 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2535 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2536 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2537 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2538 *-vms* ) opsys=vms ;;
2539 * ) unported=yes
2540 esac
2543 ## Whitechapel MG1
2544 ns16k-whitechapel-* )
2545 machine=mg1
2546 ## We don't know what sort of OS runs on these; we'll let the
2547 ## operating system guessing code below try.
2550 ## Wicat
2551 m68*-wicat-sysv* )
2552 machine=wicat opsys=usg5-2
2555 ## IA-64
2556 ia64*-*-linux* )
2557 machine=ia64 opsys=gnu-linux
2560 ## Intel 386 machines where we don't care about the manufacturer
2561 i[3456]86-*-* )
2562 machine=intel386
2563 case "${canonical}" in
2564 *-cygwin ) opsys=cygwin ;;
2565 *-lynxos* ) opsys=lynxos ;;
2566 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2567 *-isc2.2* ) opsys=isc2-2 ;;
2568 *-isc4.0* ) opsys=isc4-0 ;;
2569 *-isc4.* ) opsys=isc4-1
2570 GCC_TEST_OPTIONS=-posix
2571 NON_GCC_TEST_OPTIONS=-Xp
2573 *-isc* ) opsys=isc3-0 ;;
2574 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2575 *-esix* ) opsys=esix ;;
2576 *-xenix* ) opsys=xenix ;;
2577 *-linux-gnu* ) opsys=gnu-linux ;;
2578 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2579 *-sco3.2v5* ) opsys=sco5
2580 NON_GNU_CPP=/lib/cpp
2581 # Prevent -belf from being passed to $CPP.
2582 # /lib/cpp does not accept it.
2583 OVERRIDE_CPPFLAGS=" "
2585 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2586 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2587 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2588 *-386bsd* ) opsys=386bsd ;;
2589 *-nextstep* ) opsys=nextstep ;;
2590 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2591 esac
2594 ## m68k Linux-based GNU system
2595 m68k-*-linux-gnu* )
2596 machine=m68k opsys=gnu-linux
2599 ## Mips Linux-based GNU system
2600 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2601 machine=mips opsys=gnu-linux
2604 ## UXP/DS
2605 sparc-fujitsu-sysv4* )
2606 machine=sparc opsys=uxpds
2607 NON_GNU_CPP=/usr/ccs/lib/cpp
2608 RANLIB="ar -ts"
2611 ## UXP/V
2612 f301-fujitsu-uxpv4.1)
2613 machine=f301 opsys=uxpv
2616 ## Darwin / Mac OS X
2617 powerpc-apple-darwin* )
2618 machine=powermac opsys=darwin
2619 # Define CPP as follows to make autoconf work correctly.
2620 CPP="${CC-cc} -E -no-cpp-precomp"
2621 # Use fink packages if available.
2622 if test -d /sw/include && test -d /sw/lib; then
2623 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2624 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2625 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2629 ## AMD x86-64 Linux-based GNU system
2630 x86_64-*-linux-gnu* )
2631 machine=amdx86-64 opsys=gnu-linux
2635 unported=yes
2637 esac
2639 ### If the code above didn't choose an operating system, just choose
2640 ### an operating system based on the configuration name. You really
2641 ### only want to use this when you have no idea what the right
2642 ### operating system is; if you know what operating systems a machine
2643 ### runs, it's cleaner to make it explicit in the case statement
2644 ### above.
2645 if test x"${opsys}" = x; then
2646 case "${canonical}" in
2647 *-gnu* ) opsys=gnu ;;
2648 *-bsd4.[01] ) opsys=bsd4-1 ;;
2649 *-bsd4.2 ) opsys=bsd4-2 ;;
2650 *-bsd4.3 ) opsys=bsd4-3 ;;
2651 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2652 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2653 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2654 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2655 *-sysv4.2uw* ) opsys=unixware ;;
2656 *-sysv5uw* ) opsys=unixware ;;
2657 *-sysv5OpenUNIX* ) opsys=unixware ;;
2658 *-sysv4.1* | *-sysvr4.1* )
2659 NON_GNU_CPP=/usr/lib/cpp
2660 opsys=usg5-4 ;;
2661 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2662 if [ x$NON_GNU_CPP = x ]; then
2663 if [ -f /usr/ccs/lib/cpp ]; then
2664 NON_GNU_CPP=/usr/ccs/lib/cpp
2665 else
2666 NON_GNU_CPP=/lib/cpp
2669 opsys=usg5-4-2 ;;
2670 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2672 unported=yes
2674 esac
2679 if test $unported = yes; then
2680 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2681 Check \`etc/MACHINES' for recognized configuration names." >&5
2682 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2683 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2684 { (exit 1); exit 1; }; }
2687 machfile="m/${machine}.h"
2688 opsysfile="s/${opsys}.h"
2691 #### Choose a compiler.
2692 test -n "$CC" && cc_specified=yes
2694 # Save the value of CFLAGS that the user specified.
2695 SPECIFIED_CFLAGS="$CFLAGS"
2697 case ${with_gcc} in
2698 "yes" ) CC="gcc" GCC=yes ;;
2699 "no" ) : ${CC=cc} ;;
2701 esac
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_prog_CC+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2729 done
2730 done
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 echo "$as_me:$LINENO: result: $CC" >&5
2737 echo "${ECHO_T}$CC" >&6
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2744 if test -z "$ac_cv_prog_CC"; then
2745 ac_ct_CC=$CC
2746 # Extract the first word of "gcc", so it can be a program name with args.
2747 set dummy gcc; ac_word=$2
2748 echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 if test -n "$ac_ct_CC"; then
2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_ac_ct_CC="gcc"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2767 done
2768 done
2772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773 if test -n "$ac_ct_CC"; then
2774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2775 echo "${ECHO_T}$ac_ct_CC" >&6
2776 else
2777 echo "$as_me:$LINENO: result: no" >&5
2778 echo "${ECHO_T}no" >&6
2781 CC=$ac_ct_CC
2782 else
2783 CC="$ac_cv_prog_CC"
2786 if test -z "$CC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}cc; ac_word=$2
2790 echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="${ac_tool_prefix}cc"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 echo "$as_me:$LINENO: result: $CC" >&5
2817 echo "${ECHO_T}$CC" >&6
2818 else
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2824 if test -z "$ac_cv_prog_CC"; then
2825 ac_ct_CC=$CC
2826 # Extract the first word of "cc", so it can be a program name with args.
2827 set dummy cc; ac_word=$2
2828 echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 if test -n "$ac_ct_CC"; then
2834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_ac_ct_CC="cc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2853 if test -n "$ac_ct_CC"; then
2854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2855 echo "${ECHO_T}$ac_ct_CC" >&6
2856 else
2857 echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2861 CC=$ac_ct_CC
2862 else
2863 CC="$ac_cv_prog_CC"
2867 if test -z "$CC"; then
2868 # Extract the first word of "cc", so it can be a program name with args.
2869 set dummy cc; ac_word=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 ac_prog_rejected=no
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887 ac_prog_rejected=yes
2888 continue
2890 ac_cv_prog_CC="cc"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2894 done
2895 done
2897 if test $ac_prog_rejected = yes; then
2898 # We found a bogon in the path, so make sure we never use it.
2899 set dummy $ac_cv_prog_CC
2900 shift
2901 if test $# != 0; then
2902 # We chose a different compiler from the bogus one.
2903 # However, it has the same basename, so the bogon will be chosen
2904 # first if we set CC to just the basename; use the full file name.
2905 shift
2906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913 echo "$as_me:$LINENO: result: $CC" >&5
2914 echo "${ECHO_T}$CC" >&6
2915 else
2916 echo "$as_me:$LINENO: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 for ac_prog in cl
2925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2927 echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929 if test "${ac_cv_prog_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6
2955 else
2956 echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2960 test -n "$CC" && break
2961 done
2963 if test -z "$CC"; then
2964 ac_ct_CC=$CC
2965 for ac_prog in cl
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="$ac_prog"
2985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2996 echo "${ECHO_T}$ac_ct_CC" >&6
2997 else
2998 echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3002 test -n "$ac_ct_CC" && break
3003 done
3005 CC=$ac_ct_CC
3011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3017 # Provide some information about the compiler.
3018 echo "$as_me:$LINENO:" \
3019 "checking for C compiler version" >&5
3020 ac_compiler=`set X $ac_compile; echo $2`
3021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3022 (eval $ac_compiler --version </dev/null >&5) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }
3026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3027 (eval $ac_compiler -v </dev/null >&5) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3032 (eval $ac_compiler -V </dev/null >&5) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }
3037 cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h. */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3045 main ()
3049 return 0;
3051 _ACEOF
3052 ac_clean_files_save=$ac_clean_files
3053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3054 # Try to create an executable without -o first, disregard a.out.
3055 # It will help us diagnose broken compilers, and finding out an intuition
3056 # of exeext.
3057 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3058 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3061 (eval $ac_link_default) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 # Find the output, starting from the most likely. This scheme is
3066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3067 # resort.
3069 # Be careful to initialize this variable, since it used to be cached.
3070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3071 ac_cv_exeext=
3072 # b.out is created by i960 compilers.
3073 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3075 test -f "$ac_file" || continue
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3079 conftest.$ac_ext )
3080 # This is the source file.
3082 [ab].out )
3083 # We found the default executable, but exeext='' is most
3084 # certainly right.
3085 break;;
3086 *.* )
3087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 # FIXME: I believe we export ac_cv_exeext for Libtool,
3089 # but it would be cool to find out if it's true. Does anybody
3090 # maintain Libtool? --akim.
3091 export ac_cv_exeext
3092 break;;
3094 break;;
3095 esac
3096 done
3097 else
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: C compiler cannot create executables
3104 See \`config.log' for more details." >&2;}
3105 { (exit 77); exit 77; }; }
3108 ac_exeext=$ac_cv_exeext
3109 echo "$as_me:$LINENO: result: $ac_file" >&5
3110 echo "${ECHO_T}$ac_file" >&6
3112 # Check the compiler produces executables we can run. If not, either
3113 # the compiler is broken, or we cross compile.
3114 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3115 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3117 # If not cross compiling, check that we can run a simple program.
3118 if test "$cross_compiling" != yes; then
3119 if { ac_try='./$ac_file'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 cross_compiling=no
3126 else
3127 if test "$cross_compiling" = maybe; then
3128 cross_compiling=yes
3129 else
3130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3131 If you meant to cross compile, use \`--host'.
3132 See \`config.log' for more details." >&5
3133 echo "$as_me: error: cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3143 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3144 ac_clean_files=$ac_clean_files_save
3145 # Check the compiler produces executables we can run. If not, either
3146 # the compiler is broken, or we cross compile.
3147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3150 echo "${ECHO_T}$cross_compiling" >&6
3152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3155 (eval $ac_link) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; then
3159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3161 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 # `rm'.
3163 for ac_file in conftest.exe conftest conftest.*; do
3164 test -f "$ac_file" || continue
3165 case $ac_file in
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 export ac_cv_exeext
3169 break;;
3170 * ) break;;
3171 esac
3172 done
3173 else
3174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details." >&2;}
3178 { (exit 1); exit 1; }; }
3181 rm -f conftest$ac_cv_exeext
3182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3183 echo "${ECHO_T}$ac_cv_exeext" >&6
3185 rm -f conftest.$ac_ext
3186 EXEEXT=$ac_cv_exeext
3187 ac_exeext=$EXEEXT
3188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3190 if test "${ac_cv_objext+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3201 main ()
3205 return 0;
3207 _ACEOF
3208 rm -f conftest.o conftest.obj
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3218 break;;
3219 esac
3220 done
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3228 See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3235 echo "${ECHO_T}$ac_cv_objext" >&6
3236 OBJEXT=$ac_cv_objext
3237 ac_objext=$OBJEXT
3238 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3239 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3240 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3251 main ()
3253 #ifndef __GNUC__
3254 choke me
3255 #endif
3258 return 0;
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_compiler_gnu=yes
3283 else
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_compiler_gnu=no
3289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3293 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3294 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3295 GCC=`test $ac_compiler_gnu = yes && echo yes`
3296 ac_test_CFLAGS=${CFLAGS+set}
3297 ac_save_CFLAGS=$CFLAGS
3298 CFLAGS="-g"
3299 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3301 if test "${ac_cv_prog_cc_g+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3312 main ()
3316 return 0;
3318 _ACEOF
3319 rm -f conftest.$ac_objext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321 (eval $ac_compile) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_cv_prog_cc_g=yes
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3345 ac_cv_prog_cc_g=no
3347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3355 CFLAGS="-g -O2"
3356 else
3357 CFLAGS="-g"
3359 else
3360 if test "$GCC" = yes; then
3361 CFLAGS="-O2"
3362 else
3363 CFLAGS=
3366 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3367 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3368 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 ac_cv_prog_cc_stdc=no
3372 ac_save_CC=$CC
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <stdarg.h>
3380 #include <stdio.h>
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384 struct buf { int x; };
3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386 static char *e (p, i)
3387 char **p;
3388 int i;
3390 return p[i];
3392 static char *f (char * (*g) (char **, int), char **p, ...)
3394 char *s;
3395 va_list v;
3396 va_start (v,p);
3397 s = g (p, va_arg (v,int));
3398 va_end (v);
3399 return s;
3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std1 is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std1. */
3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411 int test (int i, double x);
3412 struct s1 {int (*f) (int a);};
3413 struct s2 {int (*f) (double a);};
3414 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415 int argc;
3416 char **argv;
3418 main ()
3420 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3422 return 0;
3424 _ACEOF
3425 # Don't try gcc -ansi; that turns off useful extensions and
3426 # breaks some systems' header files.
3427 # AIX -qlanglvl=ansi
3428 # Ultrix and OSF/1 -std1
3429 # HP-UX 10.20 and later -Ae
3430 # HP-UX older versions -Aa -D_HPUX_SOURCE
3431 # SVR4 -Xc -D__EXTENSIONS__
3432 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3434 CC="$ac_save_CC $ac_arg"
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 ac_cv_prog_cc_stdc=$ac_arg
3457 break
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f conftest.err conftest.$ac_objext
3464 done
3465 rm -f conftest.$ac_ext conftest.$ac_objext
3466 CC=$ac_save_CC
3470 case "x$ac_cv_prog_cc_stdc" in
3471 x|xno)
3472 echo "$as_me:$LINENO: result: none needed" >&5
3473 echo "${ECHO_T}none needed" >&6 ;;
3475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3477 CC="$CC $ac_cv_prog_cc_stdc" ;;
3478 esac
3480 # Some people use a C++ compiler to compile C. Since we use `exit',
3481 # in C++ we need to declare it. In case someone uses the same compiler
3482 # for both compiling C and C++ we need to have the C++ compiler decide
3483 # the declaration of exit, since it's the most demanding environment.
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #ifndef __cplusplus
3486 choke me
3487 #endif
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 for ac_declaration in \
3511 '' \
3512 'extern "C" void std::exit (int) throw (); using std::exit;' \
3513 'extern "C" void std::exit (int); using std::exit;' \
3514 'extern "C" void exit (int) throw ();' \
3515 'extern "C" void exit (int);' \
3516 'void exit (int);'
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 $ac_declaration
3525 #include <stdlib.h>
3527 main ()
3529 exit (42);
3531 return 0;
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3536 (eval $ac_compile) 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 continue
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 $ac_declaration
3571 main ()
3573 exit (42);
3575 return 0;
3577 _ACEOF
3578 rm -f conftest.$ac_objext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>conftest.er1
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 break
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3606 done
3607 rm -f conftest*
3608 if test -n "$ac_declaration"; then
3609 echo '#ifdef __cplusplus' >>confdefs.h
3610 echo $ac_declaration >>confdefs.h
3611 echo '#endif' >>confdefs.h
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627 # On Suns, sometimes $CPP names a directory.
3628 if test -n "$CPP" && test -d "$CPP"; then
3629 CPP=
3632 #### Some systems specify a CPP to use unless we are using GCC.
3633 #### Now that we know whether we are using GCC, we can decide whether
3634 #### to use that one.
3635 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3636 then
3637 CPP="$NON_GNU_CPP"
3640 #### Some systems specify a CC to use unless we are using GCC.
3641 #### Now that we know whether we are using GCC, we can decide whether
3642 #### to use that one.
3643 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3644 test x$cc_specified != xyes
3645 then
3646 CC="$NON_GNU_CC"
3649 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3650 then
3651 CC="$CC $GCC_TEST_OPTIONS"
3654 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3655 then
3656 CC="$CC $NON_GCC_TEST_OPTIONS"
3659 #### Some other nice autoconf tests.
3661 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3663 LN_S=$as_ln_s
3664 if test "$LN_S" = "ln -s"; then
3665 echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6
3667 else
3668 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3669 echo "${ECHO_T}no, using $LN_S" >&6
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3678 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3679 # On Suns, sometimes $CPP names a directory.
3680 if test -n "$CPP" && test -d "$CPP"; then
3681 CPP=
3683 if test -z "$CPP"; then
3684 if test "${ac_cv_prog_CPP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 # Double quotes because CPP needs to be expanded
3688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3690 ac_preproc_ok=false
3691 for ac_c_preproc_warn_flag in '' yes
3693 # Use a header file that comes with gcc, so configuring glibc
3694 # with a fresh cross-compiler works.
3695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 # <limits.h> exists even on freestanding compilers.
3697 # On the NeXT, cc -E runs the code through the compiler's parser,
3698 # not just through cpp. "Syntax error" is here to catch this case.
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #ifdef __STDC__
3706 # include <limits.h>
3707 #else
3708 # include <assert.h>
3709 #endif
3710 Syntax error
3711 _ACEOF
3712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev/null; then
3720 if test -s conftest.err; then
3721 ac_cpp_err=$ac_c_preproc_warn_flag
3722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3723 else
3724 ac_cpp_err=
3726 else
3727 ac_cpp_err=yes
3729 if test -z "$ac_cpp_err"; then
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 # Broken: fails on valid input.
3736 continue
3738 rm -f conftest.err conftest.$ac_ext
3740 # OK, works on sane cases. Now check whether non-existent headers
3741 # can be detected and how.
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <ac_nonexistent.h>
3749 _ACEOF
3750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev/null; then
3758 if test -s conftest.err; then
3759 ac_cpp_err=$ac_c_preproc_warn_flag
3760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3761 else
3762 ac_cpp_err=
3764 else
3765 ac_cpp_err=yes
3767 if test -z "$ac_cpp_err"; then
3768 # Broken: success on invalid input.
3769 continue
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 # Passes both tests.
3775 ac_preproc_ok=:
3776 break
3778 rm -f conftest.err conftest.$ac_ext
3780 done
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then
3784 break
3787 done
3788 ac_cv_prog_CPP=$CPP
3791 CPP=$ac_cv_prog_CPP
3792 else
3793 ac_cv_prog_CPP=$CPP
3795 echo "$as_me:$LINENO: result: $CPP" >&5
3796 echo "${ECHO_T}$CPP" >&6
3797 ac_preproc_ok=false
3798 for ac_c_preproc_warn_flag in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #ifdef __STDC__
3813 # include <limits.h>
3814 #else
3815 # include <assert.h>
3816 #endif
3817 Syntax error
3818 _ACEOF
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null; then
3827 if test -s conftest.err; then
3828 ac_cpp_err=$ac_c_preproc_warn_flag
3829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3830 else
3831 ac_cpp_err=
3833 else
3834 ac_cpp_err=yes
3836 if test -z "$ac_cpp_err"; then
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 # Broken: fails on valid input.
3843 continue
3845 rm -f conftest.err conftest.$ac_ext
3847 # OK, works on sane cases. Now check whether non-existent headers
3848 # can be detected and how.
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3856 _ACEOF
3857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev/null; then
3865 if test -s conftest.err; then
3866 ac_cpp_err=$ac_c_preproc_warn_flag
3867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 else
3869 ac_cpp_err=
3871 else
3872 ac_cpp_err=yes
3874 if test -z "$ac_cpp_err"; then
3875 # Broken: success on invalid input.
3876 continue
3877 else
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3885 rm -f conftest.err conftest.$ac_ext
3887 done
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.err conftest.$ac_ext
3890 if $ac_preproc_ok; then
3892 else
3893 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&5
3895 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3896 See \`config.log' for more details." >&2;}
3897 { (exit 1); exit 1; }; }
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 # Find a good install program. We prefer a C program (faster),
3907 # so one script is as good as another. But avoid the broken or
3908 # incompatible versions:
3909 # SysV /etc/install, /usr/sbin/install
3910 # SunOS /usr/etc/install
3911 # IRIX /sbin/install
3912 # AIX /bin/install
3913 # AmigaOS /C/install, which installs bootblocks on floppy discs
3914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3917 # OS/2's system install, which has a completely different semantic
3918 # ./install, which can be erroneously created by make from ./install.sh.
3919 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3920 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3921 if test -z "$INSTALL"; then
3922 if test "${ac_cv_path_install+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 # Account for people who put trailing slashes in PATH elements.
3931 case $as_dir/ in
3932 ./ | .// | /cC/* | \
3933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3934 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3935 /usr/ucb/* ) ;;
3937 # OSF1 and SCO ODT 3.0 have their own names for install.
3938 # Don't use installbsd from OSF since it installs stuff as root
3939 # by default.
3940 for ac_prog in ginstall scoinst install; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3943 if test $ac_prog = install &&
3944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3945 # AIX install. It has an incompatible calling convention.
3947 elif test $ac_prog = install &&
3948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3949 # program-specific install script used by HP pwplus--don't use.
3951 else
3952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3953 break 3
3956 done
3957 done
3959 esac
3960 done
3964 if test "${ac_cv_path_install+set}" = set; then
3965 INSTALL=$ac_cv_path_install
3966 else
3967 # As a last resort, use the slow shell script. We don't cache a
3968 # path for INSTALL within a source directory, because that will
3969 # break other packages using the cache if that directory is
3970 # removed, or if the path is relative.
3971 INSTALL=$ac_install_sh
3974 echo "$as_me:$LINENO: result: $INSTALL" >&5
3975 echo "${ECHO_T}$INSTALL" >&6
3977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3978 # It thinks the first close brace ends the variable substitution.
3979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3985 if test "x$RANLIB" = x; then
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3989 echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991 if test "${ac_cv_prog_RANLIB+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 if test -n "$RANLIB"; then
3995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4008 done
4009 done
4013 RANLIB=$ac_cv_prog_RANLIB
4014 if test -n "$RANLIB"; then
4015 echo "$as_me:$LINENO: result: $RANLIB" >&5
4016 echo "${ECHO_T}$RANLIB" >&6
4017 else
4018 echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4023 if test -z "$ac_cv_prog_RANLIB"; then
4024 ac_ct_RANLIB=$RANLIB
4025 # Extract the first word of "ranlib", so it can be a program name with args.
4026 set dummy ranlib; ac_word=$2
4027 echo "$as_me:$LINENO: checking for $ac_word" >&5
4028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032 if test -n "$ac_ct_RANLIB"; then
4033 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_ac_ct_RANLIB="ranlib"
4043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4046 done
4047 done
4049 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4052 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4053 if test -n "$ac_ct_RANLIB"; then
4054 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4056 else
4057 echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4061 RANLIB=$ac_ct_RANLIB
4062 else
4063 RANLIB="$ac_cv_prog_RANLIB"
4067 # Extract the first word of "install-info", so it can be a program name with args.
4068 set dummy install-info; ac_word=$2
4069 echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 case $INSTALL_INFO in
4075 [\\/]* | ?:[\\/]*)
4076 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4090 done
4091 done
4094 esac
4096 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4098 if test -n "$INSTALL_INFO"; then
4099 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4100 echo "${ECHO_T}$INSTALL_INFO" >&6
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4106 # Extract the first word of "install-info", so it can be a program name with args.
4107 set dummy install-info; ac_word=$2
4108 echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 case $INSTALL_INFO in
4114 [\\/]* | ?:[\\/]*)
4115 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in /usr/sbin
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4133 esac
4135 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4137 if test -n "$INSTALL_INFO"; then
4138 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4139 echo "${ECHO_T}$INSTALL_INFO" >&6
4140 else
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4145 # Extract the first word of "install-info", so it can be a program name with args.
4146 set dummy install-info; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 case $INSTALL_INFO in
4153 [\\/]* | ?:[\\/]*)
4154 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in /sbin
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4168 done
4169 done
4171 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4173 esac
4175 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4177 if test -n "$INSTALL_INFO"; then
4178 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4179 echo "${ECHO_T}$INSTALL_INFO" >&6
4180 else
4181 echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4187 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4188 then
4189 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4192 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4193 then
4194 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4198 late_LDFLAGS=$LDFLAGS
4199 if test "$GCC" = yes; then
4200 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4201 else
4202 LDFLAGS="$LDFLAGS -znocombreloc"
4205 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4206 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4208 cat >conftest.$ac_ext <<_ACEOF
4209 main(){return 0;}
4210 _ACEOF
4211 rm -f conftest.$ac_objext conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest$ac_exeext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 echo "$as_me:$LINENO: result: yes" >&5
4233 echo "${ECHO_T}yes" >&6
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4238 LDFLAGS=$late_LDFLAGS
4239 echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4242 rm -f conftest.err conftest.$ac_objext \
4243 conftest$ac_exeext conftest.$ac_ext
4246 echo "$as_me:$LINENO: checking for egrep" >&5
4247 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4248 if test "${ac_cv_prog_egrep+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4252 then ac_cv_prog_egrep='grep -E'
4253 else ac_cv_prog_egrep='egrep'
4256 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4257 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4258 EGREP=$ac_cv_prog_egrep
4262 echo "$as_me:$LINENO: checking for AIX" >&5
4263 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #ifdef _AIX
4272 #endif
4274 _ACEOF
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "yes" >/dev/null 2>&1; then
4277 echo "$as_me:$LINENO: result: yes" >&5
4278 echo "${ECHO_T}yes" >&6
4279 cat >>confdefs.h <<\_ACEOF
4280 #define _ALL_SOURCE 1
4281 _ACEOF
4283 else
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4287 rm -f conftest*
4292 #### Extract some information from the operating system and machine files.
4294 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4295 - which libraries the lib-src programs will want, and
4296 - whether the GNU malloc routines are usable..." >&5
4297 echo "$as_me: checking the machine- and system-dependent files to find out
4298 - which libraries the lib-src programs will want, and
4299 - whether the GNU malloc routines are usable..." >&6;}
4301 ### First figure out CFLAGS (which we use for running the compiler here)
4302 ### and REAL_CFLAGS (which we use for real compilation).
4303 ### The two are the same except on a few systems, where they are made
4304 ### different to work around various lossages. For example,
4305 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4306 ### as implying static linking.
4308 ### If the CFLAGS env var is specified, we use that value
4309 ### instead of the default.
4311 ### It's not important that this name contain the PID; you can't run
4312 ### two configures in the same directory and have anything work
4313 ### anyway.
4314 tempcname="conftest.c"
4316 echo '
4317 #include "'${srcdir}'/src/'${opsysfile}'"
4318 #include "'${srcdir}'/src/'${machfile}'"
4319 #ifndef LIBS_MACHINE
4320 #define LIBS_MACHINE
4321 #endif
4322 #ifndef LIBS_SYSTEM
4323 #define LIBS_SYSTEM
4324 #endif
4325 #ifndef C_SWITCH_SYSTEM
4326 #define C_SWITCH_SYSTEM
4327 #endif
4328 #ifndef C_SWITCH_MACHINE
4329 #define C_SWITCH_MACHINE
4330 #endif
4331 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4332 configure___ c_switch_system=C_SWITCH_SYSTEM
4333 configure___ c_switch_machine=C_SWITCH_MACHINE
4335 #ifndef LIB_X11_LIB
4336 #define LIB_X11_LIB -lX11
4337 #endif
4339 #ifndef LIBX11_MACHINE
4340 #define LIBX11_MACHINE
4341 #endif
4343 #ifndef LIBX11_SYSTEM
4344 #define LIBX11_SYSTEM
4345 #endif
4346 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4348 #ifdef UNEXEC
4349 configure___ unexec=UNEXEC
4350 #else
4351 configure___ unexec=unexec.o
4352 #endif
4354 #ifdef SYSTEM_MALLOC
4355 configure___ system_malloc=yes
4356 #else
4357 configure___ system_malloc=no
4358 #endif
4360 #ifdef USE_MMAP_FOR_BUFFERS
4361 configure___ use_mmap_for_buffers=yes
4362 #else
4363 configure___ use_mmap_for_buffers=no
4364 #endif
4366 #ifndef C_DEBUG_SWITCH
4367 #define C_DEBUG_SWITCH -g
4368 #endif
4370 #ifndef C_OPTIMIZE_SWITCH
4371 #ifdef __GNUC__
4372 #define C_OPTIMIZE_SWITCH -O2
4373 #else
4374 #define C_OPTIMIZE_SWITCH -O
4375 #endif
4376 #endif
4378 #ifndef LD_SWITCH_MACHINE
4379 #define LD_SWITCH_MACHINE
4380 #endif
4382 #ifndef LD_SWITCH_SYSTEM
4383 #define LD_SWITCH_SYSTEM
4384 #endif
4386 #ifndef LD_SWITCH_X_SITE_AUX
4387 #define LD_SWITCH_X_SITE_AUX
4388 #endif
4390 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4391 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4393 #ifdef THIS_IS_CONFIGURE
4395 /* Get the CFLAGS for tests in configure. */
4396 #ifdef __GNUC__
4397 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4398 #else
4399 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4400 #endif
4402 #else /* not THIS_IS_CONFIGURE */
4404 /* Get the CFLAGS for real compilation. */
4405 #ifdef __GNUC__
4406 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4407 #else
4408 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4409 #endif
4411 #endif /* not THIS_IS_CONFIGURE */
4412 ' > ${tempcname}
4414 # The value of CPP is a quoted variable reference, so we need to do this
4415 # to get its actual value...
4416 CPP=`eval "echo $CPP"`
4417 eval `${CPP} -Isrc ${tempcname} \
4418 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4419 if test "x$SPECIFIED_CFLAGS" = x; then
4420 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4421 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4422 else
4423 REAL_CFLAGS="$CFLAGS"
4425 rm ${tempcname}
4427 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4429 ### Make sure subsequent tests use flags consistent with the build flags.
4431 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4432 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4433 else
4434 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4440 cat >>confdefs.h <<\_ACEOF
4441 #define _GNU_SOURCE 1
4442 _ACEOF
4446 # Check whether --enable-largefile or --disable-largefile was given.
4447 if test "${enable_largefile+set}" = set; then
4448 enableval="$enable_largefile"
4451 if test "$enable_largefile" != no; then
4453 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4454 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4455 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 ac_cv_sys_largefile_CC=no
4459 if test "$GCC" != yes; then
4460 ac_save_CC=$CC
4461 while :; do
4462 # IRIX 6.2 and later do not support large files by default,
4463 # so use the C compiler's -n32 option if that helps.
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <sys/types.h>
4471 /* Check that off_t can represent 2**63 - 1 correctly.
4472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4473 since some C++ compilers masquerading as C compilers
4474 incorrectly reject 9223372036854775807. */
4475 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4477 && LARGE_OFF_T % 2147483647 == 1)
4478 ? 1 : -1];
4480 main ()
4484 return 0;
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 break
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4514 rm -f conftest.err conftest.$ac_objext
4515 CC="$CC -n32"
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_cv_sys_largefile_CC=' -n32'; break
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4543 rm -f conftest.err conftest.$ac_objext
4544 break
4545 done
4546 CC=$ac_save_CC
4547 rm -f conftest.$ac_ext
4550 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4551 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4552 if test "$ac_cv_sys_largefile_CC" != no; then
4553 CC=$CC$ac_cv_sys_largefile_CC
4556 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4557 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4558 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 while :; do
4562 ac_cv_sys_file_offset_bits=no
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #include <sys/types.h>
4570 /* Check that off_t can represent 2**63 - 1 correctly.
4571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4572 since some C++ compilers masquerading as C compilers
4573 incorrectly reject 9223372036854775807. */
4574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4576 && LARGE_OFF_T % 2147483647 == 1)
4577 ? 1 : -1];
4579 main ()
4583 return 0;
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 break
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 #define _FILE_OFFSET_BITS 64
4621 #include <sys/types.h>
4622 /* Check that off_t can represent 2**63 - 1 correctly.
4623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4624 since some C++ compilers masquerading as C compilers
4625 incorrectly reject 9223372036854775807. */
4626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4628 && LARGE_OFF_T % 2147483647 == 1)
4629 ? 1 : -1];
4631 main ()
4635 return 0;
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_sys_file_offset_bits=64; break
4660 else
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 break
4667 done
4669 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4670 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4671 if test "$ac_cv_sys_file_offset_bits" != no; then
4673 cat >>confdefs.h <<_ACEOF
4674 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4675 _ACEOF
4678 rm -f conftest*
4679 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4680 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4681 if test "${ac_cv_sys_large_files+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 while :; do
4685 ac_cv_sys_large_files=no
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #include <sys/types.h>
4693 /* Check that off_t can represent 2**63 - 1 correctly.
4694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4695 since some C++ compilers masquerading as C compilers
4696 incorrectly reject 9223372036854775807. */
4697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4699 && LARGE_OFF_T % 2147483647 == 1)
4700 ? 1 : -1];
4702 main ()
4706 return 0;
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 break
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #define _LARGE_FILES 1
4744 #include <sys/types.h>
4745 /* Check that off_t can represent 2**63 - 1 correctly.
4746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4747 since some C++ compilers masquerading as C compilers
4748 incorrectly reject 9223372036854775807. */
4749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4751 && LARGE_OFF_T % 2147483647 == 1)
4752 ? 1 : -1];
4754 main ()
4758 return 0;
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_sys_large_files=1; break
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789 break
4790 done
4792 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4793 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4794 if test "$ac_cv_sys_large_files" != no; then
4796 cat >>confdefs.h <<_ACEOF
4797 #define _LARGE_FILES $ac_cv_sys_large_files
4798 _ACEOF
4801 rm -f conftest*
4805 if test "${with_sound}" != "no"; then
4806 # Sound support for GNU/Linux and the free BSDs.
4807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4809 if test "${ac_cv_header_stdc+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <stdlib.h>
4819 #include <stdarg.h>
4820 #include <string.h>
4821 #include <float.h>
4824 main ()
4828 return 0;
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; } &&
4846 { ac_try='test -s conftest.$ac_objext'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 ac_cv_header_stdc=yes
4853 else
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4857 ac_cv_header_stdc=no
4859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861 if test $ac_cv_header_stdc = yes; then
4862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <string.h>
4871 _ACEOF
4872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4873 $EGREP "memchr" >/dev/null 2>&1; then
4875 else
4876 ac_cv_header_stdc=no
4878 rm -f conftest*
4882 if test $ac_cv_header_stdc = yes; then
4883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <stdlib.h>
4892 _ACEOF
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894 $EGREP "free" >/dev/null 2>&1; then
4896 else
4897 ac_cv_header_stdc=no
4899 rm -f conftest*
4903 if test $ac_cv_header_stdc = yes; then
4904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4905 if test "$cross_compiling" = yes; then
4907 else
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <ctype.h>
4915 #if ((' ' & 0x0FF) == 0x020)
4916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4918 #else
4919 # define ISLOWER(c) \
4920 (('a' <= (c) && (c) <= 'i') \
4921 || ('j' <= (c) && (c) <= 'r') \
4922 || ('s' <= (c) && (c) <= 'z'))
4923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4924 #endif
4926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 main ()
4930 int i;
4931 for (i = 0; i < 256; i++)
4932 if (XOR (islower (i), ISLOWER (i))
4933 || toupper (i) != TOUPPER (i))
4934 exit(2);
4935 exit (0);
4937 _ACEOF
4938 rm -f conftest$ac_exeext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4950 else
4951 echo "$as_me: program exited with status $ac_status" >&5
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 ( exit $ac_status )
4956 ac_cv_header_stdc=no
4958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4964 if test $ac_cv_header_stdc = yes; then
4966 cat >>confdefs.h <<\_ACEOF
4967 #define STDC_HEADERS 1
4968 _ACEOF
4972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4983 inttypes.h stdint.h unistd.h
4985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986 echo "$as_me:$LINENO: checking for $ac_header" >&5
4987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h. */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 $ac_includes_default
4999 #include <$ac_header>
5000 _ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>conftest.er1
5004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 eval "$as_ac_Header=yes"
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 eval "$as_ac_Header=no"
5029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5034 cat >>confdefs.h <<_ACEOF
5035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036 _ACEOF
5040 done
5046 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050 echo "$as_me:$LINENO: checking for $ac_header" >&5
5051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5057 else
5058 # Is the header compilable?
5059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5068 #include <$ac_header>
5069 _ACEOF
5070 rm -f conftest.$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_header_compiler=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 ac_header_compiler=no
5098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5100 echo "${ECHO_T}$ac_header_compiler" >&6
5102 # Is the header present?
5103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 #include <$ac_header>
5112 _ACEOF
5113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_c_preproc_warn_flag
5123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5124 else
5125 ac_cpp_err=
5127 else
5128 ac_cpp_err=yes
5130 if test -z "$ac_cpp_err"; then
5131 ac_header_preproc=yes
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 ac_header_preproc=no
5138 rm -f conftest.err conftest.$ac_ext
5139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5140 echo "${ECHO_T}$ac_header_preproc" >&6
5142 # So? What about this header?
5143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5144 yes:no: )
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5149 ac_header_preproc=yes
5151 no:yes:* )
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5165 cat <<\_ASBOX
5166 ## ------------------------------------------ ##
5167 ## Report this to the AC_PACKAGE_NAME lists. ##
5168 ## ------------------------------------------ ##
5169 _ASBOX
5171 sed "s/^/$as_me: WARNING: /" >&2
5173 esac
5174 echo "$as_me:$LINENO: checking for $ac_header" >&5
5175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 eval "$as_ac_Header=\$ac_header_preproc"
5181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186 cat >>confdefs.h <<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5188 _ACEOF
5192 done
5194 # Emulation library used on NetBSD.
5195 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5196 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5197 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 ac_check_lib_save_LIBS=$LIBS
5201 LIBS="-lossaudio $LIBS"
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5209 /* Override any gcc2 internal prototype to avoid an error. */
5210 #ifdef __cplusplus
5211 extern "C"
5212 #endif
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5215 char _oss_ioctl ();
5217 main ()
5219 _oss_ioctl ();
5221 return 0;
5223 _ACEOF
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_cv_lib_ossaudio__oss_ioctl=no
5252 rm -f conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
5254 LIBS=$ac_check_lib_save_LIBS
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5259 LIBSOUND=-lossaudio
5260 else
5261 LIBSOUND=
5292 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5293 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5294 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5295 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5296 sys/utsname.h pwd.h
5298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo "$as_me:$LINENO: checking for $ac_header" >&5
5301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5307 else
5308 # Is the header compilable?
5309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5311 cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h. */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 $ac_includes_default
5318 #include <$ac_header>
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; } &&
5335 { ac_try='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_header_compiler=yes
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 ac_header_compiler=no
5348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5350 echo "${ECHO_T}$ac_header_compiler" >&6
5352 # Is the header present?
5353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5355 cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h. */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #include <$ac_header>
5362 _ACEOF
5363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } >/dev/null; then
5371 if test -s conftest.err; then
5372 ac_cpp_err=$ac_c_preproc_warn_flag
5373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5374 else
5375 ac_cpp_err=
5377 else
5378 ac_cpp_err=yes
5380 if test -z "$ac_cpp_err"; then
5381 ac_header_preproc=yes
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_header_preproc=no
5388 rm -f conftest.err conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 echo "${ECHO_T}$ac_header_preproc" >&6
5392 # So? What about this header?
5393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5394 yes:no: )
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5399 ac_header_preproc=yes
5401 no:yes:* )
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5415 cat <<\_ASBOX
5416 ## ------------------------------------------ ##
5417 ## Report this to the AC_PACKAGE_NAME lists. ##
5418 ## ------------------------------------------ ##
5419 _ASBOX
5421 sed "s/^/$as_me: WARNING: /" >&2
5423 esac
5424 echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 eval "$as_ac_Header=\$ac_header_preproc"
5431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 _ACEOF
5442 done
5445 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5446 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <sys/personality.h>
5455 main ()
5457 personality (PER_LINUX32)
5459 return 0;
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 emacs_cv_personality_linux32=yes
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 emacs_cv_personality_linux32=no
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5492 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5494 if test $emacs_cv_personality_linux32 = yes; then
5496 cat >>confdefs.h <<\_ACEOF
5497 #define HAVE_PERSONALITY_LINUX32 1
5498 _ACEOF
5503 for ac_header in term.h
5505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5506 echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include <$ac_header>
5518 _ACEOF
5519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } >/dev/null; then
5527 if test -s conftest.err; then
5528 ac_cpp_err=$ac_c_preproc_warn_flag
5529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5530 else
5531 ac_cpp_err=
5533 else
5534 ac_cpp_err=yes
5536 if test -z "$ac_cpp_err"; then
5537 eval "$as_ac_Header=yes"
5538 else
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 eval "$as_ac_Header=no"
5544 rm -f conftest.err conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547 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
5557 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5559 if test "${ac_cv_header_stdc+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <stdlib.h>
5569 #include <stdarg.h>
5570 #include <string.h>
5571 #include <float.h>
5574 main ()
5578 return 0;
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_header_stdc=yes
5603 else
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 ac_cv_header_stdc=no
5609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5611 if test $ac_cv_header_stdc = yes; then
5612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h. */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <string.h>
5621 _ACEOF
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "memchr" >/dev/null 2>&1; then
5625 else
5626 ac_cv_header_stdc=no
5628 rm -f conftest*
5632 if test $ac_cv_header_stdc = yes; then
5633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 #include <stdlib.h>
5642 _ACEOF
5643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5644 $EGREP "free" >/dev/null 2>&1; then
5646 else
5647 ac_cv_header_stdc=no
5649 rm -f conftest*
5653 if test $ac_cv_header_stdc = yes; then
5654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5655 if test "$cross_compiling" = yes; then
5657 else
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <ctype.h>
5665 #if ((' ' & 0x0FF) == 0x020)
5666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5668 #else
5669 # define ISLOWER(c) \
5670 (('a' <= (c) && (c) <= 'i') \
5671 || ('j' <= (c) && (c) <= 'r') \
5672 || ('s' <= (c) && (c) <= 'z'))
5673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5674 #endif
5676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5678 main ()
5680 int i;
5681 for (i = 0; i < 256; i++)
5682 if (XOR (islower (i), ISLOWER (i))
5683 || toupper (i) != TOUPPER (i))
5684 exit(2);
5685 exit (0);
5687 _ACEOF
5688 rm -f conftest$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5700 else
5701 echo "$as_me: program exited with status $ac_status" >&5
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ( exit $ac_status )
5706 ac_cv_header_stdc=no
5708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5712 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5713 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5714 if test $ac_cv_header_stdc = yes; then
5716 cat >>confdefs.h <<\_ACEOF
5717 #define STDC_HEADERS 1
5718 _ACEOF
5722 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5724 if test "${ac_cv_header_time+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 #include <sys/time.h>
5735 #include <time.h>
5738 main ()
5740 if ((struct tm *) 0)
5741 return 0;
5743 return 0;
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; } &&
5761 { ac_try='test -s conftest.$ac_objext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_cv_header_time=yes
5768 else
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5772 ac_cv_header_time=no
5774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5776 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5777 echo "${ECHO_T}$ac_cv_header_time" >&6
5778 if test $ac_cv_header_time = yes; then
5780 cat >>confdefs.h <<\_ACEOF
5781 #define TIME_WITH_SYS_TIME 1
5782 _ACEOF
5786 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5787 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5788 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5799 main ()
5801 #ifndef sys_siglist
5802 char *p = (char *) sys_siglist;
5803 #endif
5806 return 0;
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_have_decl_sys_siglist=yes
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 ac_cv_have_decl_sys_siglist=no
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5840 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5841 if test $ac_cv_have_decl_sys_siglist = yes; then
5843 cat >>confdefs.h <<_ACEOF
5844 #define HAVE_DECL_SYS_SIGLIST 1
5845 _ACEOF
5848 else
5849 cat >>confdefs.h <<_ACEOF
5850 #define HAVE_DECL_SYS_SIGLIST 0
5851 _ACEOF
5857 if test $ac_cv_have_decl_sys_siglist != yes; then
5858 # For Tru64, at least:
5859 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5860 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5861 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $ac_includes_default
5872 main ()
5874 #ifndef __sys_siglist
5875 char *p = (char *) __sys_siglist;
5876 #endif
5879 return 0;
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_have_decl___sys_siglist=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 ac_cv_have_decl___sys_siglist=no
5910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5913 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5914 if test $ac_cv_have_decl___sys_siglist = yes; then
5916 cat >>confdefs.h <<_ACEOF
5917 #define HAVE_DECL___SYS_SIGLIST 1
5918 _ACEOF
5921 else
5922 cat >>confdefs.h <<_ACEOF
5923 #define HAVE_DECL___SYS_SIGLIST 0
5924 _ACEOF
5930 if test $ac_cv_have_decl___sys_siglist = yes; then
5932 cat >>confdefs.h <<\_ACEOF
5933 #define sys_siglist __sys_siglist
5934 _ACEOF
5938 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5939 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5940 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <sys/types.h>
5950 #include <sys/wait.h>
5951 #ifndef WEXITSTATUS
5952 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5953 #endif
5954 #ifndef WIFEXITED
5955 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5956 #endif
5959 main ()
5961 int s;
5962 wait (&s);
5963 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5965 return 0;
5967 _ACEOF
5968 rm -f conftest.$ac_objext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; } &&
5983 { ac_try='test -s conftest.$ac_objext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_header_sys_wait_h=yes
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 ac_cv_header_sys_wait_h=no
5996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5998 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5999 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6000 if test $ac_cv_header_sys_wait_h = yes; then
6002 cat >>confdefs.h <<\_ACEOF
6003 #define HAVE_SYS_WAIT_H 1
6004 _ACEOF
6009 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6010 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6011 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #ifdef TIME_WITH_SYS_TIME
6021 #include <sys/time.h>
6022 #include <time.h>
6023 #else
6024 #ifdef HAVE_SYS_TIME_H
6025 #include <sys/time.h>
6026 #else
6027 #include <time.h>
6028 #endif
6029 #endif
6030 #ifdef HAVE_UTIME_H
6031 #include <utime.h>
6032 #endif
6034 main ()
6036 static struct utimbuf x; x.actime = x.modtime;
6038 return 0;
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043 (eval $ac_compile) 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 (eval $ac_try) 2>&5
6053 ac_status=$?
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 emacs_cv_struct_utimbuf=yes
6063 else
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 emacs_cv_struct_utimbuf=no
6069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6072 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6073 if test $emacs_cv_struct_utimbuf = yes; then
6075 cat >>confdefs.h <<\_ACEOF
6076 #define HAVE_STRUCT_UTIMBUF 1
6077 _ACEOF
6081 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6082 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6083 if test "${ac_cv_type_signal+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <sys/types.h>
6093 #include <signal.h>
6094 #ifdef signal
6095 # undef signal
6096 #endif
6097 #ifdef __cplusplus
6098 extern "C" void (*signal (int, void (*)(int)))(int);
6099 #else
6100 void (*signal ()) ();
6101 #endif
6104 main ()
6106 int i;
6108 return 0;
6110 _ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113 (eval $ac_compile) 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_type_signal=void
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_cv_type_signal=int
6139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6141 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6142 echo "${ECHO_T}$ac_cv_type_signal" >&6
6144 cat >>confdefs.h <<_ACEOF
6145 #define RETSIGTYPE $ac_cv_type_signal
6146 _ACEOF
6150 echo "$as_me:$LINENO: checking for speed_t" >&5
6151 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6152 if test "${emacs_cv_speed_t+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <termios.h>
6163 main ()
6165 speed_t x = 1;
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest.$ac_objext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 emacs_cv_speed_t=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 emacs_cv_speed_t=no
6198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6200 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6201 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6202 if test $emacs_cv_speed_t = yes; then
6204 cat >>confdefs.h <<\_ACEOF
6205 #define HAVE_SPEED_T 1
6206 _ACEOF
6210 echo "$as_me:$LINENO: checking for struct timeval" >&5
6211 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6212 if test "${emacs_cv_struct_timeval+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #ifdef TIME_WITH_SYS_TIME
6222 #include <sys/time.h>
6223 #include <time.h>
6224 #else
6225 #ifdef HAVE_SYS_TIME_H
6226 #include <sys/time.h>
6227 #else
6228 #include <time.h>
6229 #endif
6230 #endif
6232 main ()
6234 static struct timeval x; x.tv_sec = x.tv_usec;
6236 return 0;
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 emacs_cv_struct_timeval=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 emacs_cv_struct_timeval=no
6267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6269 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6270 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6271 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6272 if test $emacs_cv_struct_timeval = yes; then
6274 cat >>confdefs.h <<\_ACEOF
6275 #define HAVE_TIMEVAL 1
6276 _ACEOF
6280 echo "$as_me:$LINENO: checking for struct exception" >&5
6281 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6282 if test "${emacs_cv_struct_exception+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h. */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <math.h>
6293 main ()
6295 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6297 return 0;
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 emacs_cv_struct_exception=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 emacs_cv_struct_exception=no
6328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6331 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6332 HAVE_EXCEPTION=$emacs_cv_struct_exception
6333 if test $emacs_cv_struct_exception != yes; then
6335 cat >>confdefs.h <<\_ACEOF
6336 #define NO_MATHERR 1
6337 _ACEOF
6342 for ac_header in sys/socket.h
6344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6346 echo "$as_me:$LINENO: checking for $ac_header" >&5
6347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6353 else
6354 # Is the header compilable?
6355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6357 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 $ac_includes_default
6364 #include <$ac_header>
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try='test -s conftest.$ac_objext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 ac_header_compiler=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 ac_header_compiler=no
6394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6396 echo "${ECHO_T}$ac_header_compiler" >&6
6398 # Is the header present?
6399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <$ac_header>
6408 _ACEOF
6409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } >/dev/null; then
6417 if test -s conftest.err; then
6418 ac_cpp_err=$ac_c_preproc_warn_flag
6419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6420 else
6421 ac_cpp_err=
6423 else
6424 ac_cpp_err=yes
6426 if test -z "$ac_cpp_err"; then
6427 ac_header_preproc=yes
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 ac_header_preproc=no
6434 rm -f conftest.err conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6436 echo "${ECHO_T}$ac_header_preproc" >&6
6438 # So? What about this header?
6439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6440 yes:no: )
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6445 ac_header_preproc=yes
6447 no:yes:* )
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6461 cat <<\_ASBOX
6462 ## ------------------------------------------ ##
6463 ## Report this to the AC_PACKAGE_NAME lists. ##
6464 ## ------------------------------------------ ##
6465 _ASBOX
6467 sed "s/^/$as_me: WARNING: /" >&2
6469 esac
6470 echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 eval "$as_ac_Header=\$ac_header_preproc"
6477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6484 _ACEOF
6488 done
6491 for ac_header in net/if.h
6493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h. */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 $ac_includes_default
6506 #if HAVE_SYS_SOCKET_H
6507 #include <sys/socket.h>
6508 #endif
6510 #include <$ac_header>
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 eval "$as_ac_Header=yes"
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 eval "$as_ac_Header=no"
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 _ACEOF
6551 done
6554 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6555 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6556 if test "${ac_cv_struct_tm+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #include <sys/types.h>
6566 #include <time.h>
6569 main ()
6571 struct tm *tp; tp->tm_sec;
6573 return 0;
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try='test -s conftest.$ac_objext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 (eval $ac_try) 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_cv_struct_tm=time.h
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 ac_cv_struct_tm=sys/time.h
6604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6606 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6607 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6608 if test $ac_cv_struct_tm = sys/time.h; then
6610 cat >>confdefs.h <<\_ACEOF
6611 #define TM_IN_SYS_TIME 1
6612 _ACEOF
6616 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6617 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6618 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/types.h>
6628 #include <$ac_cv_struct_tm>
6632 main ()
6634 static struct tm ac_aggr;
6635 if (ac_aggr.tm_zone)
6636 return 0;
6638 return 0;
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_member_struct_tm_tm_zone=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 #include <sys/types.h>
6674 #include <$ac_cv_struct_tm>
6678 main ()
6680 static struct tm ac_aggr;
6681 if (sizeof ac_aggr.tm_zone)
6682 return 0;
6684 return 0;
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try='test -s conftest.$ac_objext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_member_struct_tm_tm_zone=yes
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_cv_member_struct_tm_tm_zone=no
6715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6720 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6721 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6723 cat >>confdefs.h <<_ACEOF
6724 #define HAVE_STRUCT_TM_TM_ZONE 1
6725 _ACEOF
6730 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_TM_ZONE 1
6734 _ACEOF
6736 else
6737 echo "$as_me:$LINENO: checking for tzname" >&5
6738 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6739 if test "${ac_cv_var_tzname+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <time.h>
6749 #ifndef tzname /* For SGI. */
6750 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6751 #endif
6754 main ()
6756 atoi(*tzname);
6758 return 0;
6760 _ACEOF
6761 rm -f conftest.$ac_objext conftest$ac_exeext
6762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763 (eval $ac_link) 2>conftest.er1
6764 ac_status=$?
6765 grep -v '^ *+' conftest.er1 >conftest.err
6766 rm -f conftest.er1
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_var_tzname=yes
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6787 ac_cv_var_tzname=no
6789 rm -f conftest.err conftest.$ac_objext \
6790 conftest$ac_exeext conftest.$ac_ext
6792 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6793 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6794 if test $ac_cv_var_tzname = yes; then
6796 cat >>confdefs.h <<\_ACEOF
6797 #define HAVE_TZNAME 1
6798 _ACEOF
6803 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6804 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6805 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <time.h>
6817 main ()
6819 static struct tm ac_aggr;
6820 if (ac_aggr.tm_gmtoff)
6821 return 0;
6823 return 0;
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; } &&
6841 { ac_try='test -s conftest.$ac_objext'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 (eval $ac_try) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 ac_cv_member_struct_tm_tm_gmtoff=yes
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <time.h>
6861 main ()
6863 static struct tm ac_aggr;
6864 if (sizeof ac_aggr.tm_gmtoff)
6865 return 0;
6867 return 0;
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_member_struct_tm_tm_gmtoff=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_member_struct_tm_tm_gmtoff=no
6898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6902 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6903 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6904 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_TM_GMTOFF 1
6908 _ACEOF
6912 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6913 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6914 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 $ac_includes_default
6924 #if HAVE_SYS_SOCKET_H
6925 #include <sys/socket.h>
6926 #endif
6927 #if HAVE_NET_IF_H
6928 #include <net/if.h>
6929 #endif
6932 main ()
6934 static struct ifreq ac_aggr;
6935 if (ac_aggr.ifr_flags)
6936 return 0;
6938 return 0;
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_cv_member_struct_ifreq_ifr_flags=yes
6963 else
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6974 #if HAVE_SYS_SOCKET_H
6975 #include <sys/socket.h>
6976 #endif
6977 #if HAVE_NET_IF_H
6978 #include <net/if.h>
6979 #endif
6982 main ()
6984 static struct ifreq ac_aggr;
6985 if (sizeof ac_aggr.ifr_flags)
6986 return 0;
6988 return 0;
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 ac_cv_member_struct_ifreq_ifr_flags=yes
7013 else
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7017 ac_cv_member_struct_ifreq_ifr_flags=no
7019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7024 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7025 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7027 cat >>confdefs.h <<_ACEOF
7028 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7029 _ACEOF
7033 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7034 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7035 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 $ac_includes_default
7045 #if HAVE_SYS_SOCKET_H
7046 #include <sys/socket.h>
7047 #endif
7048 #if HAVE_NET_IF_H
7049 #include <net/if.h>
7050 #endif
7053 main ()
7055 static struct ifreq ac_aggr;
7056 if (ac_aggr.ifr_hwaddr)
7057 return 0;
7059 return 0;
7061 _ACEOF
7062 rm -f conftest.$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try='test -s conftest.$ac_objext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 #if HAVE_SYS_SOCKET_H
7096 #include <sys/socket.h>
7097 #endif
7098 #if HAVE_NET_IF_H
7099 #include <net/if.h>
7100 #endif
7103 main ()
7105 static struct ifreq ac_aggr;
7106 if (sizeof ac_aggr.ifr_hwaddr)
7107 return 0;
7109 return 0;
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7145 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7146 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7148 cat >>confdefs.h <<_ACEOF
7149 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7150 _ACEOF
7154 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7155 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7156 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7166 #if HAVE_SYS_SOCKET_H
7167 #include <sys/socket.h>
7168 #endif
7169 #if HAVE_NET_IF_H
7170 #include <net/if.h>
7171 #endif
7174 main ()
7176 static struct ifreq ac_aggr;
7177 if (ac_aggr.ifr_netmask)
7178 return 0;
7180 return 0;
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest.$ac_objext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_cv_member_struct_ifreq_ifr_netmask=yes
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 #if HAVE_SYS_SOCKET_H
7217 #include <sys/socket.h>
7218 #endif
7219 #if HAVE_NET_IF_H
7220 #include <net/if.h>
7221 #endif
7224 main ()
7226 static struct ifreq ac_aggr;
7227 if (sizeof ac_aggr.ifr_netmask)
7228 return 0;
7230 return 0;
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235 (eval $ac_compile) 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_member_struct_ifreq_ifr_netmask=yes
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 ac_cv_member_struct_ifreq_ifr_netmask=no
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7266 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7267 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7271 _ACEOF
7275 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7276 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7277 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 $ac_includes_default
7287 #if HAVE_SYS_SOCKET_H
7288 #include <sys/socket.h>
7289 #endif
7290 #if HAVE_NET_IF_H
7291 #include <net/if.h>
7292 #endif
7295 main ()
7297 static struct ifreq ac_aggr;
7298 if (ac_aggr.ifr_broadaddr)
7299 return 0;
7301 return 0;
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
7313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 (eval $ac_try) 2>&5
7316 ac_status=$?
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; } &&
7319 { ac_try='test -s conftest.$ac_objext'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 (eval $ac_try) 2>&5
7322 ac_status=$?
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 #if HAVE_SYS_SOCKET_H
7338 #include <sys/socket.h>
7339 #endif
7340 #if HAVE_NET_IF_H
7341 #include <net/if.h>
7342 #endif
7345 main ()
7347 static struct ifreq ac_aggr;
7348 if (sizeof ac_aggr.ifr_broadaddr)
7349 return 0;
7351 return 0;
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 (eval $ac_try) 2>&5
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7386 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7387 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7388 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7390 cat >>confdefs.h <<_ACEOF
7391 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7392 _ACEOF
7396 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7397 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7398 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7408 #if HAVE_SYS_SOCKET_H
7409 #include <sys/socket.h>
7410 #endif
7411 #if HAVE_NET_IF_H
7412 #include <net/if.h>
7413 #endif
7416 main ()
7418 static struct ifreq ac_aggr;
7419 if (ac_aggr.ifr_addr)
7420 return 0;
7422 return 0;
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 (eval $ac_try) 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; } &&
7440 { ac_try='test -s conftest.$ac_objext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 (eval $ac_try) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_member_struct_ifreq_ifr_addr=yes
7447 else
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 #if HAVE_SYS_SOCKET_H
7459 #include <sys/socket.h>
7460 #endif
7461 #if HAVE_NET_IF_H
7462 #include <net/if.h>
7463 #endif
7466 main ()
7468 static struct ifreq ac_aggr;
7469 if (sizeof ac_aggr.ifr_addr)
7470 return 0;
7472 return 0;
7474 _ACEOF
7475 rm -f conftest.$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_member_struct_ifreq_ifr_addr=yes
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 ac_cv_member_struct_ifreq_ifr_addr=no
7503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7508 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7509 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7513 _ACEOF
7520 echo "$as_me:$LINENO: checking for function prototypes" >&5
7521 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7522 if test "$ac_cv_prog_cc_stdc" != no; then
7523 echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7526 cat >>confdefs.h <<\_ACEOF
7527 #define PROTOTYPES 1
7528 _ACEOF
7531 cat >>confdefs.h <<\_ACEOF
7532 #define __PROTOTYPES 1
7533 _ACEOF
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7540 echo "$as_me:$LINENO: checking for working volatile" >&5
7541 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7542 if test "${ac_cv_c_volatile+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7553 main ()
7556 volatile int x;
7557 int * volatile y;
7559 return 0;
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564 (eval $ac_compile) 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_c_volatile=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_c_volatile=no
7590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7592 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7593 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7594 if test $ac_cv_c_volatile = no; then
7596 cat >>confdefs.h <<\_ACEOF
7597 #define volatile
7598 _ACEOF
7602 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7603 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7604 if test "${ac_cv_c_const+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7615 main ()
7617 /* FIXME: Include the comments suggested by Paul. */
7618 #ifndef __cplusplus
7619 /* Ultrix mips cc rejects this. */
7620 typedef int charset[2];
7621 const charset x;
7622 /* SunOS 4.1.1 cc rejects this. */
7623 char const *const *ccp;
7624 char **p;
7625 /* NEC SVR4.0.2 mips cc rejects this. */
7626 struct point {int x, y;};
7627 static struct point const zero = {0,0};
7628 /* AIX XL C 1.02.0.0 rejects this.
7629 It does not let you subtract one const X* pointer from another in
7630 an arm of an if-expression whose if-part is not a constant
7631 expression */
7632 const char *g = "string";
7633 ccp = &g + (g ? g-g : 0);
7634 /* HPUX 7.0 cc rejects these. */
7635 ++ccp;
7636 p = (char**) ccp;
7637 ccp = (char const *const *) p;
7638 { /* SCO 3.2v4 cc rejects this. */
7639 char *t;
7640 char const *s = 0 ? (char *) 0 : (char const *) 0;
7642 *t++ = 0;
7644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7645 int x[] = {25, 17};
7646 const int *foo = &x[0];
7647 ++foo;
7649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7650 typedef const int *iptr;
7651 iptr p = 0;
7652 ++p;
7654 { /* AIX XL C 1.02.0.0 rejects this saying
7655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7656 struct s { int j; const int *ap[3]; };
7657 struct s *b; b->j = 5;
7659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7660 const int foo = 10;
7662 #endif
7665 return 0;
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 (eval $ac_try) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_c_const=yes
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_cv_c_const=no
7696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7698 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7699 echo "${ECHO_T}$ac_cv_c_const" >&6
7700 if test $ac_cv_c_const = no; then
7702 cat >>confdefs.h <<\_ACEOF
7703 #define const
7704 _ACEOF
7708 echo "$as_me:$LINENO: checking for void * support" >&5
7709 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7710 if test "${emacs_cv_void_star+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h. */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7721 main ()
7723 void * foo;
7725 return 0;
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>conftest.er1
7731 ac_status=$?
7732 grep -v '^ *+' conftest.er1 >conftest.err
7733 rm -f conftest.er1
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 emacs_cv_void_star=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 emacs_cv_void_star=no
7756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7759 echo "${ECHO_T}$emacs_cv_void_star" >&6
7760 if test $emacs_cv_void_star = yes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define POINTER_TYPE void
7763 _ACEOF
7765 else
7766 cat >>confdefs.h <<\_ACEOF
7767 #define POINTER_TYPE char
7768 _ACEOF
7776 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7777 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7778 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7779 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782 cat >conftest.make <<\_ACEOF
7783 all:
7784 @echo 'ac_maketemp="$(MAKE)"'
7785 _ACEOF
7786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7787 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7788 if test -n "$ac_maketemp"; then
7789 eval ac_cv_prog_make_${ac_make}_set=yes
7790 else
7791 eval ac_cv_prog_make_${ac_make}_set=no
7793 rm -f conftest.make
7795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7796 echo "$as_me:$LINENO: result: yes" >&5
7797 echo "${ECHO_T}yes" >&6
7798 SET_MAKE=
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7802 SET_MAKE="MAKE=${MAKE-make}"
7806 echo "$as_me:$LINENO: checking for long file names" >&5
7807 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7808 if test "${ac_cv_sys_long_file_names+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 ac_cv_sys_long_file_names=yes
7812 # Test for long file names in all the places we know might matter:
7813 # . the current directory, where building will happen
7814 # $prefix/lib where we will be installing things
7815 # $exec_prefix/lib likewise
7816 # eval it to expand exec_prefix.
7817 # $TMPDIR if set, where it might want to write temporary files
7818 # if $TMPDIR is not set:
7819 # /tmp where it might want to write temporary files
7820 # /var/tmp likewise
7821 # /usr/tmp likewise
7822 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7823 ac_tmpdirs=$TMPDIR
7824 else
7825 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7827 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7828 test -d $ac_dir || continue
7829 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7830 ac_xdir=$ac_dir/cf$$
7831 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7832 ac_tf1=$ac_xdir/conftest9012345
7833 ac_tf2=$ac_xdir/conftest9012346
7834 (echo 1 >$ac_tf1) 2>/dev/null
7835 (echo 2 >$ac_tf2) 2>/dev/null
7836 ac_val=`cat $ac_tf1 2>/dev/null`
7837 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7838 ac_cv_sys_long_file_names=no
7839 rm -rf $ac_xdir 2>/dev/null
7840 break
7842 rm -rf $ac_xdir 2>/dev/null
7843 done
7845 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7846 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7847 if test $ac_cv_sys_long_file_names = yes; then
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_LONG_FILE_NAMES 1
7851 _ACEOF
7856 #### Choose a window system.
7858 echo "$as_me:$LINENO: checking for X" >&5
7859 echo $ECHO_N "checking for X... $ECHO_C" >&6
7861 ac_path_x_has_been_run=yes
7863 # Check whether --with-x or --without-x was given.
7864 if test "${with_x+set}" = set; then
7865 withval="$with_x"
7868 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7869 if test "x$with_x" = xno; then
7870 # The user explicitly disabled X.
7871 have_x=disabled
7872 else
7873 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7874 # Both variables are already set.
7875 have_x=yes
7876 else
7877 if test "${ac_cv_have_x+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880 # One or both of the vars are not set, and there is no cached value.
7881 ac_x_includes=no ac_x_libraries=no
7882 rm -fr conftest.dir
7883 if mkdir conftest.dir; then
7884 cd conftest.dir
7885 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7886 cat >Imakefile <<'_ACEOF'
7887 acfindx:
7888 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7889 _ACEOF
7890 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7892 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7893 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7894 for ac_extension in a so sl; do
7895 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7896 test -f $ac_im_libdir/libX11.$ac_extension; then
7897 ac_im_usrlibdir=$ac_im_libdir; break
7899 done
7900 # Screen out bogus values from the imake configuration. They are
7901 # bogus both because they are the default anyway, and because
7902 # using them would break gcc on systems where it needs fixed includes.
7903 case $ac_im_incroot in
7904 /usr/include) ;;
7905 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7906 esac
7907 case $ac_im_usrlibdir in
7908 /usr/lib | /lib) ;;
7909 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7910 esac
7912 cd ..
7913 rm -fr conftest.dir
7916 # Standard set of common directories for X headers.
7917 # Check X11 before X11Rn because it is often a symlink to the current release.
7918 ac_x_header_dirs='
7919 /usr/X11/include
7920 /usr/X11R6/include
7921 /usr/X11R5/include
7922 /usr/X11R4/include
7924 /usr/include/X11
7925 /usr/include/X11R6
7926 /usr/include/X11R5
7927 /usr/include/X11R4
7929 /usr/local/X11/include
7930 /usr/local/X11R6/include
7931 /usr/local/X11R5/include
7932 /usr/local/X11R4/include
7934 /usr/local/include/X11
7935 /usr/local/include/X11R6
7936 /usr/local/include/X11R5
7937 /usr/local/include/X11R4
7939 /usr/X386/include
7940 /usr/x386/include
7941 /usr/XFree86/include/X11
7943 /usr/include
7944 /usr/local/include
7945 /usr/unsupported/include
7946 /usr/athena/include
7947 /usr/local/x11r5/include
7948 /usr/lpp/Xamples/include
7950 /usr/openwin/include
7951 /usr/openwin/share/include'
7953 if test "$ac_x_includes" = no; then
7954 # Guess where to find include files, by looking for a specified header file.
7955 # First, try using that file with no special directory specified.
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 #include <X11/Intrinsic.h>
7963 _ACEOF
7964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } >/dev/null; then
7972 if test -s conftest.err; then
7973 ac_cpp_err=$ac_c_preproc_warn_flag
7974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7975 else
7976 ac_cpp_err=
7978 else
7979 ac_cpp_err=yes
7981 if test -z "$ac_cpp_err"; then
7982 # We can compile using X headers with no special include directory.
7983 ac_x_includes=
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 for ac_dir in $ac_x_header_dirs; do
7989 if test -r "$ac_dir/X11/Intrinsic.h"; then
7990 ac_x_includes=$ac_dir
7991 break
7993 done
7995 rm -f conftest.err conftest.$ac_ext
7996 fi # $ac_x_includes = no
7998 if test "$ac_x_libraries" = no; then
7999 # Check for the libraries.
8000 # See if we find them without any special options.
8001 # Don't add to $LIBS permanently.
8002 ac_save_LIBS=$LIBS
8003 LIBS="-lXt $LIBS"
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <X11/Intrinsic.h>
8012 main ()
8014 XtMalloc (0)
8016 return 0;
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 LIBS=$ac_save_LIBS
8041 # We can link X programs with no special library path.
8042 ac_x_libraries=
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 LIBS=$ac_save_LIBS
8048 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8050 # Don't even attempt the hair of trying to link an X program!
8051 for ac_extension in a so sl; do
8052 if test -r $ac_dir/libXt.$ac_extension; then
8053 ac_x_libraries=$ac_dir
8054 break 2
8056 done
8057 done
8059 rm -f conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 fi # $ac_x_libraries = no
8063 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8064 # Didn't find X anywhere. Cache the known absence of X.
8065 ac_cv_have_x="have_x=no"
8066 else
8067 # Record where we found X for the cache.
8068 ac_cv_have_x="have_x=yes \
8069 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8074 eval "$ac_cv_have_x"
8075 fi # $with_x != no
8077 if test "$have_x" != yes; then
8078 echo "$as_me:$LINENO: result: $have_x" >&5
8079 echo "${ECHO_T}$have_x" >&6
8080 no_x=yes
8081 else
8082 # If each of the values was on the command line, it overrides each guess.
8083 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8084 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8085 # Update the cache value to reflect the command line values.
8086 ac_cv_have_x="have_x=yes \
8087 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8088 # It might be that x_includes is empty (headers are found in the
8089 # standard search path. Then output the corresponding message
8090 ac_out_x_includes=$x_includes
8091 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8092 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8093 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8096 if test "$no_x" = yes; then
8097 window_system=none
8098 else
8099 window_system=x11
8102 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8103 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8104 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8105 x_default_search_path=""
8106 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8107 x_search_path="\
8108 ${x_library}/X11/%L/%T/%N%C%S:\
8109 ${x_library}/X11/%l/%T/%N%C%S:\
8110 ${x_library}/X11/%T/%N%C%S:\
8111 ${x_library}/X11/%L/%T/%N%S:\
8112 ${x_library}/X11/%l/%T/%N%S:\
8113 ${x_library}/X11/%T/%N%S"
8114 if test x"${x_default_search_path}" = x; then
8115 x_default_search_path=${x_search_path}
8116 else
8117 x_default_search_path="${x_search_path}:${x_default_search_path}"
8119 done
8121 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8122 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8125 if test x"${x_includes}" = x; then
8126 bitmapdir=/usr/include/X11/bitmaps
8127 else
8128 # accumulate include directories that have X11 bitmap subdirectories
8129 bmd_acc="dummyval"
8130 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8131 if test -d "${bmd}/X11/bitmaps"; then
8132 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8134 if test -d "${bmd}/bitmaps"; then
8135 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8137 done
8138 if test ${bmd_acc} != "dummyval"; then
8139 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8143 case "${window_system}" in
8144 x11 )
8145 HAVE_X_WINDOWS=yes
8146 HAVE_X11=yes
8147 case "${with_x_toolkit}" in
8148 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8149 motif ) USE_X_TOOLKIT=MOTIF ;;
8150 gtk ) with_gtk=yes
8151 USE_X_TOOLKIT=none ;;
8152 no ) USE_X_TOOLKIT=none ;;
8153 * ) USE_X_TOOLKIT=maybe ;;
8154 esac
8156 none )
8157 HAVE_X_WINDOWS=no
8158 HAVE_X11=no
8159 USE_X_TOOLKIT=none
8161 esac
8163 ### If we're using X11, we should use the X menu package.
8164 HAVE_MENUS=no
8165 case ${HAVE_X11} in
8166 yes ) HAVE_MENUS=yes ;;
8167 esac
8169 if test "${opsys}" = "hpux9"; then
8170 case "${x_libraries}" in
8171 *X11R4* )
8172 opsysfile="s/hpux9-x11r4.h"
8174 esac
8177 if test "${opsys}" = "hpux9shr"; then
8178 case "${x_libraries}" in
8179 *X11R4* )
8180 opsysfile="s/hpux9shxr4.h"
8182 esac
8185 HAVE_CARBON=no
8186 if test "${HAVE_X11}" != "yes"; then
8187 if test "${with_carbon}" != "no"; then
8188 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8189 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8190 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8195 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8196 else
8197 # Is the header compilable?
8198 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8199 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8200 cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h. */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206 $ac_includes_default
8207 #include <Carbon/Carbon.h>
8208 _ACEOF
8209 rm -f conftest.$ac_objext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211 (eval $ac_compile) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_header_compiler=yes
8231 else
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 ac_header_compiler=no
8237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8239 echo "${ECHO_T}$ac_header_compiler" >&6
8241 # Is the header present?
8242 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8243 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 #include <Carbon/Carbon.h>
8251 _ACEOF
8252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } >/dev/null; then
8260 if test -s conftest.err; then
8261 ac_cpp_err=$ac_c_preproc_warn_flag
8262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8263 else
8264 ac_cpp_err=
8266 else
8267 ac_cpp_err=yes
8269 if test -z "$ac_cpp_err"; then
8270 ac_header_preproc=yes
8271 else
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8275 ac_header_preproc=no
8277 rm -f conftest.err conftest.$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8279 echo "${ECHO_T}$ac_header_preproc" >&6
8281 # So? What about this header?
8282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8283 yes:no: )
8284 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8285 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8286 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8287 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8288 ac_header_preproc=yes
8290 no:yes:* )
8291 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8292 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8294 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8295 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8296 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8298 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8300 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8302 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8304 cat <<\_ASBOX
8305 ## ------------------------------------------ ##
8306 ## Report this to the AC_PACKAGE_NAME lists. ##
8307 ## ------------------------------------------ ##
8308 _ASBOX
8310 sed "s/^/$as_me: WARNING: /" >&2
8312 esac
8313 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8314 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8315 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8320 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8321 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8324 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8325 HAVE_CARBON=yes
8332 ### Compute the unexec source name from the object name.
8333 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8335 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8336 # Assume not, until told otherwise.
8337 GNU_MALLOC=yes
8338 doug_lea_malloc=yes
8339 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8340 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8341 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8352 #define malloc_get_state innocuous_malloc_get_state
8354 /* System header to define __stub macros and hopefully few prototypes,
8355 which can conflict with char malloc_get_state (); below.
8356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357 <limits.h> exists even on freestanding compilers. */
8359 #ifdef __STDC__
8360 # include <limits.h>
8361 #else
8362 # include <assert.h>
8363 #endif
8365 #undef malloc_get_state
8367 /* Override any gcc2 internal prototype to avoid an error. */
8368 #ifdef __cplusplus
8369 extern "C"
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char malloc_get_state ();
8375 /* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8379 choke me
8380 #else
8381 char (*f) () = malloc_get_state;
8382 #endif
8383 #ifdef __cplusplus
8385 #endif
8388 main ()
8390 return f != malloc_get_state;
8392 return 0;
8394 _ACEOF
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397 (eval $ac_link) 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_func_malloc_get_state=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_func_malloc_get_state=no
8423 rm -f conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8427 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8428 if test $ac_cv_func_malloc_get_state = yes; then
8430 else
8431 doug_lea_malloc=no
8434 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8435 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8436 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8447 #define malloc_set_state innocuous_malloc_set_state
8449 /* System header to define __stub macros and hopefully few prototypes,
8450 which can conflict with char malloc_set_state (); below.
8451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8452 <limits.h> exists even on freestanding compilers. */
8454 #ifdef __STDC__
8455 # include <limits.h>
8456 #else
8457 # include <assert.h>
8458 #endif
8460 #undef malloc_set_state
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 #ifdef __cplusplus
8464 extern "C"
8466 #endif
8467 /* We use char because int might match the return type of a gcc2
8468 builtin and then its argument prototype would still apply. */
8469 char malloc_set_state ();
8470 /* The GNU C library defines this for functions which it implements
8471 to always fail with ENOSYS. Some functions are actually named
8472 something starting with __ and the normal name is an alias. */
8473 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8474 choke me
8475 #else
8476 char (*f) () = malloc_set_state;
8477 #endif
8478 #ifdef __cplusplus
8480 #endif
8483 main ()
8485 return f != malloc_set_state;
8487 return 0;
8489 _ACEOF
8490 rm -f conftest.$ac_objext conftest$ac_exeext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8492 (eval $ac_link) 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 (eval $ac_try) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_malloc_set_state=yes
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_func_malloc_set_state=no
8518 rm -f conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8522 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8523 if test $ac_cv_func_malloc_set_state = yes; then
8525 else
8526 doug_lea_malloc=no
8529 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8530 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8531 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 extern void (* __after_morecore_hook)();
8542 main ()
8544 __after_morecore_hook = 0
8546 return 0;
8548 _ACEOF
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 emacs_cv_var___after_morecore_hook=yes
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 emacs_cv_var___after_morecore_hook=no
8577 rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8580 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8581 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8582 if test $emacs_cv_var___after_morecore_hook = no; then
8583 doug_lea_malloc=no
8585 if test "${system_malloc}" = "yes"; then
8586 GNU_MALLOC=no
8587 GNU_MALLOC_reason="
8588 (The GNU allocators don't work with this system configuration.)"
8590 if test "$doug_lea_malloc" = "yes" ; then
8591 if test "$GNU_MALLOC" = yes ; then
8592 GNU_MALLOC_reason="
8593 (Using Doug Lea's new malloc from the GNU C Library.)"
8596 cat >>confdefs.h <<\_ACEOF
8597 #define DOUG_LEA_MALLOC 1
8598 _ACEOF
8602 if test x"${REL_ALLOC}" = x; then
8603 REL_ALLOC=${GNU_MALLOC}
8609 for ac_header in stdlib.h unistd.h
8611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8613 echo "$as_me:$LINENO: checking for $ac_header" >&5
8614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8620 else
8621 # Is the header compilable?
8622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8631 #include <$ac_header>
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_header_compiler=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_header_compiler=no
8661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663 echo "${ECHO_T}$ac_header_compiler" >&6
8665 # Is the header present?
8666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <$ac_header>
8675 _ACEOF
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev/null; then
8684 if test -s conftest.err; then
8685 ac_cpp_err=$ac_c_preproc_warn_flag
8686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8687 else
8688 ac_cpp_err=
8690 else
8691 ac_cpp_err=yes
8693 if test -z "$ac_cpp_err"; then
8694 ac_header_preproc=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_header_preproc=no
8701 rm -f conftest.err conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8703 echo "${ECHO_T}$ac_header_preproc" >&6
8705 # So? What about this header?
8706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8707 yes:no: )
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8712 ac_header_preproc=yes
8714 no:yes:* )
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8728 cat <<\_ASBOX
8729 ## ------------------------------------------ ##
8730 ## Report this to the AC_PACKAGE_NAME lists. ##
8731 ## ------------------------------------------ ##
8732 _ASBOX
8734 sed "s/^/$as_me: WARNING: /" >&2
8736 esac
8737 echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 eval "$as_ac_Header=\$ac_header_preproc"
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8749 cat >>confdefs.h <<_ACEOF
8750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8751 _ACEOF
8755 done
8758 for ac_func in getpagesize
8760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8761 echo "$as_me:$LINENO: checking for $ac_func" >&5
8762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_var+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766 cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h. */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8774 #define $ac_func innocuous_$ac_func
8776 /* System header to define __stub macros and hopefully few prototypes,
8777 which can conflict with char $ac_func (); below.
8778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8779 <limits.h> exists even on freestanding compilers. */
8781 #ifdef __STDC__
8782 # include <limits.h>
8783 #else
8784 # include <assert.h>
8785 #endif
8787 #undef $ac_func
8789 /* Override any gcc2 internal prototype to avoid an error. */
8790 #ifdef __cplusplus
8791 extern "C"
8793 #endif
8794 /* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8796 char $ac_func ();
8797 /* The GNU C library defines this for functions which it implements
8798 to always fail with ENOSYS. Some functions are actually named
8799 something starting with __ and the normal name is an alias. */
8800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8801 choke me
8802 #else
8803 char (*f) () = $ac_func;
8804 #endif
8805 #ifdef __cplusplus
8807 #endif
8810 main ()
8812 return f != $ac_func;
8814 return 0;
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 eval "$as_ac_var=yes"
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 eval "$as_ac_var=no"
8845 rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8850 if test `eval echo '${'$as_ac_var'}'` = yes; then
8851 cat >>confdefs.h <<_ACEOF
8852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8853 _ACEOF
8856 done
8858 echo "$as_me:$LINENO: checking for working mmap" >&5
8859 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8860 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 if test "$cross_compiling" = yes; then
8864 ac_cv_func_mmap_fixed_mapped=no
8865 else
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h. */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 $ac_includes_default
8873 /* malloc might have been renamed as rpl_malloc. */
8874 #undef malloc
8876 /* Thanks to Mike Haertel and Jim Avera for this test.
8877 Here is a matrix of mmap possibilities:
8878 mmap private not fixed
8879 mmap private fixed at somewhere currently unmapped
8880 mmap private fixed at somewhere already mapped
8881 mmap shared not fixed
8882 mmap shared fixed at somewhere currently unmapped
8883 mmap shared fixed at somewhere already mapped
8884 For private mappings, we should verify that changes cannot be read()
8885 back from the file, nor mmap's back from the file at a different
8886 address. (There have been systems where private was not correctly
8887 implemented like the infamous i386 svr4.0, and systems where the
8888 VM page cache was not coherent with the file system buffer cache
8889 like early versions of FreeBSD and possibly contemporary NetBSD.)
8890 For shared mappings, we should conversely verify that changes get
8891 propagated back to all the places they're supposed to be.
8893 Grep wants private fixed already mapped.
8894 The main things grep needs to know about mmap are:
8895 * does it exist and is it safe to write into the mmap'd area
8896 * how to use it (BSD variants) */
8898 #include <fcntl.h>
8899 #include <sys/mman.h>
8901 #if !STDC_HEADERS && !HAVE_STDLIB_H
8902 char *malloc ();
8903 #endif
8905 /* This mess was copied from the GNU getpagesize.h. */
8906 #if !HAVE_GETPAGESIZE
8907 /* Assume that all systems that can run configure have sys/param.h. */
8908 # if !HAVE_SYS_PARAM_H
8909 # define HAVE_SYS_PARAM_H 1
8910 # endif
8912 # ifdef _SC_PAGESIZE
8913 # define getpagesize() sysconf(_SC_PAGESIZE)
8914 # else /* no _SC_PAGESIZE */
8915 # if HAVE_SYS_PARAM_H
8916 # include <sys/param.h>
8917 # ifdef EXEC_PAGESIZE
8918 # define getpagesize() EXEC_PAGESIZE
8919 # else /* no EXEC_PAGESIZE */
8920 # ifdef NBPG
8921 # define getpagesize() NBPG * CLSIZE
8922 # ifndef CLSIZE
8923 # define CLSIZE 1
8924 # endif /* no CLSIZE */
8925 # else /* no NBPG */
8926 # ifdef NBPC
8927 # define getpagesize() NBPC
8928 # else /* no NBPC */
8929 # ifdef PAGESIZE
8930 # define getpagesize() PAGESIZE
8931 # endif /* PAGESIZE */
8932 # endif /* no NBPC */
8933 # endif /* no NBPG */
8934 # endif /* no EXEC_PAGESIZE */
8935 # else /* no HAVE_SYS_PARAM_H */
8936 # define getpagesize() 8192 /* punt totally */
8937 # endif /* no HAVE_SYS_PARAM_H */
8938 # endif /* no _SC_PAGESIZE */
8940 #endif /* no HAVE_GETPAGESIZE */
8943 main ()
8945 char *data, *data2, *data3;
8946 int i, pagesize;
8947 int fd;
8949 pagesize = getpagesize ();
8951 /* First, make a file with some known garbage in it. */
8952 data = (char *) malloc (pagesize);
8953 if (!data)
8954 exit (1);
8955 for (i = 0; i < pagesize; ++i)
8956 *(data + i) = rand ();
8957 umask (0);
8958 fd = creat ("conftest.mmap", 0600);
8959 if (fd < 0)
8960 exit (1);
8961 if (write (fd, data, pagesize) != pagesize)
8962 exit (1);
8963 close (fd);
8965 /* Next, try to mmap the file at a fixed address which already has
8966 something else allocated at it. If we can, also make sure that
8967 we see the same garbage. */
8968 fd = open ("conftest.mmap", O_RDWR);
8969 if (fd < 0)
8970 exit (1);
8971 data2 = (char *) malloc (2 * pagesize);
8972 if (!data2)
8973 exit (1);
8974 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8975 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8977 exit (1);
8978 for (i = 0; i < pagesize; ++i)
8979 if (*(data + i) != *(data2 + i))
8980 exit (1);
8982 /* Finally, make sure that changes to the mapped area do not
8983 percolate back to the file as seen by read(). (This is a bug on
8984 some variants of i386 svr4.0.) */
8985 for (i = 0; i < pagesize; ++i)
8986 *(data2 + i) = *(data2 + i) + 1;
8987 data3 = (char *) malloc (pagesize);
8988 if (!data3)
8989 exit (1);
8990 if (read (fd, data3, pagesize) != pagesize)
8991 exit (1);
8992 for (i = 0; i < pagesize; ++i)
8993 if (*(data + i) != *(data3 + i))
8994 exit (1);
8995 close (fd);
8996 exit (0);
8998 _ACEOF
8999 rm -f conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_func_mmap_fixed_mapped=yes
9011 else
9012 echo "$as_me: program exited with status $ac_status" >&5
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ( exit $ac_status )
9017 ac_cv_func_mmap_fixed_mapped=no
9019 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9023 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9024 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9026 cat >>confdefs.h <<\_ACEOF
9027 #define HAVE_MMAP 1
9028 _ACEOF
9031 rm -f conftest.mmap
9033 if test $use_mmap_for_buffers = yes; then
9034 REL_ALLOC=no
9037 LIBS="$libsrc_libs $LIBS"
9040 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9041 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9042 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 ac_check_lib_save_LIBS=$LIBS
9046 LIBS="-ldnet $LIBS"
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9054 /* Override any gcc2 internal prototype to avoid an error. */
9055 #ifdef __cplusplus
9056 extern "C"
9057 #endif
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9060 char dnet_ntoa ();
9062 main ()
9064 dnet_ntoa ();
9066 return 0;
9068 _ACEOF
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; } &&
9084 { ac_try='test -s conftest$ac_exeext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_cv_lib_dnet_dnet_ntoa=yes
9091 else
9092 echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9095 ac_cv_lib_dnet_dnet_ntoa=no
9097 rm -f conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 LIBS=$ac_check_lib_save_LIBS
9101 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9102 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9103 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105 #define HAVE_LIBDNET 1
9106 _ACEOF
9108 LIBS="-ldnet $LIBS"
9113 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9114 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9115 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118 ac_check_lib_save_LIBS=$LIBS
9119 LIBS="-lXbsd $LIBS"
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h. */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9129 main ()
9131 main ();
9133 return 0;
9135 _ACEOF
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138 (eval $ac_link) 2>conftest.er1
9139 ac_status=$?
9140 grep -v '^ *+' conftest.er1 >conftest.err
9141 rm -f conftest.er1
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest$ac_exeext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_cv_lib_Xbsd_main=yes
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_cv_lib_Xbsd_main=no
9164 rm -f conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9168 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9169 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9170 if test $ac_cv_lib_Xbsd_main = yes; then
9171 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9176 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9177 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9178 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 ac_check_lib_save_LIBS=$LIBS
9182 LIBS="-lpthreads $LIBS"
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9190 /* Override any gcc2 internal prototype to avoid an error. */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 /* We use char because int might match the return type of a gcc2
9195 builtin and then its argument prototype would still apply. */
9196 char cma_open ();
9198 main ()
9200 cma_open ();
9202 return 0;
9204 _ACEOF
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9207 (eval $ac_link) 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; } &&
9220 { ac_try='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_cv_lib_pthreads_cma_open=yes
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_cv_lib_pthreads_cma_open=no
9233 rm -f conftest.err conftest.$ac_objext \
9234 conftest$ac_exeext conftest.$ac_ext
9235 LIBS=$ac_check_lib_save_LIBS
9237 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9238 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9239 if test $ac_cv_lib_pthreads_cma_open = yes; then
9240 cat >>confdefs.h <<_ACEOF
9241 #define HAVE_LIBPTHREADS 1
9242 _ACEOF
9244 LIBS="-lpthreads $LIBS"
9249 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9250 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9251 if test -d /usr/X386/include; then
9252 HAVE_XFREE386=yes
9253 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9254 else
9255 HAVE_XFREE386=no
9257 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9258 echo "${ECHO_T}$HAVE_XFREE386" >&6
9261 case ${host_os} in
9262 aix*)
9263 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9264 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9265 if test "${gdb_cv_bigtoc+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9269 case $GCC in
9270 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9271 *) gdb_cv_bigtoc=-bbigtoc ;;
9272 esac
9274 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9283 main ()
9285 int i;
9287 return 0;
9289 _ACEOF
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 gdb_cv_bigtoc=
9318 rm -f conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9322 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9323 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9325 esac
9327 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9328 # used for the tests that follow. We set them back to REAL_CFLAGS and
9329 # REAL_CPPFLAGS later on.
9331 REAL_CPPFLAGS="$CPPFLAGS"
9333 if test "${HAVE_X11}" = "yes"; then
9334 DEFS="$C_SWITCH_X_SITE $DEFS"
9335 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9336 LIBS="$LIBX $LIBS"
9337 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9338 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9340 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9341 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9342 # but it's more convenient here to set LD_RUN_PATH
9343 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9344 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9345 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9346 export LD_RUN_PATH
9349 if test "${opsys}" = "gnu-linux"; then
9350 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9351 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h. */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9360 main ()
9362 XOpenDisplay ("foo");
9364 return 0;
9366 _ACEOF
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 xlinux_first_failure=no
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 xlinux_first_failure=yes
9395 rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 if test "${xlinux_first_failure}" = "yes"; then
9398 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9399 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9400 OLD_CPPFLAGS="$CPPFLAGS"
9401 OLD_LIBS="$LIBS"
9402 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9403 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9404 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9405 LIBS="$LIBS -b i486-linuxaout"
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9414 main ()
9416 XOpenDisplay ("foo");
9418 return 0;
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>conftest.er1
9424 ac_status=$?
9425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 (eval $ac_try) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try='test -s conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 xlinux_second_failure=no
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 xlinux_second_failure=yes
9449 rm -f conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 if test "${xlinux_second_failure}" = "yes"; then
9452 # If we get the same failure with -b, there is no use adding -b.
9453 # So take it out. This plays safe.
9454 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9455 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9456 CPPFLAGS="$OLD_CPPFLAGS"
9457 LIBS="$OLD_LIBS"
9458 echo "$as_me:$LINENO: result: no" >&5
9459 echo "${ECHO_T}no" >&6
9460 else
9461 echo "$as_me:$LINENO: result: yes" >&5
9462 echo "${ECHO_T}yes" >&6
9464 else
9465 echo "$as_me:$LINENO: result: no" >&5
9466 echo "${ECHO_T}no" >&6
9470 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9471 # header files included from there.
9472 echo "$as_me:$LINENO: checking for Xkb" >&5
9473 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h. */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <X11/Xlib.h>
9481 #include <X11/XKBlib.h>
9483 main ()
9485 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9487 return 0;
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 emacs_xkb=yes
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 emacs_xkb=no
9518 rm -f conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9521 echo "${ECHO_T}$emacs_xkb" >&6
9522 if test $emacs_xkb = yes; then
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_XKBGETKEYBOARD 1
9526 _ACEOF
9534 for ac_func in XrmSetDatabase XScreenResourceString \
9535 XScreenNumberOfScreen XSetWMProtocols
9537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538 echo "$as_me:$LINENO: checking for $ac_func" >&5
9539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9540 if eval "test \"\${$as_ac_var+set}\" = set"; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h. */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9551 #define $ac_func innocuous_$ac_func
9553 /* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char $ac_func (); below.
9555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556 <limits.h> exists even on freestanding compilers. */
9558 #ifdef __STDC__
9559 # include <limits.h>
9560 #else
9561 # include <assert.h>
9562 #endif
9564 #undef $ac_func
9566 /* Override any gcc2 internal prototype to avoid an error. */
9567 #ifdef __cplusplus
9568 extern "C"
9570 #endif
9571 /* We use char because int might match the return type of a gcc2
9572 builtin and then its argument prototype would still apply. */
9573 char $ac_func ();
9574 /* The GNU C library defines this for functions which it implements
9575 to always fail with ENOSYS. Some functions are actually named
9576 something starting with __ and the normal name is an alias. */
9577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9578 choke me
9579 #else
9580 char (*f) () = $ac_func;
9581 #endif
9582 #ifdef __cplusplus
9584 #endif
9587 main ()
9589 return f != $ac_func;
9591 return 0;
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596 (eval $ac_link) 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 eval "$as_ac_var=yes"
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 eval "$as_ac_var=no"
9622 rm -f conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9627 if test `eval echo '${'$as_ac_var'}'` = yes; then
9628 cat >>confdefs.h <<_ACEOF
9629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9630 _ACEOF
9633 done
9637 if test "${window_system}" = "x11"; then
9638 echo "$as_me:$LINENO: checking X11 version 6" >&5
9639 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9640 if test "${emacs_cv_x11_version_6+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <X11/Xlib.h>
9651 main ()
9653 #if XlibSpecificationRelease < 6
9654 fail;
9655 #endif
9658 return 0;
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 emacs_cv_x11_version_6=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 emacs_cv_x11_version_6=no
9689 rm -f conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9693 if test $emacs_cv_x11_version_6 = yes; then
9694 echo "$as_me:$LINENO: result: 6 or newer" >&5
9695 echo "${ECHO_T}6 or newer" >&6
9697 cat >>confdefs.h <<\_ACEOF
9698 #define HAVE_X11R6 1
9699 _ACEOF
9701 else
9702 echo "$as_me:$LINENO: result: before 6" >&5
9703 echo "${ECHO_T}before 6" >&6
9707 if test "${window_system}" = "x11"; then
9708 echo "$as_me:$LINENO: checking X11 version 5" >&5
9709 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9710 if test "${emacs_cv_x11_version_5+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h. */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719 #include <X11/Xlib.h>
9721 main ()
9723 #if XlibSpecificationRelease < 5
9724 fail;
9725 #endif
9728 return 0;
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 emacs_cv_x11_version_5=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 emacs_cv_x11_version_5=no
9759 rm -f conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9763 if test $emacs_cv_x11_version_5 = yes; then
9764 echo "$as_me:$LINENO: result: 5 or newer" >&5
9765 echo "${ECHO_T}5 or newer" >&6
9766 HAVE_X11R5=yes
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_X11R5 1
9770 _ACEOF
9772 else
9773 HAVE_X11R5=no
9774 echo "$as_me:$LINENO: result: before 5" >&5
9775 echo "${ECHO_T}before 5" >&6
9781 HAVE_GTK=no
9782 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9783 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9784 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9785 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9786 { (exit 1); exit 1; }; };
9788 GLIB_REQUIRED=2.0.1
9789 GTK_REQUIRED=2.0.1
9790 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9792 if test "X${with_pkg_config_prog}" != X; then
9793 PKG_CONFIG="${with_pkg_config_prog}"
9796 succeeded=no
9798 if test -z "$PKG_CONFIG"; then
9799 # Extract the first word of "pkg-config", so it can be a program name with args.
9800 set dummy pkg-config; ac_word=$2
9801 echo "$as_me:$LINENO: checking for $ac_word" >&5
9802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9803 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 case $PKG_CONFIG in
9807 [\\/]* | ?:[\\/]*)
9808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9822 done
9823 done
9825 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9827 esac
9829 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9831 if test -n "$PKG_CONFIG"; then
9832 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9833 echo "${ECHO_T}$PKG_CONFIG" >&6
9834 else
9835 echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9841 if test "$PKG_CONFIG" = "no" ; then
9842 echo "*** The pkg-config script could not be found. Make sure it is"
9843 echo "*** in your path, or give the full path to pkg-config with"
9844 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9845 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9846 else
9847 PKG_CONFIG_MIN_VERSION=0.9.0
9848 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9849 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9850 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9852 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9853 echo "$as_me:$LINENO: result: yes" >&5
9854 echo "${ECHO_T}yes" >&6
9855 succeeded=yes
9857 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9858 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9859 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9860 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9861 echo "${ECHO_T}$GTK_CFLAGS" >&6
9863 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9864 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9865 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9866 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9867 echo "${ECHO_T}$GTK_LIBS" >&6
9868 else
9869 GTK_CFLAGS=""
9870 GTK_LIBS=""
9871 ## If we have a custom action on failure, don't print errors, but
9872 ## do set a variable so people can do so.
9873 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9874 echo $GTK_PKG_ERRORS
9879 else
9880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9885 if test $succeeded = yes; then
9887 else
9888 { { 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
9889 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;}
9890 { (exit 1); exit 1; }; }
9895 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9896 CFLAGS="$CFLAGS $GTK_CFLAGS"
9897 LIBS="$GTK_LIBS $LIBS"
9898 HAVE_GTK=yes
9900 cat >>confdefs.h <<\_ACEOF
9901 #define HAVE_GTK 1
9902 _ACEOF
9904 USE_X_TOOLKIT=none
9906 if test "$with_toolkit_scroll_bars" != no; then
9907 with_toolkit_scroll_bars=yes
9910 HAVE_GTK_MULTIDISPLAY=no
9912 for ac_func in gdk_display_open
9914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9915 echo "$as_me:$LINENO: checking for $ac_func" >&5
9916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9917 if eval "test \"\${$as_ac_var+set}\" = set"; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h. */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9928 #define $ac_func innocuous_$ac_func
9930 /* System header to define __stub macros and hopefully few prototypes,
9931 which can conflict with char $ac_func (); below.
9932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9933 <limits.h> exists even on freestanding compilers. */
9935 #ifdef __STDC__
9936 # include <limits.h>
9937 #else
9938 # include <assert.h>
9939 #endif
9941 #undef $ac_func
9943 /* Override any gcc2 internal prototype to avoid an error. */
9944 #ifdef __cplusplus
9945 extern "C"
9947 #endif
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9950 char $ac_func ();
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9955 choke me
9956 #else
9957 char (*f) () = $ac_func;
9958 #endif
9959 #ifdef __cplusplus
9961 #endif
9964 main ()
9966 return f != $ac_func;
9968 return 0;
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 eval "$as_ac_var=yes"
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 eval "$as_ac_var=no"
9999 rm -f conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10004 if test `eval echo '${'$as_ac_var'}'` = yes; then
10005 cat >>confdefs.h <<_ACEOF
10006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10007 _ACEOF
10008 HAVE_GTK_MULTIDISPLAY=yes
10010 done
10012 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_GTK_MULTIDISPLAY 1
10016 _ACEOF
10019 HAVE_GTK_FILE_SELECTION=no
10021 for ac_func in gtk_file_selection_new
10023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10024 echo "$as_me:$LINENO: checking for $ac_func" >&5
10025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10026 if eval "test \"\${$as_ac_var+set}\" = set"; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h. */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10037 #define $ac_func innocuous_$ac_func
10039 /* System header to define __stub macros and hopefully few prototypes,
10040 which can conflict with char $ac_func (); below.
10041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10042 <limits.h> exists even on freestanding compilers. */
10044 #ifdef __STDC__
10045 # include <limits.h>
10046 #else
10047 # include <assert.h>
10048 #endif
10050 #undef $ac_func
10052 /* Override any gcc2 internal prototype to avoid an error. */
10053 #ifdef __cplusplus
10054 extern "C"
10056 #endif
10057 /* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10059 char $ac_func ();
10060 /* The GNU C library defines this for functions which it implements
10061 to always fail with ENOSYS. Some functions are actually named
10062 something starting with __ and the normal name is an alias. */
10063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10064 choke me
10065 #else
10066 char (*f) () = $ac_func;
10067 #endif
10068 #ifdef __cplusplus
10070 #endif
10073 main ()
10075 return f != $ac_func;
10077 return 0;
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 eval "$as_ac_var=yes"
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 eval "$as_ac_var=no"
10108 rm -f conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10113 if test `eval echo '${'$as_ac_var'}'` = yes; then
10114 cat >>confdefs.h <<_ACEOF
10115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10116 _ACEOF
10117 HAVE_GTK_FILE_SELECTION=yes
10119 done
10122 HAVE_GTK_FILE_CHOOSER=no
10124 for ac_func in gtk_file_chooser_dialog_new
10126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10127 echo "$as_me:$LINENO: checking for $ac_func" >&5
10128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10129 if eval "test \"\${$as_ac_var+set}\" = set"; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10140 #define $ac_func innocuous_$ac_func
10142 /* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char $ac_func (); below.
10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10145 <limits.h> exists even on freestanding compilers. */
10147 #ifdef __STDC__
10148 # include <limits.h>
10149 #else
10150 # include <assert.h>
10151 #endif
10153 #undef $ac_func
10155 /* Override any gcc2 internal prototype to avoid an error. */
10156 #ifdef __cplusplus
10157 extern "C"
10159 #endif
10160 /* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10162 char $ac_func ();
10163 /* The GNU C library defines this for functions which it implements
10164 to always fail with ENOSYS. Some functions are actually named
10165 something starting with __ and the normal name is an alias. */
10166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10167 choke me
10168 #else
10169 char (*f) () = $ac_func;
10170 #endif
10171 #ifdef __cplusplus
10173 #endif
10176 main ()
10178 return f != $ac_func;
10180 return 0;
10182 _ACEOF
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; } &&
10198 { ac_try='test -s conftest$ac_exeext'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 eval "$as_ac_var=yes"
10205 else
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 eval "$as_ac_var=no"
10211 rm -f conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10216 if test `eval echo '${'$as_ac_var'}'` = yes; then
10217 cat >>confdefs.h <<_ACEOF
10218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10219 _ACEOF
10220 HAVE_GTK_FILE_CHOOSER=yes
10222 done
10225 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10226 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10228 cat >>confdefs.h <<\_ACEOF
10229 #define HAVE_GTK_FILE_BOTH 1
10230 _ACEOF
10234 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10235 HAVE_GTK_AND_PTHREAD=no
10237 for ac_header in pthread.h
10239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10241 echo "$as_me:$LINENO: checking for $ac_header" >&5
10242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10248 else
10249 # Is the header compilable?
10250 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 $ac_includes_default
10259 #include <$ac_header>
10260 _ACEOF
10261 rm -f conftest.$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_header_compiler=yes
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_header_compiler=no
10289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10291 echo "${ECHO_T}$ac_header_compiler" >&6
10293 # Is the header present?
10294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <$ac_header>
10303 _ACEOF
10304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } >/dev/null; then
10312 if test -s conftest.err; then
10313 ac_cpp_err=$ac_c_preproc_warn_flag
10314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10315 else
10316 ac_cpp_err=
10318 else
10319 ac_cpp_err=yes
10321 if test -z "$ac_cpp_err"; then
10322 ac_header_preproc=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 ac_header_preproc=no
10329 rm -f conftest.err conftest.$ac_ext
10330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10331 echo "${ECHO_T}$ac_header_preproc" >&6
10333 # So? What about this header?
10334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10335 yes:no: )
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10340 ac_header_preproc=yes
10342 no:yes:* )
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10356 cat <<\_ASBOX
10357 ## ------------------------------------------ ##
10358 ## Report this to the AC_PACKAGE_NAME lists. ##
10359 ## ------------------------------------------ ##
10360 _ASBOX
10362 sed "s/^/$as_me: WARNING: /" >&2
10364 esac
10365 echo "$as_me:$LINENO: checking for $ac_header" >&5
10366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370 eval "$as_ac_Header=\$ac_header_preproc"
10372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10377 cat >>confdefs.h <<_ACEOF
10378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10379 _ACEOF
10383 done
10385 if test "$ac_cv_header_pthread_h"; then
10386 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10387 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10388 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-lpthread $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10400 /* Override any gcc2 internal prototype to avoid an error. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */
10406 char pthread_self ();
10408 main ()
10410 pthread_self ();
10412 return 0;
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest$ac_exeext'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
10436 ac_cv_lib_pthread_pthread_self=yes
10437 else
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10441 ac_cv_lib_pthread_pthread_self=no
10443 rm -f conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10447 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10448 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10449 if test $ac_cv_lib_pthread_pthread_self = yes; then
10450 HAVE_GTK_AND_PTHREAD=yes
10454 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10455 GTK_LIBS="$GTK_LIBS -lpthread"
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_GTK_AND_PTHREAD 1
10459 _ACEOF
10465 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10466 if test x"${HAVE_X11R5}" = xyes; then
10467 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10468 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10469 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10479 #include <X11/Intrinsic.h>
10480 #include <X11/Xaw/Simple.h>
10482 main ()
10486 return 0;
10488 _ACEOF
10489 rm -f conftest.$ac_objext conftest$ac_exeext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10491 (eval $ac_link) 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; } &&
10504 { ac_try='test -s conftest$ac_exeext'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 emacs_cv_x11_version_5_with_xaw=yes
10511 else
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 emacs_cv_x11_version_5_with_xaw=no
10517 rm -f conftest.err conftest.$ac_objext \
10518 conftest$ac_exeext conftest.$ac_ext
10521 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10522 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10523 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10524 USE_X_TOOLKIT=LUCID
10525 else
10526 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10527 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10528 USE_X_TOOLKIT=none
10530 else
10531 USE_X_TOOLKIT=none
10535 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10537 if test "${USE_X_TOOLKIT}" != "none"; then
10538 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10539 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10540 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 #include <X11/Intrinsic.h>
10551 main ()
10553 #if XtSpecificationRelease < 6
10554 fail;
10555 #endif
10558 return 0;
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>conftest.er1
10564 ac_status=$?
10565 grep -v '^ *+' conftest.er1 >conftest.err
10566 rm -f conftest.er1
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 emacs_cv_x11_toolkit_version_6=yes
10583 else
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 emacs_cv_x11_toolkit_version_6=no
10589 rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10593 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10594 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10595 echo "$as_me:$LINENO: result: 6 or newer" >&5
10596 echo "${ECHO_T}6 or newer" >&6
10598 cat >>confdefs.h <<\_ACEOF
10599 #define HAVE_X11XTR6 1
10600 _ACEOF
10602 else
10603 echo "$as_me:$LINENO: result: before 6" >&5
10604 echo "${ECHO_T}before 6" >&6
10607 OLDLIBS="$LIBS"
10608 if test x$HAVE_X11XTR6 = xyes; then
10609 LIBS="-lXt -lSM -lICE $LIBS"
10610 else
10611 LIBS="-lXt $LIBS"
10614 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10615 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10616 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-lXmu $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h. */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 /* Override any gcc2 internal prototype to avoid an error. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 /* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10634 char XmuConvertStandardSelection ();
10636 main ()
10638 XmuConvertStandardSelection ();
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10665 else
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10671 rm -f conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10675 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10676 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10677 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10678 cat >>confdefs.h <<_ACEOF
10679 #define HAVE_LIBXMU 1
10680 _ACEOF
10682 LIBS="-lXmu $LIBS"
10686 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10689 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10690 if test "${HAVE_X11}" = "yes"; then
10691 if test "${USE_X_TOOLKIT}" != "none"; then
10693 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10694 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10695 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 ac_check_lib_save_LIBS=$LIBS
10699 LIBS="-lXext $LIBS"
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10707 /* Override any gcc2 internal prototype to avoid an error. */
10708 #ifdef __cplusplus
10709 extern "C"
10710 #endif
10711 /* We use char because int might match the return type of a gcc2
10712 builtin and then its argument prototype would still apply. */
10713 char XShapeQueryExtension ();
10715 main ()
10717 XShapeQueryExtension ();
10719 return 0;
10721 _ACEOF
10722 rm -f conftest.$ac_objext conftest$ac_exeext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10724 (eval $ac_link) 2>conftest.er1
10725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest$ac_exeext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_cv_lib_Xext_XShapeQueryExtension=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10748 ac_cv_lib_Xext_XShapeQueryExtension=no
10750 rm -f conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752 LIBS=$ac_check_lib_save_LIBS
10754 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10755 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10756 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_LIBXEXT 1
10759 _ACEOF
10761 LIBS="-lXext $LIBS"
10768 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10769 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10770 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10771 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 #include <Xm/Xm.h>
10782 main ()
10784 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10785 int x = 5;
10786 #else
10787 Motif version prior to 2.1.
10788 #endif
10790 return 0;
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 emacs_cv_motif_version_2_1=yes
10815 else
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 emacs_cv_motif_version_2_1=no
10821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10823 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10824 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10825 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10826 if test $emacs_cv_motif_version_2_1 = yes; then
10827 HAVE_LIBXP=no
10829 cat >>confdefs.h <<\_ACEOF
10830 #define HAVE_MOTIF_2_1 1
10831 _ACEOF
10833 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10834 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10835 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-lXp $LIBS"
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10847 /* Override any gcc2 internal prototype to avoid an error. */
10848 #ifdef __cplusplus
10849 extern "C"
10850 #endif
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10853 char XpCreateContext ();
10855 main ()
10857 XpCreateContext ();
10859 return 0;
10861 _ACEOF
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10864 (eval $ac_link) 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_lib_Xp_XpCreateContext=yes
10884 else
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_cv_lib_Xp_XpCreateContext=no
10890 rm -f conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10894 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10895 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10896 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10897 HAVE_LIBXP=yes
10900 if test ${HAVE_LIBXP} = yes; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_LIBXP 1
10904 _ACEOF
10907 else
10908 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10909 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10910 if test "${emacs_cv_lesstif+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 # We put this in CFLAGS temporarily to precede other -I options
10914 # that might be in CFLAGS temporarily.
10915 # We put this in CPPFLAGS where it precedes the other -I options.
10916 OLD_CPPFLAGS=$CPPFLAGS
10917 OLD_CFLAGS=$CFLAGS
10918 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10919 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10928 main ()
10930 int x = 5;
10932 return 0;
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 emacs_cv_lesstif=yes
10957 else
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10961 emacs_cv_lesstif=no
10963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10966 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10967 if test $emacs_cv_lesstif = yes; then
10968 # Make sure this -I option remains in CPPFLAGS after it is set
10969 # back to REAL_CPPFLAGS.
10970 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10971 # have those other -I options anyway. Ultimately, having this
10972 # directory ultimately in CPPFLAGS will be enough.
10973 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10974 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10975 else
10976 CFLAGS=$OLD_CFLAGS
10977 CPPFLAGS=$OLD_CPPFLAGS
10982 ### Is -lXaw3d available?
10983 HAVE_XAW3D=no
10984 if test "${HAVE_X11}" = "yes"; then
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10987 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10988 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <X11/Xaw3d/Scrollbar.h>
10998 _ACEOF
10999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } >/dev/null; then
11007 if test -s conftest.err; then
11008 ac_cpp_err=$ac_c_preproc_warn_flag
11009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11010 else
11011 ac_cpp_err=
11013 else
11014 ac_cpp_err=yes
11016 if test -z "$ac_cpp_err"; then
11017 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11018 else
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11022 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11024 rm -f conftest.err conftest.$ac_ext
11026 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11027 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11028 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11029 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11030 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11031 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034 ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-lXaw3d $LIBS"
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11043 /* Override any gcc2 internal prototype to avoid an error. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 /* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
11049 char XawScrollbarSetThumb ();
11051 main ()
11053 XawScrollbarSetThumb ();
11055 return 0;
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
11067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; } &&
11073 { ac_try='test -s conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11086 rm -f conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 LIBS=$ac_check_lib_save_LIBS
11090 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11091 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11092 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11093 HAVE_XAW3D=yes
11099 if test "${HAVE_XAW3D}" = "yes"; then
11101 cat >>confdefs.h <<\_ACEOF
11102 #define HAVE_XAW3D 1
11103 _ACEOF
11111 USE_TOOLKIT_SCROLL_BARS=no
11112 if test "${with_toolkit_scroll_bars}" != "no"; then
11113 if test "${USE_X_TOOLKIT}" != "none"; then
11114 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11115 cat >>confdefs.h <<\_ACEOF
11116 #define USE_TOOLKIT_SCROLL_BARS 1
11117 _ACEOF
11119 HAVE_XAW3D=no
11120 USE_TOOLKIT_SCROLL_BARS=yes
11121 elif test "${HAVE_XAW3D}" = "yes"; then
11122 cat >>confdefs.h <<\_ACEOF
11123 #define USE_TOOLKIT_SCROLL_BARS 1
11124 _ACEOF
11126 USE_TOOLKIT_SCROLL_BARS=yes
11128 elif test "${HAVE_GTK}" = "yes"; then
11129 cat >>confdefs.h <<\_ACEOF
11130 #define USE_TOOLKIT_SCROLL_BARS 1
11131 _ACEOF
11133 USE_TOOLKIT_SCROLL_BARS=yes
11134 elif test "${HAVE_CARBON}" = "yes"; then
11135 cat >>confdefs.h <<\_ACEOF
11136 #define USE_TOOLKIT_SCROLL_BARS 1
11137 _ACEOF
11139 USE_TOOLKIT_SCROLL_BARS=yes
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11150 #include <X11/Xlib.h>
11151 #include <X11/Xresource.h>
11153 main ()
11155 XIMProc callback;
11157 return 0;
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest.$ac_objext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 HAVE_XIM=yes
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_XIM 1
11185 _ACEOF
11187 else
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 HAVE_XIM=no
11193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11196 if test "${with_xim}" != "no"; then
11198 cat >>confdefs.h <<\_ACEOF
11199 #define USE_XIM 1
11200 _ACEOF
11205 if test "${HAVE_XIM}" != "no"; then
11206 late_CFLAGS=$CFLAGS
11207 if test "$GCC" = yes; then
11208 CFLAGS="$CFLAGS --pedantic-errors"
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11217 #include <X11/Xlib.h>
11218 #include <X11/Xresource.h>
11220 main ()
11222 Display *display;
11223 XrmDatabase db;
11224 char *res_name;
11225 char *res_class;
11226 XIMProc callback;
11227 XPointer *client_data;
11228 #ifndef __GNUC__
11229 /* If we're not using GCC, it's probably not XFree86, and this is
11230 probably right, but we can't use something like --pedantic-errors. */
11231 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11232 char*, XIMProc, XPointer*);
11233 #endif
11234 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11235 client_data);
11237 return 0;
11239 _ACEOF
11240 rm -f conftest.$ac_objext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 emacs_cv_arg6_star=yes
11262 else
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269 if test "$emacs_cv_arg6_star" = yes; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11272 _ACEOF
11274 else
11275 cat >>confdefs.h <<\_ACEOF
11276 #define XRegisterIMInstantiateCallback_arg6 XPointer
11277 _ACEOF
11280 CFLAGS=$late_CFLAGS
11283 ### Use -lXpm if available, unless `--with-xpm=no'.
11284 HAVE_XPM=no
11285 if test "${HAVE_X11}" = "yes"; then
11286 if test "${with_xpm}" != "no"; then
11287 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11288 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11289 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11290 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11294 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11295 else
11296 # Is the header compilable?
11297 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11298 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h. */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 $ac_includes_default
11306 #include <X11/xpm.h>
11307 _ACEOF
11308 rm -f conftest.$ac_objext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11310 (eval $ac_compile) 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_header_compiler=yes
11330 else
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 ac_header_compiler=no
11336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11338 echo "${ECHO_T}$ac_header_compiler" >&6
11340 # Is the header present?
11341 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11342 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <X11/xpm.h>
11350 _ACEOF
11351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null; then
11359 if test -s conftest.err; then
11360 ac_cpp_err=$ac_c_preproc_warn_flag
11361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11362 else
11363 ac_cpp_err=
11365 else
11366 ac_cpp_err=yes
11368 if test -z "$ac_cpp_err"; then
11369 ac_header_preproc=yes
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_preproc=no
11376 rm -f conftest.err conftest.$ac_ext
11377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382 yes:no: )
11383 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11389 no:yes:* )
11390 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11403 cat <<\_ASBOX
11404 ## ------------------------------------------ ##
11405 ## Report this to the AC_PACKAGE_NAME lists. ##
11406 ## ------------------------------------------ ##
11407 _ASBOX
11409 sed "s/^/$as_me: WARNING: /" >&2
11411 esac
11412 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11413 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11414 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417 ac_cv_header_X11_xpm_h=$ac_header_preproc
11419 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11420 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11423 if test $ac_cv_header_X11_xpm_h = yes; then
11424 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11425 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11426 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429 ac_check_lib_save_LIBS=$LIBS
11430 LIBS="-lXpm -lX11 $LIBS"
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h. */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11438 /* Override any gcc2 internal prototype to avoid an error. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 /* We use char because int might match the return type of a gcc2
11443 builtin and then its argument prototype would still apply. */
11444 char XpmReadFileToPixmap ();
11446 main ()
11448 XpmReadFileToPixmap ();
11450 return 0;
11452 _ACEOF
11453 rm -f conftest.$ac_objext conftest$ac_exeext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11455 (eval $ac_link) 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try='test -s conftest$ac_exeext'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11481 rm -f conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11485 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11486 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11487 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11488 HAVE_XPM=yes
11494 if test "${HAVE_XPM}" = "yes"; then
11495 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11496 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include "X11/xpm.h"
11504 #ifndef XpmReturnAllocPixels
11505 no_return_alloc_pixels
11506 #endif
11508 _ACEOF
11509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11510 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11511 HAVE_XPM=no
11512 else
11513 HAVE_XPM=yes
11515 rm -f conftest*
11518 if test "${HAVE_XPM}" = "yes"; then
11519 echo "$as_me:$LINENO: result: yes" >&5
11520 echo "${ECHO_T}yes" >&6
11521 else
11522 echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6
11528 if test "${HAVE_XPM}" = "yes"; then
11530 cat >>confdefs.h <<\_ACEOF
11531 #define HAVE_XPM 1
11532 _ACEOF
11537 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11538 HAVE_JPEG=no
11539 if test "${HAVE_X11}" = "yes"; then
11540 if test "${with_jpeg}" != "no"; then
11541 if test "${ac_cv_header_jerror_h+set}" = set; then
11542 echo "$as_me:$LINENO: checking for jerror.h" >&5
11543 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11544 if test "${ac_cv_header_jerror_h+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11548 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11549 else
11550 # Is the header compilable?
11551 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11552 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #include <jerror.h>
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_header_compiler=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_header_compiler=no
11590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6
11594 # Is the header present?
11595 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11596 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <jerror.h>
11604 _ACEOF
11605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } >/dev/null; then
11613 if test -s conftest.err; then
11614 ac_cpp_err=$ac_c_preproc_warn_flag
11615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11616 else
11617 ac_cpp_err=
11619 else
11620 ac_cpp_err=yes
11622 if test -z "$ac_cpp_err"; then
11623 ac_header_preproc=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_header_preproc=no
11630 rm -f conftest.err conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 echo "${ECHO_T}$ac_header_preproc" >&6
11634 # So? What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 yes:no: )
11637 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11638 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11640 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc=yes
11643 no:yes:* )
11644 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11645 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11647 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11649 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11651 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11653 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11655 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11657 cat <<\_ASBOX
11658 ## ------------------------------------------ ##
11659 ## Report this to the AC_PACKAGE_NAME lists. ##
11660 ## ------------------------------------------ ##
11661 _ASBOX
11663 sed "s/^/$as_me: WARNING: /" >&2
11665 esac
11666 echo "$as_me:$LINENO: checking for jerror.h" >&5
11667 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11668 if test "${ac_cv_header_jerror_h+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671 ac_cv_header_jerror_h=$ac_header_preproc
11673 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11674 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11677 if test $ac_cv_header_jerror_h = yes; then
11678 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11679 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11680 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-ljpeg $LIBS"
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char jpeg_destroy_compress ();
11700 main ()
11702 jpeg_destroy_compress ();
11704 return 0;
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11735 rm -f conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LIBS=$ac_check_lib_save_LIBS
11739 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11740 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11741 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11742 HAVE_JPEG=yes
11751 if test "${HAVE_JPEG}" = "yes"; then
11752 cat >>confdefs.h <<\_ACEOF
11753 #define HAVE_JPEG 1
11754 _ACEOF
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 #include <jpeglib.h>
11763 version=JPEG_LIB_VERSION
11765 _ACEOF
11766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11767 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11768 cat >>confdefs.h <<\_ACEOF
11769 #define HAVE_JPEG 1
11770 _ACEOF
11772 else
11773 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11774 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11775 HAVE_JPEG=no
11777 rm -f conftest*
11782 ### Use -lpng if available, unless `--with-png=no'.
11783 HAVE_PNG=no
11784 if test "${HAVE_X11}" = "yes"; then
11785 if test "${with_png}" != "no"; then
11786 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11787 # in /usr/include/libpng.
11790 for ac_header in png.h libpng/png.h
11792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11794 echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801 else
11802 # Is the header compilable?
11803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11812 #include <$ac_header>
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_header_compiler=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_header_compiler=no
11842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11844 echo "${ECHO_T}$ac_header_compiler" >&6
11846 # Is the header present?
11847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h. */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 #include <$ac_header>
11856 _ACEOF
11857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11859 ac_status=$?
11860 grep -v '^ *+' conftest.er1 >conftest.err
11861 rm -f conftest.er1
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } >/dev/null; then
11865 if test -s conftest.err; then
11866 ac_cpp_err=$ac_c_preproc_warn_flag
11867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11868 else
11869 ac_cpp_err=
11871 else
11872 ac_cpp_err=yes
11874 if test -z "$ac_cpp_err"; then
11875 ac_header_preproc=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_header_preproc=no
11882 rm -f conftest.err conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6
11886 # So? What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888 yes:no: )
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893 ac_header_preproc=yes
11895 no:yes:* )
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11909 cat <<\_ASBOX
11910 ## ------------------------------------------ ##
11911 ## Report this to the AC_PACKAGE_NAME lists. ##
11912 ## ------------------------------------------ ##
11913 _ASBOX
11915 sed "s/^/$as_me: WARNING: /" >&2
11917 esac
11918 echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 eval "$as_ac_Header=\$ac_header_preproc"
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11932 _ACEOF
11936 done
11938 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11939 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11940 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11941 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-lpng -lz -lm $LIBS"
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11953 /* Override any gcc2 internal prototype to avoid an error. */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 /* We use char because int might match the return type of a gcc2
11958 builtin and then its argument prototype would still apply. */
11959 char png_get_channels ();
11961 main ()
11963 png_get_channels ();
11965 return 0;
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_lib_png_png_get_channels=yes
11990 else
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_cv_lib_png_png_get_channels=no
11996 rm -f conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
12000 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12001 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12002 if test $ac_cv_lib_png_png_get_channels = yes; then
12003 HAVE_PNG=yes
12009 if test "${HAVE_PNG}" = "yes"; then
12011 cat >>confdefs.h <<\_ACEOF
12012 #define HAVE_PNG 1
12013 _ACEOF
12018 ### Use -ltiff if available, unless `--with-tiff=no'.
12019 HAVE_TIFF=no
12020 if test "${HAVE_X11}" = "yes"; then
12021 if test "${with_tiff}" != "no"; then
12022 if test "${ac_cv_header_tiffio_h+set}" = set; then
12023 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12024 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12025 if test "${ac_cv_header_tiffio_h+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12029 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12030 else
12031 # Is the header compilable?
12032 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12033 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12041 #include <tiffio.h>
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045 (eval $ac_compile) 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_header_compiler=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_header_compiler=no
12071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12073 echo "${ECHO_T}$ac_header_compiler" >&6
12075 # Is the header present?
12076 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12077 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <tiffio.h>
12085 _ACEOF
12086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12088 ac_status=$?
12089 grep -v '^ *+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } >/dev/null; then
12094 if test -s conftest.err; then
12095 ac_cpp_err=$ac_c_preproc_warn_flag
12096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12097 else
12098 ac_cpp_err=
12100 else
12101 ac_cpp_err=yes
12103 if test -z "$ac_cpp_err"; then
12104 ac_header_preproc=yes
12105 else
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_header_preproc=no
12111 rm -f conftest.err conftest.$ac_ext
12112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12113 echo "${ECHO_T}$ac_header_preproc" >&6
12115 # So? What about this header?
12116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12117 yes:no: )
12118 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12119 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12121 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12122 ac_header_preproc=yes
12124 no:yes:* )
12125 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12126 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12128 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12130 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12132 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12134 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12136 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12138 cat <<\_ASBOX
12139 ## ------------------------------------------ ##
12140 ## Report this to the AC_PACKAGE_NAME lists. ##
12141 ## ------------------------------------------ ##
12142 _ASBOX
12144 sed "s/^/$as_me: WARNING: /" >&2
12146 esac
12147 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12148 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12149 if test "${ac_cv_header_tiffio_h+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 ac_cv_header_tiffio_h=$ac_header_preproc
12154 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12158 if test $ac_cv_header_tiffio_h = yes; then
12159 tifflibs="-lz -lm"
12160 # At least one tiff package requires the jpeg library.
12161 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12162 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12163 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12164 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-ltiff $tifflibs $LIBS"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12176 /* Override any gcc2 internal prototype to avoid an error. */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12182 char TIFFGetVersion ();
12184 main ()
12186 TIFFGetVersion ();
12188 return 0;
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_lib_tiff_TIFFGetVersion=yes
12213 else
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_cv_lib_tiff_TIFFGetVersion=no
12219 rm -f conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12224 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12225 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12226 HAVE_TIFF=yes
12234 if test "${HAVE_TIFF}" = "yes"; then
12236 cat >>confdefs.h <<\_ACEOF
12237 #define HAVE_TIFF 1
12238 _ACEOF
12243 ### Use -lgif if available, unless `--with-gif=no'.
12244 HAVE_GIF=no
12245 if test "${HAVE_X11}" = "yes"; then
12246 if test "${with_gif}" != "no"; then
12247 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12248 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12249 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12250 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12254 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12255 else
12256 # Is the header compilable?
12257 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12258 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 $ac_includes_default
12266 #include <gif_lib.h>
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270 (eval $ac_compile) 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_header_compiler=yes
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_header_compiler=no
12296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12298 echo "${ECHO_T}$ac_header_compiler" >&6
12300 # Is the header present?
12301 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12302 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 #include <gif_lib.h>
12310 _ACEOF
12311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } >/dev/null; then
12319 if test -s conftest.err; then
12320 ac_cpp_err=$ac_c_preproc_warn_flag
12321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12322 else
12323 ac_cpp_err=
12325 else
12326 ac_cpp_err=yes
12328 if test -z "$ac_cpp_err"; then
12329 ac_header_preproc=yes
12330 else
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 ac_header_preproc=no
12336 rm -f conftest.err conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12338 echo "${ECHO_T}$ac_header_preproc" >&6
12340 # So? What about this header?
12341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12342 yes:no: )
12343 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12344 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12346 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12347 ac_header_preproc=yes
12349 no:yes:* )
12350 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12351 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12353 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12355 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12357 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12359 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12361 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12363 cat <<\_ASBOX
12364 ## ------------------------------------------ ##
12365 ## Report this to the AC_PACKAGE_NAME lists. ##
12366 ## ------------------------------------------ ##
12367 _ASBOX
12369 sed "s/^/$as_me: WARNING: /" >&2
12371 esac
12372 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12373 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12374 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 ac_cv_header_gif_lib_h=$ac_header_preproc
12379 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12380 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12383 if test $ac_cv_header_gif_lib_h = yes; then
12384 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12385 # Earlier versions can crash Emacs.
12386 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12387 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12388 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-lungif $LIBS"
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 /* Override any gcc2 internal prototype to avoid an error. */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12406 char EGifPutExtensionLast ();
12408 main ()
12410 EGifPutExtensionLast ();
12412 return 0;
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest$ac_exeext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_cv_lib_ungif_EGifPutExtensionLast=no
12443 rm -f conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12447 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12448 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12449 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12450 HAVE_GIF=yes
12458 if test "${HAVE_GIF}" = "yes"; then
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_GIF 1
12462 _ACEOF
12467 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12468 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12469 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12470 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12474 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12475 else
12476 # Is the header compilable?
12477 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12478 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12486 #include <malloc/malloc.h>
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest.$ac_objext'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_header_compiler=yes
12510 else
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 ac_header_compiler=no
12516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12518 echo "${ECHO_T}$ac_header_compiler" >&6
12520 # Is the header present?
12521 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12522 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 #include <malloc/malloc.h>
12530 _ACEOF
12531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } >/dev/null; then
12539 if test -s conftest.err; then
12540 ac_cpp_err=$ac_c_preproc_warn_flag
12541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12542 else
12543 ac_cpp_err=
12545 else
12546 ac_cpp_err=yes
12548 if test -z "$ac_cpp_err"; then
12549 ac_header_preproc=yes
12550 else
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ac_header_preproc=no
12556 rm -f conftest.err conftest.$ac_ext
12557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12558 echo "${ECHO_T}$ac_header_preproc" >&6
12560 # So? What about this header?
12561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12562 yes:no: )
12563 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12564 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12566 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12567 ac_header_preproc=yes
12569 no:yes:* )
12570 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12571 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12573 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12575 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12577 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12579 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12581 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12583 cat <<\_ASBOX
12584 ## ------------------------------------------ ##
12585 ## Report this to the AC_PACKAGE_NAME lists. ##
12586 ## ------------------------------------------ ##
12587 _ASBOX
12589 sed "s/^/$as_me: WARNING: /" >&2
12591 esac
12592 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12593 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12594 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12599 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12600 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12603 if test $ac_cv_header_malloc_malloc_h = yes; then
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_MALLOC_MALLOC_H 1
12607 _ACEOF
12613 ### Use Mac OS X Carbon API to implement GUI.
12614 if test "${HAVE_CARBON}" = "yes"; then
12616 cat >>confdefs.h <<\_ACEOF
12617 #define HAVE_CARBON 1
12618 _ACEOF
12620 window_system=mac
12621 ## Specify the install directory
12622 carbon_appdir=
12623 if test "${carbon_appdir_x}" != ""; then
12624 case ${carbon_appdir_x} in
12625 y | ye | yes) carbon_appdir=/Applications ;;
12626 * ) carbon_appdir=${carbon_appdir_x} ;;
12627 esac
12629 # We also have mouse menus.
12630 HAVE_MENUS=yes
12633 ### Use session management (-lSM -lICE) if available
12634 HAVE_X_SM=no
12635 if test "${HAVE_X11}" = "yes"; then
12636 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12637 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12638 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12639 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12643 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12644 else
12645 # Is the header compilable?
12646 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12647 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12655 #include <X11/SM/SMlib.h>
12656 _ACEOF
12657 rm -f conftest.$ac_objext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_header_compiler=yes
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_header_compiler=no
12685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12687 echo "${ECHO_T}$ac_header_compiler" >&6
12689 # Is the header present?
12690 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12691 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 #include <X11/SM/SMlib.h>
12699 _ACEOF
12700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } >/dev/null; then
12708 if test -s conftest.err; then
12709 ac_cpp_err=$ac_c_preproc_warn_flag
12710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12711 else
12712 ac_cpp_err=
12714 else
12715 ac_cpp_err=yes
12717 if test -z "$ac_cpp_err"; then
12718 ac_header_preproc=yes
12719 else
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 ac_header_preproc=no
12725 rm -f conftest.err conftest.$ac_ext
12726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12727 echo "${ECHO_T}$ac_header_preproc" >&6
12729 # So? What about this header?
12730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12731 yes:no: )
12732 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12733 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12735 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12736 ac_header_preproc=yes
12738 no:yes:* )
12739 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12740 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12741 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12742 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12743 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12744 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12746 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12748 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12750 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12752 cat <<\_ASBOX
12753 ## ------------------------------------------ ##
12754 ## Report this to the AC_PACKAGE_NAME lists. ##
12755 ## ------------------------------------------ ##
12756 _ASBOX
12758 sed "s/^/$as_me: WARNING: /" >&2
12760 esac
12761 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12762 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12763 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12768 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12769 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12772 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12773 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12774 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12775 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778 ac_check_lib_save_LIBS=$LIBS
12779 LIBS="-lSM -lICE $LIBS"
12780 cat >conftest.$ac_ext <<_ACEOF
12781 /* confdefs.h. */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12787 /* Override any gcc2 internal prototype to avoid an error. */
12788 #ifdef __cplusplus
12789 extern "C"
12790 #endif
12791 /* We use char because int might match the return type of a gcc2
12792 builtin and then its argument prototype would still apply. */
12793 char SmcOpenConnection ();
12795 main ()
12797 SmcOpenConnection ();
12799 return 0;
12801 _ACEOF
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804 (eval $ac_link) 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest$ac_exeext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_lib_SM_SmcOpenConnection=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_cv_lib_SM_SmcOpenConnection=no
12830 rm -f conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12834 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12835 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12836 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12837 HAVE_X_SM=yes
12844 if test "${HAVE_X_SM}" = "yes"; then
12846 cat >>confdefs.h <<\_ACEOF
12847 #define HAVE_X_SM 1
12848 _ACEOF
12850 case "$LIBS" in
12851 *-lSM*) ;;
12852 *) LIBS="-lSM -lICE $LIBS" ;;
12853 esac
12857 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12858 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12859 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12860 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 #include <netdb.h>
12871 main ()
12873 return h_errno;
12875 return 0;
12877 _ACEOF
12878 rm -f conftest.$ac_objext conftest$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880 (eval $ac_link) 2>conftest.er1
12881 ac_status=$?
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 emacs_cv_netdb_declares_h_errno=yes
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 emacs_cv_netdb_declares_h_errno=no
12906 rm -f conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12909 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12910 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12911 if test $emacs_cv_netdb_declares_h_errno = yes; then
12913 cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_H_ERRNO 1
12915 _ACEOF
12919 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12920 # for constant arguments. Useless!
12921 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12922 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12923 if test "${ac_cv_working_alloca_h+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h. */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12932 #include <alloca.h>
12934 main ()
12936 char *p = (char *) alloca (2 * sizeof (int));
12938 return 0;
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_working_alloca_h=yes
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967 ac_cv_working_alloca_h=no
12969 rm -f conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12972 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12973 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12974 if test $ac_cv_working_alloca_h = yes; then
12976 cat >>confdefs.h <<\_ACEOF
12977 #define HAVE_ALLOCA_H 1
12978 _ACEOF
12982 echo "$as_me:$LINENO: checking for alloca" >&5
12983 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12984 if test "${ac_cv_func_alloca_works+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h. */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 #ifdef __GNUC__
12994 # define alloca __builtin_alloca
12995 #else
12996 # ifdef _MSC_VER
12997 # include <malloc.h>
12998 # define alloca _alloca
12999 # else
13000 # if HAVE_ALLOCA_H
13001 # include <alloca.h>
13002 # else
13003 # ifdef _AIX
13004 #pragma alloca
13005 # else
13006 # ifndef alloca /* predefined by HP cc +Olibcalls */
13007 char *alloca ();
13008 # endif
13009 # endif
13010 # endif
13011 # endif
13012 #endif
13015 main ()
13017 char *p = (char *) alloca (1);
13019 return 0;
13021 _ACEOF
13022 rm -f conftest.$ac_objext conftest$ac_exeext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13024 (eval $ac_link) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_func_alloca_works=yes
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_cv_func_alloca_works=no
13050 rm -f conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13053 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13054 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13056 if test $ac_cv_func_alloca_works = yes; then
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_ALLOCA 1
13060 _ACEOF
13062 else
13063 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13064 # that cause trouble. Some versions do not even contain alloca or
13065 # contain a buggy version. If you still want to use their alloca,
13066 # use ar to extract alloca.o from them instead of compiling alloca.c.
13068 ALLOCA=alloca.$ac_objext
13070 cat >>confdefs.h <<\_ACEOF
13071 #define C_ALLOCA 1
13072 _ACEOF
13075 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13076 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13077 if test "${ac_cv_os_cray+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080 cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h. */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13086 #if defined(CRAY) && ! defined(CRAY2)
13087 webecray
13088 #else
13089 wenotbecray
13090 #endif
13092 _ACEOF
13093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13094 $EGREP "webecray" >/dev/null 2>&1; then
13095 ac_cv_os_cray=yes
13096 else
13097 ac_cv_os_cray=no
13099 rm -f conftest*
13102 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13103 echo "${ECHO_T}$ac_cv_os_cray" >&6
13104 if test $ac_cv_os_cray = yes; then
13105 for ac_func in _getb67 GETB67 getb67; do
13106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13107 echo "$as_me:$LINENO: checking for $ac_func" >&5
13108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13109 if eval "test \"\${$as_ac_var+set}\" = set"; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13120 #define $ac_func innocuous_$ac_func
13122 /* System header to define __stub macros and hopefully few prototypes,
13123 which can conflict with char $ac_func (); below.
13124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125 <limits.h> exists even on freestanding compilers. */
13127 #ifdef __STDC__
13128 # include <limits.h>
13129 #else
13130 # include <assert.h>
13131 #endif
13133 #undef $ac_func
13135 /* Override any gcc2 internal prototype to avoid an error. */
13136 #ifdef __cplusplus
13137 extern "C"
13139 #endif
13140 /* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142 char $ac_func ();
13143 /* The GNU C library defines this for functions which it implements
13144 to always fail with ENOSYS. Some functions are actually named
13145 something starting with __ and the normal name is an alias. */
13146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13147 choke me
13148 #else
13149 char (*f) () = $ac_func;
13150 #endif
13151 #ifdef __cplusplus
13153 #endif
13156 main ()
13158 return f != $ac_func;
13160 return 0;
13162 _ACEOF
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 eval "$as_ac_var=yes"
13185 else
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 eval "$as_ac_var=no"
13191 rm -f conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13196 if test `eval echo '${'$as_ac_var'}'` = yes; then
13198 cat >>confdefs.h <<_ACEOF
13199 #define CRAY_STACKSEG_END $ac_func
13200 _ACEOF
13202 break
13205 done
13208 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13209 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13210 if test "${ac_cv_c_stack_direction+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213 if test "$cross_compiling" = yes; then
13214 ac_cv_c_stack_direction=0
13215 else
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13223 find_stack_direction ()
13225 static char *addr = 0;
13226 auto char dummy;
13227 if (addr == 0)
13229 addr = &dummy;
13230 return find_stack_direction ();
13232 else
13233 return (&dummy > addr) ? 1 : -1;
13237 main ()
13239 exit (find_stack_direction () < 0);
13241 _ACEOF
13242 rm -f conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244 (eval $ac_link) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_cv_c_stack_direction=1
13254 else
13255 echo "$as_me: program exited with status $ac_status" >&5
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ( exit $ac_status )
13260 ac_cv_c_stack_direction=-1
13262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13265 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13266 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13268 cat >>confdefs.h <<_ACEOF
13269 #define STACK_DIRECTION $ac_cv_c_stack_direction
13270 _ACEOF
13276 # fmod, logb, and frexp are found in -lm on most systems.
13277 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13279 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13280 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13281 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284 ac_check_lib_save_LIBS=$LIBS
13285 LIBS="-lm $LIBS"
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13293 /* Override any gcc2 internal prototype to avoid an error. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 /* We use char because int might match the return type of a gcc2
13298 builtin and then its argument prototype would still apply. */
13299 char sqrt ();
13301 main ()
13303 sqrt ();
13305 return 0;
13307 _ACEOF
13308 rm -f conftest.$ac_objext conftest$ac_exeext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13310 (eval $ac_link) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest$ac_exeext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 ac_cv_lib_m_sqrt=yes
13330 else
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 ac_cv_lib_m_sqrt=no
13336 rm -f conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13338 LIBS=$ac_check_lib_save_LIBS
13340 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13341 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13342 if test $ac_cv_lib_m_sqrt = yes; then
13343 cat >>confdefs.h <<_ACEOF
13344 #define HAVE_LIBM 1
13345 _ACEOF
13347 LIBS="-lm $LIBS"
13352 # Check for mail-locking functions in a "mail" library. Probably this should
13353 # have the same check as for liblockfile below.
13355 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13356 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13357 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360 ac_check_lib_save_LIBS=$LIBS
13361 LIBS="-lmail $LIBS"
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h. */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13369 /* Override any gcc2 internal prototype to avoid an error. */
13370 #ifdef __cplusplus
13371 extern "C"
13372 #endif
13373 /* We use char because int might match the return type of a gcc2
13374 builtin and then its argument prototype would still apply. */
13375 char maillock ();
13377 main ()
13379 maillock ();
13381 return 0;
13383 _ACEOF
13384 rm -f conftest.$ac_objext conftest$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386 (eval $ac_link) 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest$ac_exeext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 ac_cv_lib_mail_maillock=yes
13406 else
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13410 ac_cv_lib_mail_maillock=no
13412 rm -f conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13416 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13417 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13418 if test $ac_cv_lib_mail_maillock = yes; then
13419 cat >>confdefs.h <<_ACEOF
13420 #define HAVE_LIBMAIL 1
13421 _ACEOF
13423 LIBS="-lmail $LIBS"
13428 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13429 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13430 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433 ac_check_lib_save_LIBS=$LIBS
13434 LIBS="-llockfile $LIBS"
13435 cat >conftest.$ac_ext <<_ACEOF
13436 /* confdefs.h. */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13442 /* Override any gcc2 internal prototype to avoid an error. */
13443 #ifdef __cplusplus
13444 extern "C"
13445 #endif
13446 /* We use char because int might match the return type of a gcc2
13447 builtin and then its argument prototype would still apply. */
13448 char maillock ();
13450 main ()
13452 maillock ();
13454 return 0;
13456 _ACEOF
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest$ac_exeext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_lib_lockfile_maillock=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_cv_lib_lockfile_maillock=no
13485 rm -f conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13489 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13490 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13491 if test $ac_cv_lib_lockfile_maillock = yes; then
13492 cat >>confdefs.h <<_ACEOF
13493 #define HAVE_LIBLOCKFILE 1
13494 _ACEOF
13496 LIBS="-llockfile $LIBS"
13500 # If we have the shared liblockfile, assume we must use it for mail
13501 # locking (e.g. Debian). If we couldn't link against liblockfile
13502 # (no liblockfile.a installed), ensure that we don't need to.
13503 if test "$ac_cv_lib_lockfile_maillock" = no; then
13504 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13505 set dummy liblockfile.so; ac_word=$2
13506 echo "$as_me:$LINENO: checking for $ac_word" >&5
13507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13508 if test "${ac_cv_prog_liblockfile+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 if test -n "$liblockfile"; then
13512 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13513 else
13514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13516 for as_dir in $as_dummy
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
13521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13522 ac_cv_prog_liblockfile="yes"
13523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13526 done
13527 done
13529 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13532 liblockfile=$ac_cv_prog_liblockfile
13533 if test -n "$liblockfile"; then
13534 echo "$as_me:$LINENO: result: $liblockfile" >&5
13535 echo "${ECHO_T}$liblockfile" >&6
13536 else
13537 echo "$as_me:$LINENO: result: no" >&5
13538 echo "${ECHO_T}no" >&6
13541 if test $ac_cv_prog_liblockfile = yes; then
13542 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13543 This probably means that movemail could lose mail.
13544 There may be a \`development' package to install containing liblockfile." >&5
13545 echo "$as_me: error: Shared liblockfile found but can't link against it.
13546 This probably means that movemail could lose mail.
13547 There may be a \`development' package to install containing liblockfile." >&2;}
13548 { (exit 1); exit 1; }; }
13549 else :
13553 for ac_func in touchlock
13555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13556 echo "$as_me:$LINENO: checking for $ac_func" >&5
13557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13558 if eval "test \"\${$as_ac_var+set}\" = set"; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h. */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13569 #define $ac_func innocuous_$ac_func
13571 /* System header to define __stub macros and hopefully few prototypes,
13572 which can conflict with char $ac_func (); below.
13573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13574 <limits.h> exists even on freestanding compilers. */
13576 #ifdef __STDC__
13577 # include <limits.h>
13578 #else
13579 # include <assert.h>
13580 #endif
13582 #undef $ac_func
13584 /* Override any gcc2 internal prototype to avoid an error. */
13585 #ifdef __cplusplus
13586 extern "C"
13588 #endif
13589 /* We use char because int might match the return type of a gcc2
13590 builtin and then its argument prototype would still apply. */
13591 char $ac_func ();
13592 /* The GNU C library defines this for functions which it implements
13593 to always fail with ENOSYS. Some functions are actually named
13594 something starting with __ and the normal name is an alias. */
13595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13596 choke me
13597 #else
13598 char (*f) () = $ac_func;
13599 #endif
13600 #ifdef __cplusplus
13602 #endif
13605 main ()
13607 return f != $ac_func;
13609 return 0;
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13614 (eval $ac_link) 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 eval "$as_ac_var=yes"
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 eval "$as_ac_var=no"
13640 rm -f conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13645 if test `eval echo '${'$as_ac_var'}'` = yes; then
13646 cat >>confdefs.h <<_ACEOF
13647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13648 _ACEOF
13651 done
13654 for ac_header in maillock.h
13656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13658 echo "$as_me:$LINENO: checking for $ac_header" >&5
13659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13665 else
13666 # Is the header compilable?
13667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 $ac_includes_default
13676 #include <$ac_header>
13677 _ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13680 (eval $ac_compile) 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; } &&
13693 { ac_try='test -s conftest.$ac_objext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_header_compiler=yes
13700 else
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 ac_header_compiler=no
13706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13708 echo "${ECHO_T}$ac_header_compiler" >&6
13710 # Is the header present?
13711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 #include <$ac_header>
13720 _ACEOF
13721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev/null; then
13729 if test -s conftest.err; then
13730 ac_cpp_err=$ac_c_preproc_warn_flag
13731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13732 else
13733 ac_cpp_err=
13735 else
13736 ac_cpp_err=yes
13738 if test -z "$ac_cpp_err"; then
13739 ac_header_preproc=yes
13740 else
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_header_preproc=no
13746 rm -f conftest.err conftest.$ac_ext
13747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13748 echo "${ECHO_T}$ac_header_preproc" >&6
13750 # So? What about this header?
13751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13752 yes:no: )
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13757 ac_header_preproc=yes
13759 no:yes:* )
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13773 cat <<\_ASBOX
13774 ## ------------------------------------------ ##
13775 ## Report this to the AC_PACKAGE_NAME lists. ##
13776 ## ------------------------------------------ ##
13777 _ASBOX
13779 sed "s/^/$as_me: WARNING: /" >&2
13781 esac
13782 echo "$as_me:$LINENO: checking for $ac_header" >&5
13783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787 eval "$as_ac_Header=\$ac_header_preproc"
13789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13794 cat >>confdefs.h <<_ACEOF
13795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13796 _ACEOF
13800 done
13870 for ac_func in gethostname getdomainname dup2 \
13871 rename closedir mkdir rmdir sysinfo getrusage \
13872 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13873 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13874 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13875 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13876 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13877 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13878 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13881 echo "$as_me:$LINENO: checking for $ac_func" >&5
13882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13883 if eval "test \"\${$as_ac_var+set}\" = set"; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13894 #define $ac_func innocuous_$ac_func
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char $ac_func (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
13901 #ifdef __STDC__
13902 # include <limits.h>
13903 #else
13904 # include <assert.h>
13905 #endif
13907 #undef $ac_func
13909 /* Override any gcc2 internal prototype to avoid an error. */
13910 #ifdef __cplusplus
13911 extern "C"
13913 #endif
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13916 char $ac_func ();
13917 /* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13921 choke me
13922 #else
13923 char (*f) () = $ac_func;
13924 #endif
13925 #ifdef __cplusplus
13927 #endif
13930 main ()
13932 return f != $ac_func;
13934 return 0;
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 eval "$as_ac_var=yes"
13959 else
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13963 eval "$as_ac_var=no"
13965 rm -f conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13970 if test `eval echo '${'$as_ac_var'}'` = yes; then
13971 cat >>confdefs.h <<_ACEOF
13972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13973 _ACEOF
13976 done
13980 for ac_header in sys/un.h
13982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13984 echo "$as_me:$LINENO: checking for $ac_header" >&5
13985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13991 else
13992 # Is the header compilable?
13993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 $ac_includes_default
14002 #include <$ac_header>
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_header_compiler=yes
14026 else
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14030 ac_header_compiler=no
14032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14034 echo "${ECHO_T}$ac_header_compiler" >&6
14036 # Is the header present?
14037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h. */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 #include <$ac_header>
14046 _ACEOF
14047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev/null; then
14055 if test -s conftest.err; then
14056 ac_cpp_err=$ac_c_preproc_warn_flag
14057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14058 else
14059 ac_cpp_err=
14061 else
14062 ac_cpp_err=yes
14064 if test -z "$ac_cpp_err"; then
14065 ac_header_preproc=yes
14066 else
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14070 ac_header_preproc=no
14072 rm -f conftest.err conftest.$ac_ext
14073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14074 echo "${ECHO_T}$ac_header_preproc" >&6
14076 # So? What about this header?
14077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14078 yes:no: )
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14083 ac_header_preproc=yes
14085 no:yes:* )
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14099 cat <<\_ASBOX
14100 ## ------------------------------------------ ##
14101 ## Report this to the AC_PACKAGE_NAME lists. ##
14102 ## ------------------------------------------ ##
14103 _ASBOX
14105 sed "s/^/$as_me: WARNING: /" >&2
14107 esac
14108 echo "$as_me:$LINENO: checking for $ac_header" >&5
14109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 else
14113 eval "$as_ac_Header=\$ac_header_preproc"
14115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14122 _ACEOF
14126 done
14132 for ac_header in stdlib.h sys/time.h unistd.h
14134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo "$as_me:$LINENO: checking for $ac_header" >&5
14137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143 else
14144 # Is the header compilable?
14145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h. */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 $ac_includes_default
14154 #include <$ac_header>
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest.$ac_objext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_header_compiler=yes
14178 else
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ac_header_compiler=no
14184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 echo "${ECHO_T}$ac_header_compiler" >&6
14188 # Is the header present?
14189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <$ac_header>
14198 _ACEOF
14199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } >/dev/null; then
14207 if test -s conftest.err; then
14208 ac_cpp_err=$ac_c_preproc_warn_flag
14209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14210 else
14211 ac_cpp_err=
14213 else
14214 ac_cpp_err=yes
14216 if test -z "$ac_cpp_err"; then
14217 ac_header_preproc=yes
14218 else
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 ac_header_preproc=no
14224 rm -f conftest.err conftest.$ac_ext
14225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 echo "${ECHO_T}$ac_header_preproc" >&6
14228 # So? What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14230 yes:no: )
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14235 ac_header_preproc=yes
14237 no:yes:* )
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14251 cat <<\_ASBOX
14252 ## ------------------------------------------ ##
14253 ## Report this to the AC_PACKAGE_NAME lists. ##
14254 ## ------------------------------------------ ##
14255 _ASBOX
14257 sed "s/^/$as_me: WARNING: /" >&2
14259 esac
14260 echo "$as_me:$LINENO: checking for $ac_header" >&5
14261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265 eval "$as_ac_Header=\$ac_header_preproc"
14267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14272 cat >>confdefs.h <<_ACEOF
14273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14274 _ACEOF
14278 done
14281 for ac_func in alarm
14283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284 echo "$as_me:$LINENO: checking for $ac_func" >&5
14285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14286 if eval "test \"\${$as_ac_var+set}\" = set"; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14297 #define $ac_func innocuous_$ac_func
14299 /* System header to define __stub macros and hopefully few prototypes,
14300 which can conflict with char $ac_func (); below.
14301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14302 <limits.h> exists even on freestanding compilers. */
14304 #ifdef __STDC__
14305 # include <limits.h>
14306 #else
14307 # include <assert.h>
14308 #endif
14310 #undef $ac_func
14312 /* Override any gcc2 internal prototype to avoid an error. */
14313 #ifdef __cplusplus
14314 extern "C"
14316 #endif
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14319 char $ac_func ();
14320 /* The GNU C library defines this for functions which it implements
14321 to always fail with ENOSYS. Some functions are actually named
14322 something starting with __ and the normal name is an alias. */
14323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14324 choke me
14325 #else
14326 char (*f) () = $ac_func;
14327 #endif
14328 #ifdef __cplusplus
14330 #endif
14333 main ()
14335 return f != $ac_func;
14337 return 0;
14339 _ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342 (eval $ac_link) 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest$ac_exeext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 eval "$as_ac_var=yes"
14362 else
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 eval "$as_ac_var=no"
14368 rm -f conftest.err conftest.$ac_objext \
14369 conftest$ac_exeext conftest.$ac_ext
14371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14373 if test `eval echo '${'$as_ac_var'}'` = yes; then
14374 cat >>confdefs.h <<_ACEOF
14375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14376 _ACEOF
14379 done
14381 echo "$as_me:$LINENO: checking for working mktime" >&5
14382 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14383 if test "${ac_cv_func_working_mktime+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 if test "$cross_compiling" = yes; then
14387 ac_cv_func_working_mktime=no
14388 else
14389 cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h. */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 /* Test program from Paul Eggert and Tony Leneis. */
14396 #if TIME_WITH_SYS_TIME
14397 # include <sys/time.h>
14398 # include <time.h>
14399 #else
14400 # if HAVE_SYS_TIME_H
14401 # include <sys/time.h>
14402 # else
14403 # include <time.h>
14404 # endif
14405 #endif
14407 #if HAVE_STDLIB_H
14408 # include <stdlib.h>
14409 #endif
14411 #if HAVE_UNISTD_H
14412 # include <unistd.h>
14413 #endif
14415 #if !HAVE_ALARM
14416 # define alarm(X) /* empty */
14417 #endif
14419 /* Work around redefinition to rpl_putenv by other config tests. */
14420 #undef putenv
14422 static time_t time_t_max;
14423 static time_t time_t_min;
14425 /* Values we'll use to set the TZ environment variable. */
14426 static char *tz_strings[] = {
14427 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14428 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14430 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14432 /* Fail if mktime fails to convert a date in the spring-forward gap.
14433 Based on a problem report from Andreas Jaeger. */
14434 static void
14435 spring_forward_gap ()
14437 /* glibc (up to about 1998-10-07) failed this test. */
14438 struct tm tm;
14440 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14441 instead of "TZ=America/Vancouver" in order to detect the bug even
14442 on systems that don't support the Olson extension, or don't have the
14443 full zoneinfo tables installed. */
14444 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14446 tm.tm_year = 98;
14447 tm.tm_mon = 3;
14448 tm.tm_mday = 5;
14449 tm.tm_hour = 2;
14450 tm.tm_min = 0;
14451 tm.tm_sec = 0;
14452 tm.tm_isdst = -1;
14453 if (mktime (&tm) == (time_t)-1)
14454 exit (1);
14457 static void
14458 mktime_test1 (now)
14459 time_t now;
14461 struct tm *lt;
14462 if ((lt = localtime (&now)) && mktime (lt) != now)
14463 exit (1);
14466 static void
14467 mktime_test (now)
14468 time_t now;
14470 mktime_test1 (now);
14471 mktime_test1 ((time_t) (time_t_max - now));
14472 mktime_test1 ((time_t) (time_t_min + now));
14475 static void
14476 irix_6_4_bug ()
14478 /* Based on code from Ariel Faigon. */
14479 struct tm tm;
14480 tm.tm_year = 96;
14481 tm.tm_mon = 3;
14482 tm.tm_mday = 0;
14483 tm.tm_hour = 0;
14484 tm.tm_min = 0;
14485 tm.tm_sec = 0;
14486 tm.tm_isdst = -1;
14487 mktime (&tm);
14488 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14489 exit (1);
14492 static void
14493 bigtime_test (j)
14494 int j;
14496 struct tm tm;
14497 time_t now;
14498 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14499 now = mktime (&tm);
14500 if (now != (time_t) -1)
14502 struct tm *lt = localtime (&now);
14503 if (! (lt
14504 && lt->tm_year == tm.tm_year
14505 && lt->tm_mon == tm.tm_mon
14506 && lt->tm_mday == tm.tm_mday
14507 && lt->tm_hour == tm.tm_hour
14508 && lt->tm_min == tm.tm_min
14509 && lt->tm_sec == tm.tm_sec
14510 && lt->tm_yday == tm.tm_yday
14511 && lt->tm_wday == tm.tm_wday
14512 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14513 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14514 exit (1);
14519 main ()
14521 time_t t, delta;
14522 int i, j;
14524 /* This test makes some buggy mktime implementations loop.
14525 Give up after 60 seconds; a mktime slower than that
14526 isn't worth using anyway. */
14527 alarm (60);
14529 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14530 continue;
14531 time_t_max--;
14532 if ((time_t) -1 < 0)
14533 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14534 continue;
14535 delta = time_t_max / 997; /* a suitable prime number */
14536 for (i = 0; i < N_STRINGS; i++)
14538 if (tz_strings[i])
14539 putenv (tz_strings[i]);
14541 for (t = 0; t <= time_t_max - delta; t += delta)
14542 mktime_test (t);
14543 mktime_test ((time_t) 1);
14544 mktime_test ((time_t) (60 * 60));
14545 mktime_test ((time_t) (60 * 60 * 24));
14547 for (j = 1; 0 < j; j *= 2)
14548 bigtime_test (j);
14549 bigtime_test (j - 1);
14551 irix_6_4_bug ();
14552 spring_forward_gap ();
14553 exit (0);
14555 _ACEOF
14556 rm -f conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558 (eval $ac_link) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_func_working_mktime=yes
14568 else
14569 echo "$as_me: program exited with status $ac_status" >&5
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ( exit $ac_status )
14574 ac_cv_func_working_mktime=no
14576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14579 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14580 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14581 if test $ac_cv_func_working_mktime = no; then
14582 case $LIBOBJS in
14583 "mktime.$ac_objext" | \
14584 *" mktime.$ac_objext" | \
14585 "mktime.$ac_objext "* | \
14586 *" mktime.$ac_objext "* ) ;;
14587 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14588 esac
14592 if test "$ac_cv_func_working_mktime" = no; then
14594 cat >>confdefs.h <<\_ACEOF
14595 #define BROKEN_MKTIME 1
14596 _ACEOF
14600 ac_have_func=no # yes means we've found a way to get the load average.
14602 # Make sure getloadavg.c is where it belongs, at configure-time.
14603 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14604 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14605 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14606 { (exit 1); exit 1; }; }
14608 ac_save_LIBS=$LIBS
14610 # Check for getloadavg, but be sure not to touch the cache variable.
14611 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14612 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14613 if test "${ac_cv_func_getloadavg+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14624 #define getloadavg innocuous_getloadavg
14626 /* System header to define __stub macros and hopefully few prototypes,
14627 which can conflict with char getloadavg (); below.
14628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14629 <limits.h> exists even on freestanding compilers. */
14631 #ifdef __STDC__
14632 # include <limits.h>
14633 #else
14634 # include <assert.h>
14635 #endif
14637 #undef getloadavg
14639 /* Override any gcc2 internal prototype to avoid an error. */
14640 #ifdef __cplusplus
14641 extern "C"
14643 #endif
14644 /* We use char because int might match the return type of a gcc2
14645 builtin and then its argument prototype would still apply. */
14646 char getloadavg ();
14647 /* The GNU C library defines this for functions which it implements
14648 to always fail with ENOSYS. Some functions are actually named
14649 something starting with __ and the normal name is an alias. */
14650 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14651 choke me
14652 #else
14653 char (*f) () = getloadavg;
14654 #endif
14655 #ifdef __cplusplus
14657 #endif
14660 main ()
14662 return f != getloadavg;
14664 return 0;
14666 _ACEOF
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>conftest.er1
14670 ac_status=$?
14671 grep -v '^ *+' conftest.er1 >conftest.err
14672 rm -f conftest.er1
14673 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } &&
14682 { ac_try='test -s conftest$ac_exeext'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14688 ac_cv_func_getloadavg=yes
14689 else
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_cv_func_getloadavg=no
14695 rm -f conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
14698 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14699 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14700 if test $ac_cv_func_getloadavg = yes; then
14701 exit 0
14702 else
14703 exit 1
14705 ) && ac_have_func=yes
14707 # On HPUX9, an unprivileged user can get load averages through this function.
14709 for ac_func in pstat_getdynamic
14711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14725 #define $ac_func innocuous_$ac_func
14727 /* System header to define __stub macros and hopefully few prototypes,
14728 which can conflict with char $ac_func (); below.
14729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14730 <limits.h> exists even on freestanding compilers. */
14732 #ifdef __STDC__
14733 # include <limits.h>
14734 #else
14735 # include <assert.h>
14736 #endif
14738 #undef $ac_func
14740 /* Override any gcc2 internal prototype to avoid an error. */
14741 #ifdef __cplusplus
14742 extern "C"
14744 #endif
14745 /* We use char because int might match the return type of a gcc2
14746 builtin and then its argument prototype would still apply. */
14747 char $ac_func ();
14748 /* The GNU C library defines this for functions which it implements
14749 to always fail with ENOSYS. Some functions are actually named
14750 something starting with __ and the normal name is an alias. */
14751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14752 choke me
14753 #else
14754 char (*f) () = $ac_func;
14755 #endif
14756 #ifdef __cplusplus
14758 #endif
14761 main ()
14763 return f != $ac_func;
14765 return 0;
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>conftest.er1
14771 ac_status=$?
14772 grep -v '^ *+' conftest.er1 >conftest.err
14773 rm -f conftest.er1
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try='test -s conftest$ac_exeext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 eval "$as_ac_var=yes"
14790 else
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 eval "$as_ac_var=no"
14796 rm -f conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext conftest.$ac_ext
14799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14801 if test `eval echo '${'$as_ac_var'}'` = yes; then
14802 cat >>confdefs.h <<_ACEOF
14803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14804 _ACEOF
14807 done
14810 # Solaris has libkstat which does not require root.
14812 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14813 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14814 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-lkstat $LIBS"
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h. */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14826 /* Override any gcc2 internal prototype to avoid an error. */
14827 #ifdef __cplusplus
14828 extern "C"
14829 #endif
14830 /* We use char because int might match the return type of a gcc2
14831 builtin and then its argument prototype would still apply. */
14832 char kstat_open ();
14834 main ()
14836 kstat_open ();
14838 return 0;
14840 _ACEOF
14841 rm -f conftest.$ac_objext conftest$ac_exeext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14843 (eval $ac_link) 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; } &&
14856 { ac_try='test -s conftest$ac_exeext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_cv_lib_kstat_kstat_open=yes
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_cv_lib_kstat_kstat_open=no
14869 rm -f conftest.err conftest.$ac_objext \
14870 conftest$ac_exeext conftest.$ac_ext
14871 LIBS=$ac_check_lib_save_LIBS
14873 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14874 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14875 if test $ac_cv_lib_kstat_kstat_open = yes; then
14876 cat >>confdefs.h <<_ACEOF
14877 #define HAVE_LIBKSTAT 1
14878 _ACEOF
14880 LIBS="-lkstat $LIBS"
14884 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14886 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14887 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14888 # to get the right answer into the cache.
14889 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14890 if test $ac_have_func = no; then
14891 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14892 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14893 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896 ac_check_lib_save_LIBS=$LIBS
14897 LIBS="-lelf $LIBS"
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14905 /* Override any gcc2 internal prototype to avoid an error. */
14906 #ifdef __cplusplus
14907 extern "C"
14908 #endif
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14911 char elf_begin ();
14913 main ()
14915 elf_begin ();
14917 return 0;
14919 _ACEOF
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_lib_elf_elf_begin=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_lib_elf_elf_begin=no
14948 rm -f conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14952 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14953 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14954 if test $ac_cv_lib_elf_elf_begin = yes; then
14955 LIBS="-lelf $LIBS"
14959 if test $ac_have_func = no; then
14960 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14961 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14962 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965 ac_check_lib_save_LIBS=$LIBS
14966 LIBS="-lkvm $LIBS"
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h. */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14974 /* Override any gcc2 internal prototype to avoid an error. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 /* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14980 char kvm_open ();
14982 main ()
14984 kvm_open ();
14986 return 0;
14988 _ACEOF
14989 rm -f conftest.$ac_objext conftest$ac_exeext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14991 (eval $ac_link) 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try='test -s conftest$ac_exeext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_cv_lib_kvm_kvm_open=yes
15011 else
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 ac_cv_lib_kvm_kvm_open=no
15017 rm -f conftest.err conftest.$ac_objext \
15018 conftest$ac_exeext conftest.$ac_ext
15019 LIBS=$ac_check_lib_save_LIBS
15021 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15022 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15023 if test $ac_cv_lib_kvm_kvm_open = yes; then
15024 LIBS="-lkvm $LIBS"
15027 # Check for the 4.4BSD definition of getloadavg.
15028 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15029 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15030 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033 ac_check_lib_save_LIBS=$LIBS
15034 LIBS="-lutil $LIBS"
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 /* Override any gcc2 internal prototype to avoid an error. */
15043 #ifdef __cplusplus
15044 extern "C"
15045 #endif
15046 /* We use char because int might match the return type of a gcc2
15047 builtin and then its argument prototype would still apply. */
15048 char getloadavg ();
15050 main ()
15052 getloadavg ();
15054 return 0;
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15059 (eval $ac_link) 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_lib_util_getloadavg=yes
15079 else
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_lib_util_getloadavg=no
15085 rm -f conftest.err conftest.$ac_objext \
15086 conftest$ac_exeext conftest.$ac_ext
15087 LIBS=$ac_check_lib_save_LIBS
15089 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15090 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15091 if test $ac_cv_lib_util_getloadavg = yes; then
15092 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15097 if test $ac_have_func = no; then
15098 # There is a commonly available library for RS/6000 AIX.
15099 # Since it is not a standard part of AIX, it might be installed locally.
15100 ac_getloadavg_LIBS=$LIBS
15101 LIBS="-L/usr/local/lib $LIBS"
15102 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15103 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15104 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 ac_check_lib_save_LIBS=$LIBS
15108 LIBS="-lgetloadavg $LIBS"
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15116 /* Override any gcc2 internal prototype to avoid an error. */
15117 #ifdef __cplusplus
15118 extern "C"
15119 #endif
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15122 char getloadavg ();
15124 main ()
15126 getloadavg ();
15128 return 0;
15130 _ACEOF
15131 rm -f conftest.$ac_objext conftest$ac_exeext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133 (eval $ac_link) 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest$ac_exeext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_cv_lib_getloadavg_getloadavg=yes
15153 else
15154 echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15157 ac_cv_lib_getloadavg_getloadavg=no
15159 rm -f conftest.err conftest.$ac_objext \
15160 conftest$ac_exeext conftest.$ac_ext
15161 LIBS=$ac_check_lib_save_LIBS
15163 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15164 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15165 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15166 LIBS="-lgetloadavg $LIBS"
15167 else
15168 LIBS=$ac_getloadavg_LIBS
15173 # Make sure it is really in the library, if we think we found it,
15174 # otherwise set up the replacement function.
15176 for ac_func in getloadavg
15178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15179 echo "$as_me:$LINENO: checking for $ac_func" >&5
15180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15181 if eval "test \"\${$as_ac_var+set}\" = set"; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15192 #define $ac_func innocuous_$ac_func
15194 /* System header to define __stub macros and hopefully few prototypes,
15195 which can conflict with char $ac_func (); below.
15196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15197 <limits.h> exists even on freestanding compilers. */
15199 #ifdef __STDC__
15200 # include <limits.h>
15201 #else
15202 # include <assert.h>
15203 #endif
15205 #undef $ac_func
15207 /* Override any gcc2 internal prototype to avoid an error. */
15208 #ifdef __cplusplus
15209 extern "C"
15211 #endif
15212 /* We use char because int might match the return type of a gcc2
15213 builtin and then its argument prototype would still apply. */
15214 char $ac_func ();
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15219 choke me
15220 #else
15221 char (*f) () = $ac_func;
15222 #endif
15223 #ifdef __cplusplus
15225 #endif
15228 main ()
15230 return f != $ac_func;
15232 return 0;
15234 _ACEOF
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest$ac_exeext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 eval "$as_ac_var=yes"
15257 else
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261 eval "$as_ac_var=no"
15263 rm -f conftest.err conftest.$ac_objext \
15264 conftest$ac_exeext conftest.$ac_ext
15266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15268 if test `eval echo '${'$as_ac_var'}'` = yes; then
15269 cat >>confdefs.h <<_ACEOF
15270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15271 _ACEOF
15273 else
15274 case $LIBOBJS in
15275 "getloadavg.$ac_objext" | \
15276 *" getloadavg.$ac_objext" | \
15277 "getloadavg.$ac_objext "* | \
15278 *" getloadavg.$ac_objext "* ) ;;
15279 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15280 esac
15283 cat >>confdefs.h <<\_ACEOF
15284 #define C_GETLOADAVG 1
15285 _ACEOF
15287 # Figure out what our getloadavg.c needs.
15288 ac_have_func=no
15289 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15290 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15291 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15292 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15296 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15297 else
15298 # Is the header compilable?
15299 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15300 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <sys/dg_sys_info.h>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_header_compiler=yes
15332 else
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_header_compiler=no
15338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15340 echo "${ECHO_T}$ac_header_compiler" >&6
15342 # Is the header present?
15343 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15344 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15345 cat >conftest.$ac_ext <<_ACEOF
15346 /* confdefs.h. */
15347 _ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15351 #include <sys/dg_sys_info.h>
15352 _ACEOF
15353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } >/dev/null; then
15361 if test -s conftest.err; then
15362 ac_cpp_err=$ac_c_preproc_warn_flag
15363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15364 else
15365 ac_cpp_err=
15367 else
15368 ac_cpp_err=yes
15370 if test -z "$ac_cpp_err"; then
15371 ac_header_preproc=yes
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 ac_header_preproc=no
15378 rm -f conftest.err conftest.$ac_ext
15379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15380 echo "${ECHO_T}$ac_header_preproc" >&6
15382 # So? What about this header?
15383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15384 yes:no: )
15385 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15386 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15388 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15389 ac_header_preproc=yes
15391 no:yes:* )
15392 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15393 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15395 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15397 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15399 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15401 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15403 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15405 cat <<\_ASBOX
15406 ## ------------------------------------------ ##
15407 ## Report this to the AC_PACKAGE_NAME lists. ##
15408 ## ------------------------------------------ ##
15409 _ASBOX
15411 sed "s/^/$as_me: WARNING: /" >&2
15413 esac
15414 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15415 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15416 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15421 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15422 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15425 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15426 ac_have_func=yes
15428 cat >>confdefs.h <<\_ACEOF
15429 #define DGUX 1
15430 _ACEOF
15433 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15434 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15435 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 else
15438 ac_check_lib_save_LIBS=$LIBS
15439 LIBS="-ldgc $LIBS"
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h. */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15447 /* Override any gcc2 internal prototype to avoid an error. */
15448 #ifdef __cplusplus
15449 extern "C"
15450 #endif
15451 /* We use char because int might match the return type of a gcc2
15452 builtin and then its argument prototype would still apply. */
15453 char dg_sys_info ();
15455 main ()
15457 dg_sys_info ();
15459 return 0;
15461 _ACEOF
15462 rm -f conftest.$ac_objext conftest$ac_exeext
15463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464 (eval $ac_link) 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; } &&
15477 { ac_try='test -s conftest$ac_exeext'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_lib_dgc_dg_sys_info=yes
15484 else
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_lib_dgc_dg_sys_info=no
15490 rm -f conftest.err conftest.$ac_objext \
15491 conftest$ac_exeext conftest.$ac_ext
15492 LIBS=$ac_check_lib_save_LIBS
15494 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15495 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15496 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_LIBDGC 1
15499 _ACEOF
15501 LIBS="-ldgc $LIBS"
15509 if test "${ac_cv_header_locale_h+set}" = set; then
15510 echo "$as_me:$LINENO: checking for locale.h" >&5
15511 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15512 if test "${ac_cv_header_locale_h+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15516 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15517 else
15518 # Is the header compilable?
15519 echo "$as_me:$LINENO: checking locale.h usability" >&5
15520 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h. */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 $ac_includes_default
15528 #include <locale.h>
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_header_compiler=yes
15552 else
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_header_compiler=no
15558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15560 echo "${ECHO_T}$ac_header_compiler" >&6
15562 # Is the header present?
15563 echo "$as_me:$LINENO: checking locale.h presence" >&5
15564 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 #include <locale.h>
15572 _ACEOF
15573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15575 ac_status=$?
15576 grep -v '^ *+' conftest.er1 >conftest.err
15577 rm -f conftest.er1
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } >/dev/null; then
15581 if test -s conftest.err; then
15582 ac_cpp_err=$ac_c_preproc_warn_flag
15583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15584 else
15585 ac_cpp_err=
15587 else
15588 ac_cpp_err=yes
15590 if test -z "$ac_cpp_err"; then
15591 ac_header_preproc=yes
15592 else
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ac_header_preproc=no
15598 rm -f conftest.err conftest.$ac_ext
15599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15600 echo "${ECHO_T}$ac_header_preproc" >&6
15602 # So? What about this header?
15603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15604 yes:no: )
15605 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15606 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15608 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15609 ac_header_preproc=yes
15611 no:yes:* )
15612 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15613 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15615 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15617 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15619 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15621 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15623 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15625 cat <<\_ASBOX
15626 ## ------------------------------------------ ##
15627 ## Report this to the AC_PACKAGE_NAME lists. ##
15628 ## ------------------------------------------ ##
15629 _ASBOX
15631 sed "s/^/$as_me: WARNING: /" >&2
15633 esac
15634 echo "$as_me:$LINENO: checking for locale.h" >&5
15635 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15636 if test "${ac_cv_header_locale_h+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639 ac_cv_header_locale_h=$ac_header_preproc
15641 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15642 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15648 for ac_func in setlocale
15650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15651 echo "$as_me:$LINENO: checking for $ac_func" >&5
15652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15653 if eval "test \"\${$as_ac_var+set}\" = set"; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h. */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15664 #define $ac_func innocuous_$ac_func
15666 /* System header to define __stub macros and hopefully few prototypes,
15667 which can conflict with char $ac_func (); below.
15668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15669 <limits.h> exists even on freestanding compilers. */
15671 #ifdef __STDC__
15672 # include <limits.h>
15673 #else
15674 # include <assert.h>
15675 #endif
15677 #undef $ac_func
15679 /* Override any gcc2 internal prototype to avoid an error. */
15680 #ifdef __cplusplus
15681 extern "C"
15683 #endif
15684 /* We use char because int might match the return type of a gcc2
15685 builtin and then its argument prototype would still apply. */
15686 char $ac_func ();
15687 /* The GNU C library defines this for functions which it implements
15688 to always fail with ENOSYS. Some functions are actually named
15689 something starting with __ and the normal name is an alias. */
15690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15691 choke me
15692 #else
15693 char (*f) () = $ac_func;
15694 #endif
15695 #ifdef __cplusplus
15697 #endif
15700 main ()
15702 return f != $ac_func;
15704 return 0;
15706 _ACEOF
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try='test -s conftest$ac_exeext'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
15728 eval "$as_ac_var=yes"
15729 else
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 eval "$as_ac_var=no"
15735 rm -f conftest.err conftest.$ac_objext \
15736 conftest$ac_exeext conftest.$ac_ext
15738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15740 if test `eval echo '${'$as_ac_var'}'` = yes; then
15741 cat >>confdefs.h <<_ACEOF
15742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15743 _ACEOF
15746 done
15749 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15750 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15751 # Irix 4.0.5F has the header but not the library.
15752 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15753 ac_have_func=yes
15755 cat >>confdefs.h <<\_ACEOF
15756 #define SVR4 1
15757 _ACEOF
15761 if test $ac_have_func = no; then
15762 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15763 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15764 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15765 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15769 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15770 else
15771 # Is the header compilable?
15772 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15773 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h. */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 $ac_includes_default
15781 #include <inq_stats/cpustats.h>
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_compiler=no
15811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15813 echo "${ECHO_T}$ac_header_compiler" >&6
15815 # Is the header present?
15816 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15817 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 #include <inq_stats/cpustats.h>
15825 _ACEOF
15826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev/null; then
15834 if test -s conftest.err; then
15835 ac_cpp_err=$ac_c_preproc_warn_flag
15836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837 else
15838 ac_cpp_err=
15840 else
15841 ac_cpp_err=yes
15843 if test -z "$ac_cpp_err"; then
15844 ac_header_preproc=yes
15845 else
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 ac_header_preproc=no
15851 rm -f conftest.err conftest.$ac_ext
15852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15857 yes:no: )
15858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc=yes
15864 no:yes:* )
15865 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15878 cat <<\_ASBOX
15879 ## ------------------------------------------ ##
15880 ## Report this to the AC_PACKAGE_NAME lists. ##
15881 ## ------------------------------------------ ##
15882 _ASBOX
15884 sed "s/^/$as_me: WARNING: /" >&2
15886 esac
15887 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15888 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15889 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15894 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15895 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15898 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15899 ac_have_func=yes
15901 cat >>confdefs.h <<\_ACEOF
15902 #define UMAX 1
15903 _ACEOF
15906 cat >>confdefs.h <<\_ACEOF
15907 #define UMAX4_3 1
15908 _ACEOF
15915 if test $ac_have_func = no; then
15916 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15917 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15918 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15919 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15923 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15924 else
15925 # Is the header compilable?
15926 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15927 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15935 #include <sys/cpustats.h>
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest.$ac_objext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_header_compiler=yes
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_header_compiler=no
15965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15967 echo "${ECHO_T}$ac_header_compiler" >&6
15969 # Is the header present?
15970 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15971 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h. */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 #include <sys/cpustats.h>
15979 _ACEOF
15980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } >/dev/null; then
15988 if test -s conftest.err; then
15989 ac_cpp_err=$ac_c_preproc_warn_flag
15990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15991 else
15992 ac_cpp_err=
15994 else
15995 ac_cpp_err=yes
15997 if test -z "$ac_cpp_err"; then
15998 ac_header_preproc=yes
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 ac_header_preproc=no
16005 rm -f conftest.err conftest.$ac_ext
16006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16007 echo "${ECHO_T}$ac_header_preproc" >&6
16009 # So? What about this header?
16010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16011 yes:no: )
16012 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16013 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16015 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16016 ac_header_preproc=yes
16018 no:yes:* )
16019 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16020 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16022 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16024 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16026 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16028 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16030 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16032 cat <<\_ASBOX
16033 ## ------------------------------------------ ##
16034 ## Report this to the AC_PACKAGE_NAME lists. ##
16035 ## ------------------------------------------ ##
16036 _ASBOX
16038 sed "s/^/$as_me: WARNING: /" >&2
16040 esac
16041 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16042 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16043 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16049 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16052 if test $ac_cv_header_sys_cpustats_h = yes; then
16053 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16054 #define UMAX 1
16055 _ACEOF
16062 if test $ac_have_func = no; then
16064 for ac_header in mach/mach.h
16066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16068 echo "$as_me:$LINENO: checking for $ac_header" >&5
16069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16075 else
16076 # Is the header compilable?
16077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 $ac_includes_default
16086 #include <$ac_header>
16087 _ACEOF
16088 rm -f conftest.$ac_objext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16090 (eval $ac_compile) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler=yes
16110 else
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 ac_header_compiler=no
16116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6
16120 # Is the header present?
16121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <$ac_header>
16130 _ACEOF
16131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16133 ac_status=$?
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } >/dev/null; then
16139 if test -s conftest.err; then
16140 ac_cpp_err=$ac_c_preproc_warn_flag
16141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16142 else
16143 ac_cpp_err=
16145 else
16146 ac_cpp_err=yes
16148 if test -z "$ac_cpp_err"; then
16149 ac_header_preproc=yes
16150 else
16151 echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16154 ac_header_preproc=no
16156 rm -f conftest.err conftest.$ac_ext
16157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16158 echo "${ECHO_T}$ac_header_preproc" >&6
16160 # So? What about this header?
16161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16162 yes:no: )
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16167 ac_header_preproc=yes
16169 no:yes:* )
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16183 cat <<\_ASBOX
16184 ## ------------------------------------------ ##
16185 ## Report this to the AC_PACKAGE_NAME lists. ##
16186 ## ------------------------------------------ ##
16187 _ASBOX
16189 sed "s/^/$as_me: WARNING: /" >&2
16191 esac
16192 echo "$as_me:$LINENO: checking for $ac_header" >&5
16193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197 eval "$as_ac_Header=\$ac_header_preproc"
16199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16204 cat >>confdefs.h <<_ACEOF
16205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16206 _ACEOF
16210 done
16215 for ac_header in nlist.h
16217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16219 echo "$as_me:$LINENO: checking for $ac_header" >&5
16220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16226 else
16227 # Is the header compilable?
16228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16230 cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h. */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 $ac_includes_default
16237 #include <$ac_header>
16238 _ACEOF
16239 rm -f conftest.$ac_objext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16241 (eval $ac_compile) 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_header_compiler=yes
16261 else
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_header_compiler=no
16267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16269 echo "${ECHO_T}$ac_header_compiler" >&6
16271 # Is the header present?
16272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16274 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h. */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16280 #include <$ac_header>
16281 _ACEOF
16282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16284 ac_status=$?
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } >/dev/null; then
16290 if test -s conftest.err; then
16291 ac_cpp_err=$ac_c_preproc_warn_flag
16292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16293 else
16294 ac_cpp_err=
16296 else
16297 ac_cpp_err=yes
16299 if test -z "$ac_cpp_err"; then
16300 ac_header_preproc=yes
16301 else
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ac_header_preproc=no
16307 rm -f conftest.err conftest.$ac_ext
16308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16309 echo "${ECHO_T}$ac_header_preproc" >&6
16311 # So? What about this header?
16312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16313 yes:no: )
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16318 ac_header_preproc=yes
16320 no:yes:* )
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16334 cat <<\_ASBOX
16335 ## ------------------------------------------ ##
16336 ## Report this to the AC_PACKAGE_NAME lists. ##
16337 ## ------------------------------------------ ##
16338 _ASBOX
16340 sed "s/^/$as_me: WARNING: /" >&2
16342 esac
16343 echo "$as_me:$LINENO: checking for $ac_header" >&5
16344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348 eval "$as_ac_Header=\$ac_header_preproc"
16350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16357 _ACEOF
16358 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16359 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16360 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 #include <nlist.h>
16372 main ()
16374 static struct nlist ac_aggr;
16375 if (ac_aggr.n_un.n_name)
16376 return 0;
16378 return 0;
16380 _ACEOF
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_member_struct_nlist_n_un_n_name=yes
16403 else
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <nlist.h>
16416 main ()
16418 static struct nlist ac_aggr;
16419 if (sizeof ac_aggr.n_un.n_name)
16420 return 0;
16422 return 0;
16424 _ACEOF
16425 rm -f conftest.$ac_objext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16427 (eval $ac_compile) 2>conftest.er1
16428 ac_status=$?
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_member_struct_nlist_n_un_n_name=yes
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_member_struct_nlist_n_un_n_name=no
16453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16457 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16458 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16459 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16463 _ACEOF
16466 cat >>confdefs.h <<\_ACEOF
16467 #define NLIST_NAME_UNION 1
16468 _ACEOF
16475 done
16478 done
16481 # Some definitions of getloadavg require that the program be installed setgid.
16482 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16483 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16484 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16494 #ifdef LDAV_PRIVILEGED
16495 Yowza Am I SETGID yet
16496 #endif
16497 _ACEOF
16498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16500 ac_cv_func_getloadavg_setgid=yes
16501 else
16502 ac_cv_func_getloadavg_setgid=no
16504 rm -f conftest*
16507 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16508 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16509 if test $ac_cv_func_getloadavg_setgid = yes; then
16510 NEED_SETGID=true
16512 cat >>confdefs.h <<\_ACEOF
16513 #define GETLOADAVG_PRIVILEGED 1
16514 _ACEOF
16516 else
16517 NEED_SETGID=false
16520 if test $ac_cv_func_getloadavg_setgid = yes; then
16521 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16522 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16523 if test "${ac_cv_group_kmem+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16527 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16528 # If we got an error (system does not support symlinks), try without -L.
16529 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16530 ac_cv_group_kmem=`echo $ac_ls_output \
16531 | sed -ne 's/[ ][ ]*/ /g;
16532 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16533 / /s/.* //;p;'`
16536 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16537 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16538 KMEM_GROUP=$ac_cv_group_kmem
16540 if test "x$ac_save_LIBS" = x; then
16541 GETLOADAVG_LIBS=$LIBS
16542 else
16543 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16545 LIBS=$ac_save_LIBS
16549 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16550 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16551 if test "${ac_cv_sys_largefile_source+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554 while :; do
16555 ac_cv_sys_largefile_source=no
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h. */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562 #include <stdio.h>
16564 main ()
16566 return !fseeko;
16568 return 0;
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573 (eval $ac_compile) 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } &&
16586 { ac_try='test -s conftest.$ac_objext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 break
16593 else
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16599 cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h. */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #define _LARGEFILE_SOURCE 1
16606 #include <stdio.h>
16608 main ()
16610 return !fseeko;
16612 return 0;
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617 (eval $ac_compile) 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest.$ac_objext'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_cv_sys_largefile_source=1; break
16637 else
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16643 break
16644 done
16646 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16647 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16648 if test "$ac_cv_sys_largefile_source" != no; then
16650 cat >>confdefs.h <<_ACEOF
16651 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16652 _ACEOF
16655 rm -f conftest*
16657 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16658 # in glibc 2.1.3, but that breaks too many other things.
16659 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16660 echo "$as_me:$LINENO: checking for fseeko" >&5
16661 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16662 if test "${ac_cv_func_fseeko+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665 cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h. */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 #include <stdio.h>
16673 main ()
16675 return fseeko && fseeko (stdin, 0, 0);
16677 return 0;
16679 _ACEOF
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16682 (eval $ac_link) 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest$ac_exeext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_func_fseeko=yes
16702 else
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ac_cv_func_fseeko=no
16708 rm -f conftest.err conftest.$ac_objext \
16709 conftest$ac_exeext conftest.$ac_ext
16711 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16712 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16713 if test $ac_cv_func_fseeko = yes; then
16715 cat >>confdefs.h <<\_ACEOF
16716 #define HAVE_FSEEKO 1
16717 _ACEOF
16722 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16723 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16724 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727 # Use it with a single arg.
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 $ac_includes_default
16736 main ()
16738 getpgrp (0);
16740 return 0;
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_func_getpgrp_void=no
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ac_cv_func_getpgrp_void=yes
16771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16774 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16775 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16776 if test $ac_cv_func_getpgrp_void = yes; then
16778 cat >>confdefs.h <<\_ACEOF
16779 #define GETPGRP_VOID 1
16780 _ACEOF
16786 for ac_func in strftime
16788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16789 echo "$as_me:$LINENO: checking for $ac_func" >&5
16790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16791 if eval "test \"\${$as_ac_var+set}\" = set"; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16802 #define $ac_func innocuous_$ac_func
16804 /* System header to define __stub macros and hopefully few prototypes,
16805 which can conflict with char $ac_func (); below.
16806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16807 <limits.h> exists even on freestanding compilers. */
16809 #ifdef __STDC__
16810 # include <limits.h>
16811 #else
16812 # include <assert.h>
16813 #endif
16815 #undef $ac_func
16817 /* Override any gcc2 internal prototype to avoid an error. */
16818 #ifdef __cplusplus
16819 extern "C"
16821 #endif
16822 /* We use char because int might match the return type of a gcc2
16823 builtin and then its argument prototype would still apply. */
16824 char $ac_func ();
16825 /* The GNU C library defines this for functions which it implements
16826 to always fail with ENOSYS. Some functions are actually named
16827 something starting with __ and the normal name is an alias. */
16828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16829 choke me
16830 #else
16831 char (*f) () = $ac_func;
16832 #endif
16833 #ifdef __cplusplus
16835 #endif
16838 main ()
16840 return f != $ac_func;
16842 return 0;
16844 _ACEOF
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16847 (eval $ac_link) 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest$ac_exeext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 eval "$as_ac_var=yes"
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 eval "$as_ac_var=no"
16873 rm -f conftest.err conftest.$ac_objext \
16874 conftest$ac_exeext conftest.$ac_ext
16876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16878 if test `eval echo '${'$as_ac_var'}'` = yes; then
16879 cat >>confdefs.h <<_ACEOF
16880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16881 _ACEOF
16883 else
16884 # strftime is in -lintl on SCO UNIX.
16885 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16886 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16887 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890 ac_check_lib_save_LIBS=$LIBS
16891 LIBS="-lintl $LIBS"
16892 cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h. */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 /* Override any gcc2 internal prototype to avoid an error. */
16900 #ifdef __cplusplus
16901 extern "C"
16902 #endif
16903 /* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16905 char strftime ();
16907 main ()
16909 strftime ();
16911 return 0;
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16916 (eval $ac_link) 2>conftest.er1
16917 ac_status=$?
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest$ac_exeext'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 ac_cv_lib_intl_strftime=yes
16936 else
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 ac_cv_lib_intl_strftime=no
16942 rm -f conftest.err conftest.$ac_objext \
16943 conftest$ac_exeext conftest.$ac_ext
16944 LIBS=$ac_check_lib_save_LIBS
16946 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16947 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16948 if test $ac_cv_lib_intl_strftime = yes; then
16949 cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_STRFTIME 1
16951 _ACEOF
16953 LIBS="-lintl $LIBS"
16957 done
16960 # UNIX98 PTYs.
16962 for ac_func in grantpt
16964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16965 echo "$as_me:$LINENO: checking for $ac_func" >&5
16966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16967 if eval "test \"\${$as_ac_var+set}\" = set"; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970 cat >conftest.$ac_ext <<_ACEOF
16971 /* confdefs.h. */
16972 _ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16978 #define $ac_func innocuous_$ac_func
16980 /* System header to define __stub macros and hopefully few prototypes,
16981 which can conflict with char $ac_func (); below.
16982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16983 <limits.h> exists even on freestanding compilers. */
16985 #ifdef __STDC__
16986 # include <limits.h>
16987 #else
16988 # include <assert.h>
16989 #endif
16991 #undef $ac_func
16993 /* Override any gcc2 internal prototype to avoid an error. */
16994 #ifdef __cplusplus
16995 extern "C"
16997 #endif
16998 /* We use char because int might match the return type of a gcc2
16999 builtin and then its argument prototype would still apply. */
17000 char $ac_func ();
17001 /* The GNU C library defines this for functions which it implements
17002 to always fail with ENOSYS. Some functions are actually named
17003 something starting with __ and the normal name is an alias. */
17004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17005 choke me
17006 #else
17007 char (*f) () = $ac_func;
17008 #endif
17009 #ifdef __cplusplus
17011 #endif
17014 main ()
17016 return f != $ac_func;
17018 return 0;
17020 _ACEOF
17021 rm -f conftest.$ac_objext conftest$ac_exeext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17023 (eval $ac_link) 2>conftest.er1
17024 ac_status=$?
17025 grep -v '^ *+' conftest.er1 >conftest.err
17026 rm -f conftest.er1
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } &&
17030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest$ac_exeext'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 eval "$as_ac_var=yes"
17043 else
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 eval "$as_ac_var=no"
17049 rm -f conftest.err conftest.$ac_objext \
17050 conftest$ac_exeext conftest.$ac_ext
17052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17057 _ACEOF
17060 done
17063 # PTY-related GNU extensions.
17065 for ac_func in getpt
17067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068 echo "$as_me:$LINENO: checking for $ac_func" >&5
17069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17070 if eval "test \"\${$as_ac_var+set}\" = set"; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17081 #define $ac_func innocuous_$ac_func
17083 /* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func (); below.
17085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086 <limits.h> exists even on freestanding compilers. */
17088 #ifdef __STDC__
17089 # include <limits.h>
17090 #else
17091 # include <assert.h>
17092 #endif
17094 #undef $ac_func
17096 /* Override any gcc2 internal prototype to avoid an error. */
17097 #ifdef __cplusplus
17098 extern "C"
17100 #endif
17101 /* We use char because int might match the return type of a gcc2
17102 builtin and then its argument prototype would still apply. */
17103 char $ac_func ();
17104 /* The GNU C library defines this for functions which it implements
17105 to always fail with ENOSYS. Some functions are actually named
17106 something starting with __ and the normal name is an alias. */
17107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17108 choke me
17109 #else
17110 char (*f) () = $ac_func;
17111 #endif
17112 #ifdef __cplusplus
17114 #endif
17117 main ()
17119 return f != $ac_func;
17121 return 0;
17123 _ACEOF
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest$ac_exeext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 eval "$as_ac_var=yes"
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 eval "$as_ac_var=no"
17152 rm -f conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17157 if test `eval echo '${'$as_ac_var'}'` = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17160 _ACEOF
17163 done
17166 # Check this now, so that we will NOT find the above functions in ncurses.
17167 # That is because we have not set up to link ncurses in lib-src.
17168 # It's better to believe a function is not available
17169 # than to expect to find it in ncurses.
17171 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17172 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17173 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176 ac_check_lib_save_LIBS=$LIBS
17177 LIBS="-lncurses $LIBS"
17178 cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h. */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17185 /* Override any gcc2 internal prototype to avoid an error. */
17186 #ifdef __cplusplus
17187 extern "C"
17188 #endif
17189 /* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17191 char tparm ();
17193 main ()
17195 tparm ();
17197 return 0;
17199 _ACEOF
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17202 (eval $ac_link) 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_lib_ncurses_tparm=yes
17222 else
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17226 ac_cv_lib_ncurses_tparm=no
17228 rm -f conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17232 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17233 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17234 if test $ac_cv_lib_ncurses_tparm = yes; then
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_LIBNCURSES 1
17237 _ACEOF
17239 LIBS="-lncurses $LIBS"
17244 # Do we need the Hesiod library to provide the support routines?
17245 if test "$with_hesiod" = yes ; then
17246 # Don't set $LIBS here -- see comments above.
17247 resolv=no
17248 echo "$as_me:$LINENO: checking for res_send" >&5
17249 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17250 if test "${ac_cv_func_res_send+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253 cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h. */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17261 #define res_send innocuous_res_send
17263 /* System header to define __stub macros and hopefully few prototypes,
17264 which can conflict with char res_send (); below.
17265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17266 <limits.h> exists even on freestanding compilers. */
17268 #ifdef __STDC__
17269 # include <limits.h>
17270 #else
17271 # include <assert.h>
17272 #endif
17274 #undef res_send
17276 /* Override any gcc2 internal prototype to avoid an error. */
17277 #ifdef __cplusplus
17278 extern "C"
17280 #endif
17281 /* We use char because int might match the return type of a gcc2
17282 builtin and then its argument prototype would still apply. */
17283 char res_send ();
17284 /* The GNU C library defines this for functions which it implements
17285 to always fail with ENOSYS. Some functions are actually named
17286 something starting with __ and the normal name is an alias. */
17287 #if defined (__stub_res_send) || defined (__stub___res_send)
17288 choke me
17289 #else
17290 char (*f) () = res_send;
17291 #endif
17292 #ifdef __cplusplus
17294 #endif
17297 main ()
17299 return f != res_send;
17301 return 0;
17303 _ACEOF
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17306 (eval $ac_link) 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest$ac_exeext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_cv_func_res_send=yes
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_cv_func_res_send=no
17332 rm -f conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17335 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17336 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17337 if test $ac_cv_func_res_send = yes; then
17339 else
17340 echo "$as_me:$LINENO: checking for __res_send" >&5
17341 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17342 if test "${ac_cv_func___res_send+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17353 #define __res_send innocuous___res_send
17355 /* System header to define __stub macros and hopefully few prototypes,
17356 which can conflict with char __res_send (); below.
17357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358 <limits.h> exists even on freestanding compilers. */
17360 #ifdef __STDC__
17361 # include <limits.h>
17362 #else
17363 # include <assert.h>
17364 #endif
17366 #undef __res_send
17368 /* Override any gcc2 internal prototype to avoid an error. */
17369 #ifdef __cplusplus
17370 extern "C"
17372 #endif
17373 /* We use char because int might match the return type of a gcc2
17374 builtin and then its argument prototype would still apply. */
17375 char __res_send ();
17376 /* The GNU C library defines this for functions which it implements
17377 to always fail with ENOSYS. Some functions are actually named
17378 something starting with __ and the normal name is an alias. */
17379 #if defined (__stub___res_send) || defined (__stub_____res_send)
17380 choke me
17381 #else
17382 char (*f) () = __res_send;
17383 #endif
17384 #ifdef __cplusplus
17386 #endif
17389 main ()
17391 return f != __res_send;
17393 return 0;
17395 _ACEOF
17396 rm -f conftest.$ac_objext conftest$ac_exeext
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>conftest.er1
17399 ac_status=$?
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
17405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest$ac_exeext'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ac_cv_func___res_send=yes
17418 else
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ac_cv_func___res_send=no
17424 rm -f conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17427 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17428 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17429 if test $ac_cv_func___res_send = yes; then
17431 else
17432 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17433 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17434 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 else
17437 ac_check_lib_save_LIBS=$LIBS
17438 LIBS="-lresolv $LIBS"
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17446 /* Override any gcc2 internal prototype to avoid an error. */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452 char res_send ();
17454 main ()
17456 res_send ();
17458 return 0;
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_cv_lib_resolv_res_send=yes
17483 else
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ac_cv_lib_resolv_res_send=no
17489 rm -f conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17491 LIBS=$ac_check_lib_save_LIBS
17493 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17494 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17495 if test $ac_cv_lib_resolv_res_send = yes; then
17496 resolv=yes
17497 else
17498 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17499 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17500 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503 ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-lresolv $LIBS"
17505 cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h. */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17512 /* Override any gcc2 internal prototype to avoid an error. */
17513 #ifdef __cplusplus
17514 extern "C"
17515 #endif
17516 /* We use char because int might match the return type of a gcc2
17517 builtin and then its argument prototype would still apply. */
17518 char __res_send ();
17520 main ()
17522 __res_send ();
17524 return 0;
17526 _ACEOF
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_lib_resolv___res_send=yes
17549 else
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ac_cv_lib_resolv___res_send=no
17555 rm -f conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557 LIBS=$ac_check_lib_save_LIBS
17559 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17560 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17561 if test $ac_cv_lib_resolv___res_send = yes; then
17562 resolv=yes
17571 if test "$resolv" = yes ; then
17572 RESOLVLIB=-lresolv
17574 cat >>confdefs.h <<\_ACEOF
17575 #define HAVE_LIBRESOLV 1
17576 _ACEOF
17578 else
17579 RESOLVLIB=
17581 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17582 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17583 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594 #define hes_getmailhost innocuous_hes_getmailhost
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char hes_getmailhost (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17601 #ifdef __STDC__
17602 # include <limits.h>
17603 #else
17604 # include <assert.h>
17605 #endif
17607 #undef hes_getmailhost
17609 /* Override any gcc2 internal prototype to avoid an error. */
17610 #ifdef __cplusplus
17611 extern "C"
17613 #endif
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17616 char hes_getmailhost ();
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17621 choke me
17622 #else
17623 char (*f) () = hes_getmailhost;
17624 #endif
17625 #ifdef __cplusplus
17627 #endif
17630 main ()
17632 return f != hes_getmailhost;
17634 return 0;
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest$ac_exeext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_func_hes_getmailhost=yes
17659 else
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_cv_func_hes_getmailhost=no
17665 rm -f conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17669 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17670 if test $ac_cv_func_hes_getmailhost = yes; then
17672 else
17673 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17674 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17675 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678 ac_check_lib_save_LIBS=$LIBS
17679 LIBS="-lhesiod $RESOLVLIB $LIBS"
17680 cat >conftest.$ac_ext <<_ACEOF
17681 /* confdefs.h. */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17687 /* Override any gcc2 internal prototype to avoid an error. */
17688 #ifdef __cplusplus
17689 extern "C"
17690 #endif
17691 /* We use char because int might match the return type of a gcc2
17692 builtin and then its argument prototype would still apply. */
17693 char hes_getmailhost ();
17695 main ()
17697 hes_getmailhost ();
17699 return 0;
17701 _ACEOF
17702 rm -f conftest.$ac_objext conftest$ac_exeext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17704 (eval $ac_link) 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_lib_hesiod_hes_getmailhost=yes
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 ac_cv_lib_hesiod_hes_getmailhost=no
17730 rm -f conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17732 LIBS=$ac_check_lib_save_LIBS
17734 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17735 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17736 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17738 cat >>confdefs.h <<\_ACEOF
17739 #define HAVE_LIBHESIOD 1
17740 _ACEOF
17742 else
17750 # These tell us which Kerberos-related libraries to use.
17751 if test "${with_kerberos+set}" = set; then
17753 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17754 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758 ac_check_lib_save_LIBS=$LIBS
17759 LIBS="-lcom_err $LIBS"
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 /* Override any gcc2 internal prototype to avoid an error. */
17768 #ifdef __cplusplus
17769 extern "C"
17770 #endif
17771 /* We use char because int might match the return type of a gcc2
17772 builtin and then its argument prototype would still apply. */
17773 char com_err ();
17775 main ()
17777 com_err ();
17779 return 0;
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784 (eval $ac_link) 2>conftest.er1
17785 ac_status=$?
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
17791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest$ac_exeext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 ac_cv_lib_com_err_com_err=yes
17804 else
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 ac_cv_lib_com_err_com_err=no
17810 rm -f conftest.err conftest.$ac_objext \
17811 conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17815 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17816 if test $ac_cv_lib_com_err_com_err = yes; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define HAVE_LIBCOM_ERR 1
17819 _ACEOF
17821 LIBS="-lcom_err $LIBS"
17826 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17827 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17828 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 ac_check_lib_save_LIBS=$LIBS
17832 LIBS="-lk5crypto $LIBS"
17833 cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h. */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17840 /* Override any gcc2 internal prototype to avoid an error. */
17841 #ifdef __cplusplus
17842 extern "C"
17843 #endif
17844 /* We use char because int might match the return type of a gcc2
17845 builtin and then its argument prototype would still apply. */
17846 char mit_des_cbc_encrypt ();
17848 main ()
17850 mit_des_cbc_encrypt ();
17852 return 0;
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest$ac_exeext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17877 else
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17883 rm -f conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885 LIBS=$ac_check_lib_save_LIBS
17887 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17888 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17889 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17890 cat >>confdefs.h <<_ACEOF
17891 #define HAVE_LIBK5CRYPTO 1
17892 _ACEOF
17894 LIBS="-lk5crypto $LIBS"
17899 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17900 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17901 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904 ac_check_lib_save_LIBS=$LIBS
17905 LIBS="-lcrypto $LIBS"
17906 cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h. */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17913 /* Override any gcc2 internal prototype to avoid an error. */
17914 #ifdef __cplusplus
17915 extern "C"
17916 #endif
17917 /* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17919 char mit_des_cbc_encrypt ();
17921 main ()
17923 mit_des_cbc_encrypt ();
17925 return 0;
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest$ac_exeext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17950 else
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17956 rm -f conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
17958 LIBS=$ac_check_lib_save_LIBS
17960 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17961 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17962 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17963 cat >>confdefs.h <<_ACEOF
17964 #define HAVE_LIBCRYPTO 1
17965 _ACEOF
17967 LIBS="-lcrypto $LIBS"
17972 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17973 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17974 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977 ac_check_lib_save_LIBS=$LIBS
17978 LIBS="-lkrb5 $LIBS"
17979 cat >conftest.$ac_ext <<_ACEOF
17980 /* confdefs.h. */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17986 /* Override any gcc2 internal prototype to avoid an error. */
17987 #ifdef __cplusplus
17988 extern "C"
17989 #endif
17990 /* We use char because int might match the return type of a gcc2
17991 builtin and then its argument prototype would still apply. */
17992 char krb5_init_context ();
17994 main ()
17996 krb5_init_context ();
17998 return 0;
18000 _ACEOF
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest$ac_exeext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_lib_krb5_krb5_init_context=yes
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_cv_lib_krb5_krb5_init_context=no
18029 rm -f conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18033 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18034 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18035 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037 #define HAVE_LIBKRB5 1
18038 _ACEOF
18040 LIBS="-lkrb5 $LIBS"
18044 if test "${with_kerberos5+set}" != set; then
18046 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18047 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18048 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051 ac_check_lib_save_LIBS=$LIBS
18052 LIBS="-ldes425 $LIBS"
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18060 /* Override any gcc2 internal prototype to avoid an error. */
18061 #ifdef __cplusplus
18062 extern "C"
18063 #endif
18064 /* We use char because int might match the return type of a gcc2
18065 builtin and then its argument prototype would still apply. */
18066 char des_cbc_encrypt ();
18068 main ()
18070 des_cbc_encrypt ();
18072 return 0;
18074 _ACEOF
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18077 (eval $ac_link) 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 ac_cv_lib_des425_des_cbc_encrypt=yes
18097 else
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 ac_cv_lib_des425_des_cbc_encrypt=no
18103 rm -f conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18107 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18108 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18109 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18110 cat >>confdefs.h <<_ACEOF
18111 #define HAVE_LIBDES425 1
18112 _ACEOF
18114 LIBS="-ldes425 $LIBS"
18116 else
18118 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18119 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18120 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123 ac_check_lib_save_LIBS=$LIBS
18124 LIBS="-ldes $LIBS"
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h. */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18132 /* Override any gcc2 internal prototype to avoid an error. */
18133 #ifdef __cplusplus
18134 extern "C"
18135 #endif
18136 /* We use char because int might match the return type of a gcc2
18137 builtin and then its argument prototype would still apply. */
18138 char des_cbc_encrypt ();
18140 main ()
18142 des_cbc_encrypt ();
18144 return 0;
18146 _ACEOF
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18149 (eval $ac_link) 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest$ac_exeext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_lib_des_des_cbc_encrypt=yes
18169 else
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_cv_lib_des_des_cbc_encrypt=no
18175 rm -f conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18179 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18180 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18181 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define HAVE_LIBDES 1
18184 _ACEOF
18186 LIBS="-ldes $LIBS"
18193 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18194 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18195 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198 ac_check_lib_save_LIBS=$LIBS
18199 LIBS="-lkrb4 $LIBS"
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h. */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18207 /* Override any gcc2 internal prototype to avoid an error. */
18208 #ifdef __cplusplus
18209 extern "C"
18210 #endif
18211 /* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18213 char krb_get_cred ();
18215 main ()
18217 krb_get_cred ();
18219 return 0;
18221 _ACEOF
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18224 (eval $ac_link) 2>conftest.er1
18225 ac_status=$?
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 ac_cv_lib_krb4_krb_get_cred=yes
18244 else
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 ac_cv_lib_krb4_krb_get_cred=no
18250 rm -f conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18252 LIBS=$ac_check_lib_save_LIBS
18254 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18255 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18256 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18257 cat >>confdefs.h <<_ACEOF
18258 #define HAVE_LIBKRB4 1
18259 _ACEOF
18261 LIBS="-lkrb4 $LIBS"
18263 else
18265 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18266 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18267 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 else
18270 ac_check_lib_save_LIBS=$LIBS
18271 LIBS="-lkrb $LIBS"
18272 cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h. */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18279 /* Override any gcc2 internal prototype to avoid an error. */
18280 #ifdef __cplusplus
18281 extern "C"
18282 #endif
18283 /* We use char because int might match the return type of a gcc2
18284 builtin and then its argument prototype would still apply. */
18285 char krb_get_cred ();
18287 main ()
18289 krb_get_cred ();
18291 return 0;
18293 _ACEOF
18294 rm -f conftest.$ac_objext conftest$ac_exeext
18295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296 (eval $ac_link) 2>conftest.er1
18297 ac_status=$?
18298 grep -v '^ *+' conftest.er1 >conftest.err
18299 rm -f conftest.er1
18300 cat conftest.err >&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } &&
18303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest$ac_exeext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 ac_cv_lib_krb_krb_get_cred=yes
18316 else
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18320 ac_cv_lib_krb_krb_get_cred=no
18322 rm -f conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18326 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18327 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18328 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18329 cat >>confdefs.h <<_ACEOF
18330 #define HAVE_LIBKRB 1
18331 _ACEOF
18333 LIBS="-lkrb $LIBS"
18341 if test "${with_kerberos5+set}" = set; then
18343 for ac_header in krb5.h
18345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo "$as_me:$LINENO: checking for $ac_header" >&5
18348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18354 else
18355 # Is the header compilable?
18356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18358 cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h. */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 $ac_includes_default
18365 #include <$ac_header>
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest.$ac_objext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_header_compiler=yes
18389 else
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_header_compiler=no
18395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18397 echo "${ECHO_T}$ac_header_compiler" >&6
18399 # Is the header present?
18400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 #include <$ac_header>
18409 _ACEOF
18410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } >/dev/null; then
18418 if test -s conftest.err; then
18419 ac_cpp_err=$ac_c_preproc_warn_flag
18420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18421 else
18422 ac_cpp_err=
18424 else
18425 ac_cpp_err=yes
18427 if test -z "$ac_cpp_err"; then
18428 ac_header_preproc=yes
18429 else
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18433 ac_header_preproc=no
18435 rm -f conftest.err conftest.$ac_ext
18436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18437 echo "${ECHO_T}$ac_header_preproc" >&6
18439 # So? What about this header?
18440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18441 yes:no: )
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18446 ac_header_preproc=yes
18448 no:yes:* )
18449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18462 cat <<\_ASBOX
18463 ## ------------------------------------------ ##
18464 ## Report this to the AC_PACKAGE_NAME lists. ##
18465 ## ------------------------------------------ ##
18466 _ASBOX
18468 sed "s/^/$as_me: WARNING: /" >&2
18470 esac
18471 echo "$as_me:$LINENO: checking for $ac_header" >&5
18472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476 eval "$as_ac_Header=\$ac_header_preproc"
18478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18483 cat >>confdefs.h <<_ACEOF
18484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18485 _ACEOF
18489 done
18491 else
18493 for ac_header in des.h
18495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18497 echo "$as_me:$LINENO: checking for $ac_header" >&5
18498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18504 else
18505 # Is the header compilable?
18506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h. */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18515 #include <$ac_header>
18516 _ACEOF
18517 rm -f conftest.$ac_objext
18518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18519 (eval $ac_compile) 2>conftest.er1
18520 ac_status=$?
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_header_compiler=yes
18539 else
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 ac_header_compiler=no
18545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18547 echo "${ECHO_T}$ac_header_compiler" >&6
18549 # Is the header present?
18550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18552 cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h. */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 #include <$ac_header>
18559 _ACEOF
18560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } >/dev/null; then
18568 if test -s conftest.err; then
18569 ac_cpp_err=$ac_c_preproc_warn_flag
18570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18571 else
18572 ac_cpp_err=
18574 else
18575 ac_cpp_err=yes
18577 if test -z "$ac_cpp_err"; then
18578 ac_header_preproc=yes
18579 else
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 ac_header_preproc=no
18585 rm -f conftest.err conftest.$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18587 echo "${ECHO_T}$ac_header_preproc" >&6
18589 # So? What about this header?
18590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18591 yes:no: )
18592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18596 ac_header_preproc=yes
18598 no:yes:* )
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18612 cat <<\_ASBOX
18613 ## ------------------------------------------ ##
18614 ## Report this to the AC_PACKAGE_NAME lists. ##
18615 ## ------------------------------------------ ##
18616 _ASBOX
18618 sed "s/^/$as_me: WARNING: /" >&2
18620 esac
18621 echo "$as_me:$LINENO: checking for $ac_header" >&5
18622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626 eval "$as_ac_Header=\$ac_header_preproc"
18628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18633 cat >>confdefs.h <<_ACEOF
18634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18635 _ACEOF
18637 else
18639 for ac_header in kerberosIV/des.h
18641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18643 echo "$as_me:$LINENO: checking for $ac_header" >&5
18644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18650 else
18651 # Is the header compilable?
18652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 $ac_includes_default
18661 #include <$ac_header>
18662 _ACEOF
18663 rm -f conftest.$ac_objext
18664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18665 (eval $ac_compile) 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18675 ac_status=$?
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try='test -s conftest.$ac_objext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_header_compiler=yes
18685 else
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18689 ac_header_compiler=no
18691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18693 echo "${ECHO_T}$ac_header_compiler" >&6
18695 # Is the header present?
18696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18698 cat >conftest.$ac_ext <<_ACEOF
18699 /* confdefs.h. */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18704 #include <$ac_header>
18705 _ACEOF
18706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18708 ac_status=$?
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } >/dev/null; then
18714 if test -s conftest.err; then
18715 ac_cpp_err=$ac_c_preproc_warn_flag
18716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18717 else
18718 ac_cpp_err=
18720 else
18721 ac_cpp_err=yes
18723 if test -z "$ac_cpp_err"; then
18724 ac_header_preproc=yes
18725 else
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18729 ac_header_preproc=no
18731 rm -f conftest.err conftest.$ac_ext
18732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18733 echo "${ECHO_T}$ac_header_preproc" >&6
18735 # So? What about this header?
18736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18737 yes:no: )
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18742 ac_header_preproc=yes
18744 no:yes:* )
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18758 cat <<\_ASBOX
18759 ## ------------------------------------------ ##
18760 ## Report this to the AC_PACKAGE_NAME lists. ##
18761 ## ------------------------------------------ ##
18762 _ASBOX
18764 sed "s/^/$as_me: WARNING: /" >&2
18766 esac
18767 echo "$as_me:$LINENO: checking for $ac_header" >&5
18768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 else
18772 eval "$as_ac_Header=\$ac_header_preproc"
18774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18779 cat >>confdefs.h <<_ACEOF
18780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18781 _ACEOF
18783 else
18785 for ac_header in kerberos/des.h
18787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18789 echo "$as_me:$LINENO: checking for $ac_header" >&5
18790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18796 else
18797 # Is the header compilable?
18798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18800 cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h. */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 $ac_includes_default
18807 #include <$ac_header>
18808 _ACEOF
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18812 ac_status=$?
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_header_compiler=yes
18831 else
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18835 ac_header_compiler=no
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18839 echo "${ECHO_T}$ac_header_compiler" >&6
18841 # Is the header present?
18842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18844 cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h. */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 #include <$ac_header>
18851 _ACEOF
18852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } >/dev/null; then
18860 if test -s conftest.err; then
18861 ac_cpp_err=$ac_c_preproc_warn_flag
18862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18863 else
18864 ac_cpp_err=
18866 else
18867 ac_cpp_err=yes
18869 if test -z "$ac_cpp_err"; then
18870 ac_header_preproc=yes
18871 else
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18875 ac_header_preproc=no
18877 rm -f conftest.err conftest.$ac_ext
18878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18879 echo "${ECHO_T}$ac_header_preproc" >&6
18881 # So? What about this header?
18882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18883 yes:no: )
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18888 ac_header_preproc=yes
18890 no:yes:* )
18891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18904 cat <<\_ASBOX
18905 ## ------------------------------------------ ##
18906 ## Report this to the AC_PACKAGE_NAME lists. ##
18907 ## ------------------------------------------ ##
18908 _ASBOX
18910 sed "s/^/$as_me: WARNING: /" >&2
18912 esac
18913 echo "$as_me:$LINENO: checking for $ac_header" >&5
18914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918 eval "$as_ac_Header=\$ac_header_preproc"
18920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18925 cat >>confdefs.h <<_ACEOF
18926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18927 _ACEOF
18931 done
18935 done
18939 done
18942 for ac_header in krb.h
18944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18946 echo "$as_me:$LINENO: checking for $ac_header" >&5
18947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18953 else
18954 # Is the header compilable?
18955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 $ac_includes_default
18964 #include <$ac_header>
18965 _ACEOF
18966 rm -f conftest.$ac_objext
18967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18968 (eval $ac_compile) 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest.$ac_objext'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_header_compiler=yes
18988 else
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_header_compiler=no
18994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18996 echo "${ECHO_T}$ac_header_compiler" >&6
18998 # Is the header present?
18999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 #include <$ac_header>
19008 _ACEOF
19009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } >/dev/null; then
19017 if test -s conftest.err; then
19018 ac_cpp_err=$ac_c_preproc_warn_flag
19019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19020 else
19021 ac_cpp_err=
19023 else
19024 ac_cpp_err=yes
19026 if test -z "$ac_cpp_err"; then
19027 ac_header_preproc=yes
19028 else
19029 echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19032 ac_header_preproc=no
19034 rm -f conftest.err conftest.$ac_ext
19035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19036 echo "${ECHO_T}$ac_header_preproc" >&6
19038 # So? What about this header?
19039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19040 yes:no: )
19041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19045 ac_header_preproc=yes
19047 no:yes:* )
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19061 cat <<\_ASBOX
19062 ## ------------------------------------------ ##
19063 ## Report this to the AC_PACKAGE_NAME lists. ##
19064 ## ------------------------------------------ ##
19065 _ASBOX
19067 sed "s/^/$as_me: WARNING: /" >&2
19069 esac
19070 echo "$as_me:$LINENO: checking for $ac_header" >&5
19071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 else
19075 eval "$as_ac_Header=\$ac_header_preproc"
19077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19082 cat >>confdefs.h <<_ACEOF
19083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19084 _ACEOF
19086 else
19088 for ac_header in kerberosIV/krb.h
19090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19092 echo "$as_me:$LINENO: checking for $ac_header" >&5
19093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19099 else
19100 # Is the header compilable?
19101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h. */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 $ac_includes_default
19110 #include <$ac_header>
19111 _ACEOF
19112 rm -f conftest.$ac_objext
19113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19114 (eval $ac_compile) 2>conftest.er1
19115 ac_status=$?
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
19121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_header_compiler=yes
19134 else
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19138 ac_header_compiler=no
19140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19142 echo "${ECHO_T}$ac_header_compiler" >&6
19144 # Is the header present?
19145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19147 cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h. */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 #include <$ac_header>
19154 _ACEOF
19155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19157 ac_status=$?
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } >/dev/null; then
19163 if test -s conftest.err; then
19164 ac_cpp_err=$ac_c_preproc_warn_flag
19165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19166 else
19167 ac_cpp_err=
19169 else
19170 ac_cpp_err=yes
19172 if test -z "$ac_cpp_err"; then
19173 ac_header_preproc=yes
19174 else
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19178 ac_header_preproc=no
19180 rm -f conftest.err conftest.$ac_ext
19181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19182 echo "${ECHO_T}$ac_header_preproc" >&6
19184 # So? What about this header?
19185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19186 yes:no: )
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19191 ac_header_preproc=yes
19193 no:yes:* )
19194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19207 cat <<\_ASBOX
19208 ## ------------------------------------------ ##
19209 ## Report this to the AC_PACKAGE_NAME lists. ##
19210 ## ------------------------------------------ ##
19211 _ASBOX
19213 sed "s/^/$as_me: WARNING: /" >&2
19215 esac
19216 echo "$as_me:$LINENO: checking for $ac_header" >&5
19217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221 eval "$as_ac_Header=\$ac_header_preproc"
19223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19228 cat >>confdefs.h <<_ACEOF
19229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19230 _ACEOF
19232 else
19234 for ac_header in kerberos/krb.h
19236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19238 echo "$as_me:$LINENO: checking for $ac_header" >&5
19239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19245 else
19246 # Is the header compilable?
19247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19249 cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h. */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 $ac_includes_default
19256 #include <$ac_header>
19257 _ACEOF
19258 rm -f conftest.$ac_objext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260 (eval $ac_compile) 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_header_compiler=yes
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_header_compiler=no
19286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19288 echo "${ECHO_T}$ac_header_compiler" >&6
19290 # Is the header present?
19291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h. */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 #include <$ac_header>
19300 _ACEOF
19301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19303 ac_status=$?
19304 grep -v '^ *+' conftest.er1 >conftest.err
19305 rm -f conftest.er1
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } >/dev/null; then
19309 if test -s conftest.err; then
19310 ac_cpp_err=$ac_c_preproc_warn_flag
19311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19312 else
19313 ac_cpp_err=
19315 else
19316 ac_cpp_err=yes
19318 if test -z "$ac_cpp_err"; then
19319 ac_header_preproc=yes
19320 else
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19324 ac_header_preproc=no
19326 rm -f conftest.err conftest.$ac_ext
19327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19328 echo "${ECHO_T}$ac_header_preproc" >&6
19330 # So? What about this header?
19331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19332 yes:no: )
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19337 ac_header_preproc=yes
19339 no:yes:* )
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19353 cat <<\_ASBOX
19354 ## ------------------------------------------ ##
19355 ## Report this to the AC_PACKAGE_NAME lists. ##
19356 ## ------------------------------------------ ##
19357 _ASBOX
19359 sed "s/^/$as_me: WARNING: /" >&2
19361 esac
19362 echo "$as_me:$LINENO: checking for $ac_header" >&5
19363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367 eval "$as_ac_Header=\$ac_header_preproc"
19369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19376 _ACEOF
19380 done
19384 done
19388 done
19392 for ac_header in com_err.h
19394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19396 echo "$as_me:$LINENO: checking for $ac_header" >&5
19397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19403 else
19404 # Is the header compilable?
19405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h. */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 $ac_includes_default
19414 #include <$ac_header>
19415 _ACEOF
19416 rm -f conftest.$ac_objext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418 (eval $ac_compile) 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_header_compiler=yes
19438 else
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_header_compiler=no
19444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6
19448 # Is the header present?
19449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <$ac_header>
19458 _ACEOF
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19461 ac_status=$?
19462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev/null; then
19467 if test -s conftest.err; then
19468 ac_cpp_err=$ac_c_preproc_warn_flag
19469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19470 else
19471 ac_cpp_err=
19473 else
19474 ac_cpp_err=yes
19476 if test -z "$ac_cpp_err"; then
19477 ac_header_preproc=yes
19478 else
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_header_preproc=no
19484 rm -f conftest.err conftest.$ac_ext
19485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19486 echo "${ECHO_T}$ac_header_preproc" >&6
19488 # So? What about this header?
19489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19490 yes:no: )
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19495 ac_header_preproc=yes
19497 no:yes:* )
19498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19511 cat <<\_ASBOX
19512 ## ------------------------------------------ ##
19513 ## Report this to the AC_PACKAGE_NAME lists. ##
19514 ## ------------------------------------------ ##
19515 _ASBOX
19517 sed "s/^/$as_me: WARNING: /" >&2
19519 esac
19520 echo "$as_me:$LINENO: checking for $ac_header" >&5
19521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525 eval "$as_ac_Header=\$ac_header_preproc"
19527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19534 _ACEOF
19538 done
19542 # Solaris requires -lintl if you want strerror (which calls dgettext)
19543 # to return localized messages.
19545 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19546 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19547 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550 ac_check_lib_save_LIBS=$LIBS
19551 LIBS="-lintl $LIBS"
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19559 /* Override any gcc2 internal prototype to avoid an error. */
19560 #ifdef __cplusplus
19561 extern "C"
19562 #endif
19563 /* We use char because int might match the return type of a gcc2
19564 builtin and then its argument prototype would still apply. */
19565 char dgettext ();
19567 main ()
19569 dgettext ();
19571 return 0;
19573 _ACEOF
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest$ac_exeext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_cv_lib_intl_dgettext=yes
19596 else
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19600 ac_cv_lib_intl_dgettext=no
19602 rm -f conftest.err conftest.$ac_objext \
19603 conftest$ac_exeext conftest.$ac_ext
19604 LIBS=$ac_check_lib_save_LIBS
19606 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19607 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19608 if test $ac_cv_lib_intl_dgettext = yes; then
19609 cat >>confdefs.h <<_ACEOF
19610 #define HAVE_LIBINTL 1
19611 _ACEOF
19613 LIBS="-lintl $LIBS"
19618 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19619 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19620 if test "${emacs_cv_localtime_cache+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623 if test x$ac_cv_func_tzset = xyes; then
19624 if test "$cross_compiling" = yes; then
19625 # If we have tzset, assume the worst when cross-compiling.
19626 emacs_cv_localtime_cache=yes
19627 else
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #include <time.h>
19635 extern char **environ;
19636 unset_TZ ()
19638 char **from, **to;
19639 for (to = from = environ; (*to = *from); from++)
19640 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19641 to++;
19643 char TZ_GMT0[] = "TZ=GMT0";
19644 char TZ_PST8[] = "TZ=PST8";
19645 main()
19647 time_t now = time ((time_t *) 0);
19648 int hour_GMT0, hour_unset;
19649 if (putenv (TZ_GMT0) != 0)
19650 exit (1);
19651 hour_GMT0 = localtime (&now)->tm_hour;
19652 unset_TZ ();
19653 hour_unset = localtime (&now)->tm_hour;
19654 if (putenv (TZ_PST8) != 0)
19655 exit (1);
19656 if (localtime (&now)->tm_hour == hour_GMT0)
19657 exit (1);
19658 unset_TZ ();
19659 if (localtime (&now)->tm_hour != hour_unset)
19660 exit (1);
19661 exit (0);
19663 _ACEOF
19664 rm -f conftest$ac_exeext
19665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19666 (eval $ac_link) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 emacs_cv_localtime_cache=no
19676 else
19677 echo "$as_me: program exited with status $ac_status" >&5
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ( exit $ac_status )
19682 emacs_cv_localtime_cache=yes
19684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19686 else
19687 # If we lack tzset, report that localtime does not cache TZ,
19688 # since we can't invalidate the cache if we don't have tzset.
19689 emacs_cv_localtime_cache=no
19692 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19693 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19694 if test $emacs_cv_localtime_cache = yes; then
19696 cat >>confdefs.h <<\_ACEOF
19697 #define LOCALTIME_CACHE 1
19698 _ACEOF
19702 if test "x$HAVE_TIMEVAL" = xyes; then
19704 for ac_func in gettimeofday
19706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19707 echo "$as_me:$LINENO: checking for $ac_func" >&5
19708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19709 if eval "test \"\${$as_ac_var+set}\" = set"; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712 cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h. */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19720 #define $ac_func innocuous_$ac_func
19722 /* System header to define __stub macros and hopefully few prototypes,
19723 which can conflict with char $ac_func (); below.
19724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19725 <limits.h> exists even on freestanding compilers. */
19727 #ifdef __STDC__
19728 # include <limits.h>
19729 #else
19730 # include <assert.h>
19731 #endif
19733 #undef $ac_func
19735 /* Override any gcc2 internal prototype to avoid an error. */
19736 #ifdef __cplusplus
19737 extern "C"
19739 #endif
19740 /* We use char because int might match the return type of a gcc2
19741 builtin and then its argument prototype would still apply. */
19742 char $ac_func ();
19743 /* The GNU C library defines this for functions which it implements
19744 to always fail with ENOSYS. Some functions are actually named
19745 something starting with __ and the normal name is an alias. */
19746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19747 choke me
19748 #else
19749 char (*f) () = $ac_func;
19750 #endif
19751 #ifdef __cplusplus
19753 #endif
19756 main ()
19758 return f != $ac_func;
19760 return 0;
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 eval "$as_ac_var=yes"
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 eval "$as_ac_var=no"
19791 rm -f conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19796 if test `eval echo '${'$as_ac_var'}'` = yes; then
19797 cat >>confdefs.h <<_ACEOF
19798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19799 _ACEOF
19802 done
19804 if test $ac_cv_func_gettimeofday = yes; then
19805 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19806 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19807 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810 cat >conftest.$ac_ext <<_ACEOF
19811 /* confdefs.h. */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19817 #ifdef TIME_WITH_SYS_TIME
19818 #include <sys/time.h>
19819 #include <time.h>
19820 #else
19821 #ifdef HAVE_SYS_TIME_H
19822 #include <sys/time.h>
19823 #else
19824 #include <time.h>
19825 #endif
19826 #endif
19828 main ()
19830 struct timeval time;
19831 gettimeofday (&time, 0);
19833 return 0;
19835 _ACEOF
19836 rm -f conftest.$ac_objext
19837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19838 (eval $ac_compile) 2>conftest.er1
19839 ac_status=$?
19840 grep -v '^ *+' conftest.er1 >conftest.err
19841 rm -f conftest.er1
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } &&
19845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 emacs_cv_gettimeofday_two_arguments=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 emacs_cv_gettimeofday_two_arguments=no
19864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19866 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19867 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19868 if test $emacs_cv_gettimeofday_two_arguments = no; then
19870 cat >>confdefs.h <<\_ACEOF
19871 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19872 _ACEOF
19878 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19879 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19880 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19881 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 #include <sys/types.h>
19891 #include <$ac_cv_struct_tm>
19895 main ()
19897 static struct tm ac_aggr;
19898 if (ac_aggr.tm_zone)
19899 return 0;
19901 return 0;
19903 _ACEOF
19904 rm -f conftest.$ac_objext
19905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906 (eval $ac_compile) 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); } &&
19913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try='test -s conftest.$ac_objext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19925 ac_cv_member_struct_tm_tm_zone=yes
19926 else
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h. */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 #include <sys/types.h>
19937 #include <$ac_cv_struct_tm>
19941 main ()
19943 static struct tm ac_aggr;
19944 if (sizeof ac_aggr.tm_zone)
19945 return 0;
19947 return 0;
19949 _ACEOF
19950 rm -f conftest.$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19953 ac_status=$?
19954 grep -v '^ *+' conftest.er1 >conftest.err
19955 rm -f conftest.er1
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest.$ac_objext'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_member_struct_tm_tm_zone=yes
19972 else
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 ac_cv_member_struct_tm_tm_zone=no
19978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19982 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19983 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19984 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19986 cat >>confdefs.h <<_ACEOF
19987 #define HAVE_STRUCT_TM_TM_ZONE 1
19988 _ACEOF
19993 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_TM_ZONE 1
19997 _ACEOF
19999 else
20000 echo "$as_me:$LINENO: checking for tzname" >&5
20001 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20002 if test "${ac_cv_var_tzname+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h. */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 #include <time.h>
20012 #ifndef tzname /* For SGI. */
20013 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20014 #endif
20017 main ()
20019 atoi(*tzname);
20021 return 0;
20023 _ACEOF
20024 rm -f conftest.$ac_objext conftest$ac_exeext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026 (eval $ac_link) 2>conftest.er1
20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest$ac_exeext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_cv_var_tzname=yes
20046 else
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_cv_var_tzname=no
20052 rm -f conftest.err conftest.$ac_objext \
20053 conftest$ac_exeext conftest.$ac_ext
20055 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20056 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20057 if test $ac_cv_var_tzname = yes; then
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE_TZNAME 1
20061 _ACEOF
20067 if test "$ac_cv_func_gettimeofday" = yes; then
20068 echo "$as_me:$LINENO: checking for struct timezone" >&5
20069 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20070 if test "${emacs_cv_struct_timezone+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073 cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h. */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 #include <sys/time.h>
20081 main ()
20083 struct timezone tz;
20085 return 0;
20087 _ACEOF
20088 rm -f conftest.$ac_objext
20089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20090 (eval $ac_compile) 2>conftest.er1
20091 ac_status=$?
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
20097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest.$ac_objext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 if test "$cross_compiling" = yes; then
20110 emacs_cv_struct_timezone=yes
20111 else
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20119 #ifdef TIME_WITH_SYS_TIME
20120 #include <sys/time.h>
20121 #include <time.h>
20122 #else
20123 #ifdef HAVE_SYS_TIME_H
20124 #include <sys/time.h>
20125 #else
20126 #include <time.h>
20127 #endif
20128 #endif
20129 main () {
20130 struct timeval time;
20131 struct timezone dummy;
20132 exit (gettimeofday (&time, &dummy));
20134 _ACEOF
20135 rm -f conftest$ac_exeext
20136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20137 (eval $ac_link) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 emacs_cv_struct_timezone=yes
20147 else
20148 echo "$as_me: program exited with status $ac_status" >&5
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 ( exit $ac_status )
20153 emacs_cv_struct_timezone=no
20155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 emacs_cv_struct_timezone=no
20163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20165 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20166 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20169 ok_so_far=yes
20170 echo "$as_me:$LINENO: checking for socket" >&5
20171 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20172 if test "${ac_cv_func_socket+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 else
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h. */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20183 #define socket innocuous_socket
20185 /* System header to define __stub macros and hopefully few prototypes,
20186 which can conflict with char socket (); below.
20187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20188 <limits.h> exists even on freestanding compilers. */
20190 #ifdef __STDC__
20191 # include <limits.h>
20192 #else
20193 # include <assert.h>
20194 #endif
20196 #undef socket
20198 /* Override any gcc2 internal prototype to avoid an error. */
20199 #ifdef __cplusplus
20200 extern "C"
20202 #endif
20203 /* We use char because int might match the return type of a gcc2
20204 builtin and then its argument prototype would still apply. */
20205 char socket ();
20206 /* The GNU C library defines this for functions which it implements
20207 to always fail with ENOSYS. Some functions are actually named
20208 something starting with __ and the normal name is an alias. */
20209 #if defined (__stub_socket) || defined (__stub___socket)
20210 choke me
20211 #else
20212 char (*f) () = socket;
20213 #endif
20214 #ifdef __cplusplus
20216 #endif
20219 main ()
20221 return f != socket;
20223 return 0;
20225 _ACEOF
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20228 (eval $ac_link) 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
20235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest$ac_exeext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_func_socket=yes
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ac_cv_func_socket=no
20254 rm -f conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20257 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20258 echo "${ECHO_T}$ac_cv_func_socket" >&6
20259 if test $ac_cv_func_socket = yes; then
20261 else
20262 ok_so_far=no
20265 if test $ok_so_far = yes; then
20266 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20267 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20268 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20269 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20274 else
20275 # Is the header compilable?
20276 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20277 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h. */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <netinet/in.h>
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_header_compiler=yes
20309 else
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_header_compiler=no
20315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20317 echo "${ECHO_T}$ac_header_compiler" >&6
20319 # Is the header present?
20320 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20321 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20322 cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h. */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <netinet/in.h>
20329 _ACEOF
20330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } >/dev/null; then
20338 if test -s conftest.err; then
20339 ac_cpp_err=$ac_c_preproc_warn_flag
20340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20341 else
20342 ac_cpp_err=
20344 else
20345 ac_cpp_err=yes
20347 if test -z "$ac_cpp_err"; then
20348 ac_header_preproc=yes
20349 else
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_header_preproc=no
20355 rm -f conftest.err conftest.$ac_ext
20356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20357 echo "${ECHO_T}$ac_header_preproc" >&6
20359 # So? What about this header?
20360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20361 yes:no: )
20362 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20363 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20365 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20366 ac_header_preproc=yes
20368 no:yes:* )
20369 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20370 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20372 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20374 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20376 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20378 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20379 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20380 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20382 cat <<\_ASBOX
20383 ## ------------------------------------------ ##
20384 ## Report this to the AC_PACKAGE_NAME lists. ##
20385 ## ------------------------------------------ ##
20386 _ASBOX
20388 sed "s/^/$as_me: WARNING: /" >&2
20390 esac
20391 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20392 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20393 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20395 else
20396 ac_cv_header_netinet_in_h=$ac_header_preproc
20398 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20399 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20402 if test $ac_cv_header_netinet_in_h = yes; then
20404 else
20405 ok_so_far=no
20410 if test $ok_so_far = yes; then
20411 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20412 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20413 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20414 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20418 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20419 else
20420 # Is the header compilable?
20421 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20422 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 $ac_includes_default
20430 #include <arpa/inet.h>
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434 (eval $ac_compile) 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_header_compiler=yes
20454 else
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_header_compiler=no
20460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20462 echo "${ECHO_T}$ac_header_compiler" >&6
20464 # Is the header present?
20465 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20466 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 #include <arpa/inet.h>
20474 _ACEOF
20475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } >/dev/null; then
20483 if test -s conftest.err; then
20484 ac_cpp_err=$ac_c_preproc_warn_flag
20485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20486 else
20487 ac_cpp_err=
20489 else
20490 ac_cpp_err=yes
20492 if test -z "$ac_cpp_err"; then
20493 ac_header_preproc=yes
20494 else
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20498 ac_header_preproc=no
20500 rm -f conftest.err conftest.$ac_ext
20501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20502 echo "${ECHO_T}$ac_header_preproc" >&6
20504 # So? What about this header?
20505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20506 yes:no: )
20507 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20508 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20510 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20511 ac_header_preproc=yes
20513 no:yes:* )
20514 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20515 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20517 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20519 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20521 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20523 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20525 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20527 cat <<\_ASBOX
20528 ## ------------------------------------------ ##
20529 ## Report this to the AC_PACKAGE_NAME lists. ##
20530 ## ------------------------------------------ ##
20531 _ASBOX
20533 sed "s/^/$as_me: WARNING: /" >&2
20535 esac
20536 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20537 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20538 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541 ac_cv_header_arpa_inet_h=$ac_header_preproc
20543 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20544 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20547 if test $ac_cv_header_arpa_inet_h = yes; then
20549 else
20550 ok_so_far=no
20555 if test $ok_so_far = yes; then
20557 cat >>confdefs.h <<\_ACEOF
20558 #define HAVE_INET_SOCKETS 1
20559 _ACEOF
20564 for ac_header in sys/ioctl.h
20566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20568 echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20575 else
20576 # Is the header compilable?
20577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h. */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 $ac_includes_default
20586 #include <$ac_header>
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590 (eval $ac_compile) 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; } &&
20603 { ac_try='test -s conftest.$ac_objext'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 ac_header_compiler=yes
20610 else
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20614 ac_header_compiler=no
20616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20618 echo "${ECHO_T}$ac_header_compiler" >&6
20620 # Is the header present?
20621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <$ac_header>
20630 _ACEOF
20631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } >/dev/null; then
20639 if test -s conftest.err; then
20640 ac_cpp_err=$ac_c_preproc_warn_flag
20641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20642 else
20643 ac_cpp_err=
20645 else
20646 ac_cpp_err=yes
20648 if test -z "$ac_cpp_err"; then
20649 ac_header_preproc=yes
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_header_preproc=no
20656 rm -f conftest.err conftest.$ac_ext
20657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20658 echo "${ECHO_T}$ac_header_preproc" >&6
20660 # So? What about this header?
20661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20662 yes:no: )
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20667 ac_header_preproc=yes
20669 no:yes:* )
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20683 cat <<\_ASBOX
20684 ## ------------------------------------------ ##
20685 ## Report this to the AC_PACKAGE_NAME lists. ##
20686 ## ------------------------------------------ ##
20687 _ASBOX
20689 sed "s/^/$as_me: WARNING: /" >&2
20691 esac
20692 echo "$as_me:$LINENO: checking for $ac_header" >&5
20693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697 eval "$as_ac_Header=\$ac_header_preproc"
20699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20704 cat >>confdefs.h <<_ACEOF
20705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706 _ACEOF
20710 done
20713 if test -f /usr/lpp/X11/bin/smt.exp; then
20715 cat >>confdefs.h <<\_ACEOF
20716 #define HAVE_AIX_SMT_EXP 1
20717 _ACEOF
20721 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20722 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20723 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20724 echo "$as_me:$LINENO: result: yes" >&5
20725 echo "${ECHO_T}yes" >&6
20727 cat >>confdefs.h <<\_ACEOF
20728 #define HAVE_DEV_PTMX 1
20729 _ACEOF
20731 else
20732 echo "$as_me:$LINENO: result: no" >&5
20733 echo "${ECHO_T}no" >&6
20736 echo "$as_me:$LINENO: checking for pid_t" >&5
20737 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20738 if test "${ac_cv_type_pid_t+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 else
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h. */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 $ac_includes_default
20749 main ()
20751 if ((pid_t *) 0)
20752 return 0;
20753 if (sizeof (pid_t))
20754 return 0;
20756 return 0;
20758 _ACEOF
20759 rm -f conftest.$ac_objext
20760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20761 (eval $ac_compile) 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
20768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 ac_cv_type_pid_t=yes
20781 else
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 ac_cv_type_pid_t=no
20787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20789 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20790 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20791 if test $ac_cv_type_pid_t = yes; then
20793 else
20795 cat >>confdefs.h <<_ACEOF
20796 #define pid_t int
20797 _ACEOF
20803 for ac_header in unistd.h vfork.h
20805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20807 echo "$as_me:$LINENO: checking for $ac_header" >&5
20808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20814 else
20815 # Is the header compilable?
20816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 $ac_includes_default
20825 #include <$ac_header>
20826 _ACEOF
20827 rm -f conftest.$ac_objext
20828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20829 (eval $ac_compile) 2>conftest.er1
20830 ac_status=$?
20831 grep -v '^ *+' conftest.er1 >conftest.err
20832 rm -f conftest.er1
20833 cat conftest.err >&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } &&
20836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; } &&
20842 { ac_try='test -s conftest.$ac_objext'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 ac_header_compiler=yes
20849 else
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20853 ac_header_compiler=no
20855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20857 echo "${ECHO_T}$ac_header_compiler" >&6
20859 # Is the header present?
20860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <$ac_header>
20869 _ACEOF
20870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } >/dev/null; then
20878 if test -s conftest.err; then
20879 ac_cpp_err=$ac_c_preproc_warn_flag
20880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20881 else
20882 ac_cpp_err=
20884 else
20885 ac_cpp_err=yes
20887 if test -z "$ac_cpp_err"; then
20888 ac_header_preproc=yes
20889 else
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_header_preproc=no
20895 rm -f conftest.err conftest.$ac_ext
20896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20897 echo "${ECHO_T}$ac_header_preproc" >&6
20899 # So? What about this header?
20900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20901 yes:no: )
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20906 ac_header_preproc=yes
20908 no:yes:* )
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20922 cat <<\_ASBOX
20923 ## ------------------------------------------ ##
20924 ## Report this to the AC_PACKAGE_NAME lists. ##
20925 ## ------------------------------------------ ##
20926 _ASBOX
20928 sed "s/^/$as_me: WARNING: /" >&2
20930 esac
20931 echo "$as_me:$LINENO: checking for $ac_header" >&5
20932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936 eval "$as_ac_Header=\$ac_header_preproc"
20938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20943 cat >>confdefs.h <<_ACEOF
20944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20945 _ACEOF
20949 done
20953 for ac_func in fork vfork
20955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20956 echo "$as_me:$LINENO: checking for $ac_func" >&5
20957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20958 if eval "test \"\${$as_ac_var+set}\" = set"; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20969 #define $ac_func innocuous_$ac_func
20971 /* System header to define __stub macros and hopefully few prototypes,
20972 which can conflict with char $ac_func (); below.
20973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20974 <limits.h> exists even on freestanding compilers. */
20976 #ifdef __STDC__
20977 # include <limits.h>
20978 #else
20979 # include <assert.h>
20980 #endif
20982 #undef $ac_func
20984 /* Override any gcc2 internal prototype to avoid an error. */
20985 #ifdef __cplusplus
20986 extern "C"
20988 #endif
20989 /* We use char because int might match the return type of a gcc2
20990 builtin and then its argument prototype would still apply. */
20991 char $ac_func ();
20992 /* The GNU C library defines this for functions which it implements
20993 to always fail with ENOSYS. Some functions are actually named
20994 something starting with __ and the normal name is an alias. */
20995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20996 choke me
20997 #else
20998 char (*f) () = $ac_func;
20999 #endif
21000 #ifdef __cplusplus
21002 #endif
21005 main ()
21007 return f != $ac_func;
21009 return 0;
21011 _ACEOF
21012 rm -f conftest.$ac_objext conftest$ac_exeext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21014 (eval $ac_link) 2>conftest.er1
21015 ac_status=$?
21016 grep -v '^ *+' conftest.er1 >conftest.err
21017 rm -f conftest.er1
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest$ac_exeext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 eval "$as_ac_var=yes"
21034 else
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21038 eval "$as_ac_var=no"
21040 rm -f conftest.err conftest.$ac_objext \
21041 conftest$ac_exeext conftest.$ac_ext
21043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21045 if test `eval echo '${'$as_ac_var'}'` = yes; then
21046 cat >>confdefs.h <<_ACEOF
21047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21048 _ACEOF
21051 done
21053 if test "x$ac_cv_func_fork" = xyes; then
21054 echo "$as_me:$LINENO: checking for working fork" >&5
21055 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21056 if test "${ac_cv_func_fork_works+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059 if test "$cross_compiling" = yes; then
21060 ac_cv_func_fork_works=cross
21061 else
21062 cat >conftest.$ac_ext <<_ACEOF
21063 /* By Ruediger Kuhlmann. */
21064 #include <sys/types.h>
21065 #if HAVE_UNISTD_H
21066 # include <unistd.h>
21067 #endif
21068 /* Some systems only have a dummy stub for fork() */
21069 int main ()
21071 if (fork() < 0)
21072 exit (1);
21073 exit (0);
21075 _ACEOF
21076 rm -f conftest$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078 (eval $ac_link) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_func_fork_works=yes
21088 else
21089 echo "$as_me: program exited with status $ac_status" >&5
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21093 ( exit $ac_status )
21094 ac_cv_func_fork_works=no
21096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21099 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21100 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21102 else
21103 ac_cv_func_fork_works=$ac_cv_func_fork
21105 if test "x$ac_cv_func_fork_works" = xcross; then
21106 case $host in
21107 *-*-amigaos* | *-*-msdosdjgpp*)
21108 # Override, as these systems have only a dummy fork() stub
21109 ac_cv_func_fork_works=no
21112 ac_cv_func_fork_works=yes
21114 esac
21115 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21116 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21118 ac_cv_func_vfork_works=$ac_cv_func_vfork
21119 if test "x$ac_cv_func_vfork" = xyes; then
21120 echo "$as_me:$LINENO: checking for working vfork" >&5
21121 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21122 if test "${ac_cv_func_vfork_works+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125 if test "$cross_compiling" = yes; then
21126 ac_cv_func_vfork_works=cross
21127 else
21128 cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h. */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 /* Thanks to Paul Eggert for this test. */
21135 #include <stdio.h>
21136 #include <stdlib.h>
21137 #include <sys/types.h>
21138 #include <sys/stat.h>
21139 #include <sys/wait.h>
21140 #if HAVE_UNISTD_H
21141 # include <unistd.h>
21142 #endif
21143 #if HAVE_VFORK_H
21144 # include <vfork.h>
21145 #endif
21146 /* On some sparc systems, changes by the child to local and incoming
21147 argument registers are propagated back to the parent. The compiler
21148 is told about this with #include <vfork.h>, but some compilers
21149 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21150 static variable whose address is put into a register that is
21151 clobbered by the vfork. */
21152 static void
21153 #ifdef __cplusplus
21154 sparc_address_test (int arg)
21155 # else
21156 sparc_address_test (arg) int arg;
21157 #endif
21159 static pid_t child;
21160 if (!child) {
21161 child = vfork ();
21162 if (child < 0) {
21163 perror ("vfork");
21164 _exit(2);
21166 if (!child) {
21167 arg = getpid();
21168 write(-1, "", 0);
21169 _exit (arg);
21175 main ()
21177 pid_t parent = getpid ();
21178 pid_t child;
21180 sparc_address_test (0);
21182 child = vfork ();
21184 if (child == 0) {
21185 /* Here is another test for sparc vfork register problems. This
21186 test uses lots of local variables, at least as many local
21187 variables as main has allocated so far including compiler
21188 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21189 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21190 reuse the register of parent for one of the local variables,
21191 since it will think that parent can't possibly be used any more
21192 in this routine. Assigning to the local variable will thus
21193 munge parent in the parent process. */
21194 pid_t
21195 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21196 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21197 /* Convince the compiler that p..p7 are live; otherwise, it might
21198 use the same hardware register for all 8 local variables. */
21199 if (p != p1 || p != p2 || p != p3 || p != p4
21200 || p != p5 || p != p6 || p != p7)
21201 _exit(1);
21203 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21204 from child file descriptors. If the child closes a descriptor
21205 before it execs or exits, this munges the parent's descriptor
21206 as well. Test for this by closing stdout in the child. */
21207 _exit(close(fileno(stdout)) != 0);
21208 } else {
21209 int status;
21210 struct stat st;
21212 while (wait(&status) != child)
21214 exit(
21215 /* Was there some problem with vforking? */
21216 child < 0
21218 /* Did the child fail? (This shouldn't happen.) */
21219 || status
21221 /* Did the vfork/compiler bug occur? */
21222 || parent != getpid()
21224 /* Did the file descriptor bug occur? */
21225 || fstat(fileno(stdout), &st) != 0
21229 _ACEOF
21230 rm -f conftest$ac_exeext
21231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21232 (eval $ac_link) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_func_vfork_works=yes
21242 else
21243 echo "$as_me: program exited with status $ac_status" >&5
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ( exit $ac_status )
21248 ac_cv_func_vfork_works=no
21250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21253 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21254 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21257 if test "x$ac_cv_func_fork_works" = xcross; then
21258 ac_cv_func_vfork_works=$ac_cv_func_vfork
21259 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21260 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21263 if test "x$ac_cv_func_vfork_works" = xyes; then
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_WORKING_VFORK 1
21267 _ACEOF
21269 else
21271 cat >>confdefs.h <<\_ACEOF
21272 #define vfork fork
21273 _ACEOF
21276 if test "x$ac_cv_func_fork_works" = xyes; then
21278 cat >>confdefs.h <<\_ACEOF
21279 #define HAVE_WORKING_FORK 1
21280 _ACEOF
21285 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21286 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21287 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 else
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 #include <langinfo.h>
21298 main ()
21300 char* cs = nl_langinfo(CODESET);
21302 return 0;
21304 _ACEOF
21305 rm -f conftest.$ac_objext conftest$ac_exeext
21306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21307 (eval $ac_link) 2>conftest.er1
21308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; } &&
21320 { ac_try='test -s conftest$ac_exeext'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; }; then
21326 emacs_cv_langinfo_codeset=yes
21327 else
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 emacs_cv_langinfo_codeset=no
21333 rm -f conftest.err conftest.$ac_objext \
21334 conftest$ac_exeext conftest.$ac_ext
21337 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21338 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21339 if test $emacs_cv_langinfo_codeset = yes; then
21341 cat >>confdefs.h <<\_ACEOF
21342 #define HAVE_LANGINFO_CODESET 1
21343 _ACEOF
21347 echo "$as_me:$LINENO: checking for size_t" >&5
21348 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21349 if test "${ac_cv_type_size_t+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 else
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h. */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 $ac_includes_default
21360 main ()
21362 if ((size_t *) 0)
21363 return 0;
21364 if (sizeof (size_t))
21365 return 0;
21367 return 0;
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21372 (eval $ac_compile) 2>conftest.er1
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } &&
21379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; } &&
21385 { ac_try='test -s conftest.$ac_objext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_type_size_t=yes
21392 else
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 ac_cv_type_size_t=no
21398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21400 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21401 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21402 if test $ac_cv_type_size_t = yes; then
21404 cat >>confdefs.h <<_ACEOF
21405 #define HAVE_SIZE_T 1
21406 _ACEOF
21412 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21413 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21414 if test "${ac_cv_type_mbstate_t+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21424 # include <wchar.h>
21426 main ()
21428 mbstate_t x; return sizeof x;
21430 return 0;
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21435 (eval $ac_compile) 2>conftest.er1
21436 ac_status=$?
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } &&
21442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_type_mbstate_t=yes
21455 else
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21459 ac_cv_type_mbstate_t=no
21461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21463 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21464 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21465 if test $ac_cv_type_mbstate_t = yes; then
21467 cat >>confdefs.h <<\_ACEOF
21468 #define HAVE_MBSTATE_T 1
21469 _ACEOF
21471 else
21473 cat >>confdefs.h <<\_ACEOF
21474 #define mbstate_t int
21475 _ACEOF
21479 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21480 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21481 if test "${emacs_cv_c_restrict+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h. */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 void fred (int *restrict x);
21492 main ()
21496 return 0;
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501 (eval $ac_compile) 2>conftest.er1
21502 ac_status=$?
21503 grep -v '^ *+' conftest.er1 >conftest.err
21504 rm -f conftest.er1
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; } &&
21514 { ac_try='test -s conftest.$ac_objext'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21520 emacs_cv_c_restrict=yes
21521 else
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h. */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 void fred (int *__restrict x);
21533 main ()
21537 return 0;
21539 _ACEOF
21540 rm -f conftest.$ac_objext
21541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21542 (eval $ac_compile) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try='test -s conftest.$ac_objext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 emacs_cv_c_restrict=__restrict
21562 else
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 emacs_cv_c_restrict=no
21568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21572 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21573 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21574 case "$emacs_cv_c_restrict" in
21575 yes) emacs_restrict=restrict;;
21576 no) emacs_restrict="";;
21577 *) emacs_restrict="$emacs_cv_c_restrict";;
21578 esac
21579 if test "$emacs_restrict" != __restrict; then
21581 cat >>confdefs.h <<_ACEOF
21582 #define __restrict $emacs_restrict
21583 _ACEOF
21587 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21588 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21589 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h. */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 void fred (int x[__restrict]);
21600 main ()
21604 return 0;
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>conftest.er1
21610 ac_status=$?
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 emacs_cv_c_restrict_arr=yes
21629 else
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 emacs_cv_c_restrict_arr=no
21635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21637 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21638 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21639 if test "$emacs_cv_c_restrict_arr" = yes; then
21641 cat >>confdefs.h <<\_ACEOF
21642 #define __restrict_arr __restrict
21643 _ACEOF
21649 # Set up the CFLAGS for real compilation, so we can substitute it.
21650 CFLAGS="$REAL_CFLAGS"
21651 CPPFLAGS="$REAL_CPPFLAGS"
21653 #### Find out which version of Emacs this is.
21654 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21655 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21656 if test x"${version}" = x; then
21657 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21658 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21659 { (exit 1); exit 1; }; }
21662 ### Specify what sort of things we'll be editing into Makefile and config.h.
21663 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21699 cat >>confdefs.h <<_ACEOF
21700 #define EMACS_CONFIGURATION "${canonical}"
21701 _ACEOF
21704 cat >>confdefs.h <<_ACEOF
21705 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21706 _ACEOF
21709 cat >>confdefs.h <<_ACEOF
21710 #define config_machfile "${machfile}"
21711 _ACEOF
21714 cat >>confdefs.h <<_ACEOF
21715 #define config_opsysfile "${opsysfile}"
21716 _ACEOF
21719 cat >>confdefs.h <<_ACEOF
21720 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21721 _ACEOF
21724 cat >>confdefs.h <<_ACEOF
21725 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21726 _ACEOF
21729 cat >>confdefs.h <<_ACEOF
21730 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21731 _ACEOF
21734 cat >>confdefs.h <<_ACEOF
21735 #define UNEXEC_SRC ${UNEXEC_SRC}
21736 _ACEOF
21739 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21741 cat >>confdefs.h <<\_ACEOF
21742 #define HAVE_X_WINDOWS 1
21743 _ACEOF
21746 if test "${USE_X_TOOLKIT}" != "none" ; then
21748 cat >>confdefs.h <<\_ACEOF
21749 #define USE_X_TOOLKIT 1
21750 _ACEOF
21753 if test "${HAVE_X11}" = "yes" ; then
21755 cat >>confdefs.h <<\_ACEOF
21756 #define HAVE_X11 1
21757 _ACEOF
21760 if test "${HAVE_XFREE386}" = "yes" ; then
21762 cat >>confdefs.h <<\_ACEOF
21763 #define HAVE_XFREE386 1
21764 _ACEOF
21767 if test "${HAVE_MENUS}" = "yes" ; then
21769 cat >>confdefs.h <<\_ACEOF
21770 #define HAVE_MENUS 1
21771 _ACEOF
21774 if test "${GNU_MALLOC}" = "yes" ; then
21776 cat >>confdefs.h <<\_ACEOF
21777 #define GNU_MALLOC 1
21778 _ACEOF
21781 if test "${REL_ALLOC}" = "yes" ; then
21783 cat >>confdefs.h <<\_ACEOF
21784 #define REL_ALLOC 1
21785 _ACEOF
21793 #### Report on what we decided to do.
21794 #### Report GTK as a toolkit, even if it doesn't use Xt.
21795 #### It makes printing result more understandable as using GTK sets
21796 #### toolkit_scroll_bars to yes by default.
21797 if test "${HAVE_GTK}" = "yes"; then
21798 USE_X_TOOLKIT=GTK
21801 echo "
21802 Configured for \`${canonical}'.
21804 Where should the build process find the source code? ${srcdir}
21805 What operating system and machine description files should Emacs use?
21806 \`${opsysfile}' and \`${machfile}'
21807 What compiler should emacs be built with? ${CC} ${CFLAGS}
21808 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21809 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21810 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21811 What window system should Emacs use? ${window_system}
21812 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21814 if test -n "${x_includes}"; then
21815 echo " Where do we find X Windows header files? ${x_includes}"
21816 else
21817 echo " Where do we find X Windows header files? Standard dirs"
21819 if test -n "${x_libraries}"; then
21820 echo " Where do we find X Windows libraries? ${x_libraries}"
21821 else
21822 echo " Where do we find X Windows libraries? Standard dirs"
21825 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21826 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21827 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21828 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21829 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21830 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21831 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21832 echo
21834 if test $USE_XASSERTS = yes; then
21835 echo " Compiling with asserts turned on."
21836 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21837 echo
21842 # Remove any trailing slashes in these variables.
21843 test "${prefix}" != NONE &&
21844 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21845 test "${exec_prefix}" != NONE &&
21846 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21848 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21849 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21850 ## from Makefile.c can correctly provide the arg `-traditional' to the
21851 ## C preprocessor.
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h. */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 yes..yes
21860 _ACEOF
21861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21862 $EGREP "yes..yes" >/dev/null 2>&1; then
21863 CPP_NEED_TRADITIONAL=no
21864 else
21865 CPP_NEED_TRADITIONAL=yes
21867 rm -f conftest*
21870 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"
21871 ac_config_commands="$ac_config_commands default"
21872 cat >confcache <<\_ACEOF
21873 # This file is a shell script that caches the results of configure
21874 # tests run on this system so they can be shared between configure
21875 # scripts and configure runs, see configure's option --config-cache.
21876 # It is not useful on other systems. If it contains results you don't
21877 # want to keep, you may remove or edit it.
21879 # config.status only pays attention to the cache file if you give it
21880 # the --recheck option to rerun configure.
21882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21884 # following values.
21886 _ACEOF
21888 # The following way of writing the cache mishandles newlines in values,
21889 # but we know of no workaround that is simple, portable, and efficient.
21890 # So, don't put newlines in cache variables' values.
21891 # Ultrix sh set writes to stderr and can't be redirected directly,
21892 # and sets the high bit in the cache file unless we assign to the vars.
21894 (set) 2>&1 |
21895 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21896 *ac_space=\ *)
21897 # `set' does not quote correctly, so add quotes (double-quote
21898 # substitution turns \\\\ into \\, and sed turns \\ into \).
21899 sed -n \
21900 "s/'/'\\\\''/g;
21901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21904 # `set' quotes correctly as required by POSIX, so do not add quotes.
21905 sed -n \
21906 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21908 esac;
21910 sed '
21911 t clear
21912 : clear
21913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21914 t end
21915 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21916 : end' >>confcache
21917 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21918 if test -w $cache_file; then
21919 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21920 cat confcache >$cache_file
21921 else
21922 echo "not updating unwritable cache $cache_file"
21925 rm -f confcache
21927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21928 # Let make expand exec_prefix.
21929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21931 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21932 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21933 # trailing colons and then remove the whole line if VPATH becomes empty
21934 # (actually we leave an empty line to preserve line numbers).
21935 if test "x$srcdir" = x.; then
21936 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21937 s/:*\$(srcdir):*/:/;
21938 s/:*\${srcdir}:*/:/;
21939 s/:*@srcdir@:*/:/;
21940 s/^\([^=]*=[ ]*\):*/\1/;
21941 s/:*$//;
21942 s/^[^=]*=[ ]*$//;
21946 DEFS=-DHAVE_CONFIG_H
21948 ac_libobjs=
21949 ac_ltlibobjs=
21950 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21951 # 1. Remove the extension, and $U if already installed.
21952 ac_i=`echo "$ac_i" |
21953 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21954 # 2. Add them.
21955 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21956 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21957 done
21958 LIBOBJS=$ac_libobjs
21960 LTLIBOBJS=$ac_ltlibobjs
21964 : ${CONFIG_STATUS=./config.status}
21965 ac_clean_files_save=$ac_clean_files
21966 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21967 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21968 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21969 cat >$CONFIG_STATUS <<_ACEOF
21970 #! $SHELL
21971 # Generated by $as_me.
21972 # Run this file to recreate the current configuration.
21973 # Compiler output produced by configure, useful for debugging
21974 # configure, is in config.log if it exists.
21976 debug=false
21977 ac_cs_recheck=false
21978 ac_cs_silent=false
21979 SHELL=\${CONFIG_SHELL-$SHELL}
21980 _ACEOF
21982 cat >>$CONFIG_STATUS <<\_ACEOF
21983 ## --------------------- ##
21984 ## M4sh Initialization. ##
21985 ## --------------------- ##
21987 # Be Bourne compatible
21988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21989 emulate sh
21990 NULLCMD=:
21991 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21992 # is contrary to our usage. Disable this feature.
21993 alias -g '${1+"$@"}'='"$@"'
21994 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21995 set -o posix
21997 DUALCASE=1; export DUALCASE # for MKS sh
21999 # Support unset when possible.
22000 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22001 as_unset=unset
22002 else
22003 as_unset=false
22007 # Work around bugs in pre-3.0 UWIN ksh.
22008 $as_unset ENV MAIL MAILPATH
22009 PS1='$ '
22010 PS2='> '
22011 PS4='+ '
22013 # NLS nuisances.
22014 for as_var in \
22015 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22016 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22017 LC_TELEPHONE LC_TIME
22019 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22020 eval $as_var=C; export $as_var
22021 else
22022 $as_unset $as_var
22024 done
22026 # Required to use basename.
22027 if expr a : '\(a\)' >/dev/null 2>&1; then
22028 as_expr=expr
22029 else
22030 as_expr=false
22033 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22034 as_basename=basename
22035 else
22036 as_basename=false
22040 # Name of the executable.
22041 as_me=`$as_basename "$0" ||
22042 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22043 X"$0" : 'X\(//\)$' \| \
22044 X"$0" : 'X\(/\)$' \| \
22045 . : '\(.\)' 2>/dev/null ||
22046 echo X/"$0" |
22047 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22048 /^X\/\(\/\/\)$/{ s//\1/; q; }
22049 /^X\/\(\/\).*/{ s//\1/; q; }
22050 s/.*/./; q'`
22053 # PATH needs CR, and LINENO needs CR and PATH.
22054 # Avoid depending upon Character Ranges.
22055 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22056 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22057 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22058 as_cr_digits='0123456789'
22059 as_cr_alnum=$as_cr_Letters$as_cr_digits
22061 # The user is always right.
22062 if test "${PATH_SEPARATOR+set}" != set; then
22063 echo "#! /bin/sh" >conf$$.sh
22064 echo "exit 0" >>conf$$.sh
22065 chmod +x conf$$.sh
22066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22067 PATH_SEPARATOR=';'
22068 else
22069 PATH_SEPARATOR=:
22071 rm -f conf$$.sh
22075 as_lineno_1=$LINENO
22076 as_lineno_2=$LINENO
22077 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22078 test "x$as_lineno_1" != "x$as_lineno_2" &&
22079 test "x$as_lineno_3" = "x$as_lineno_2" || {
22080 # Find who we are. Look in the path if we contain no path at all
22081 # relative or not.
22082 case $0 in
22083 *[\\/]* ) as_myself=$0 ;;
22084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22085 for as_dir in $PATH
22087 IFS=$as_save_IFS
22088 test -z "$as_dir" && as_dir=.
22089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22090 done
22093 esac
22094 # We did not find ourselves, most probably we were run as `sh COMMAND'
22095 # in which case we are not to be found in the path.
22096 if test "x$as_myself" = x; then
22097 as_myself=$0
22099 if test ! -f "$as_myself"; then
22100 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22101 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22102 { (exit 1); exit 1; }; }
22104 case $CONFIG_SHELL in
22106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22107 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22109 IFS=$as_save_IFS
22110 test -z "$as_dir" && as_dir=.
22111 for as_base in sh bash ksh sh5; do
22112 case $as_dir in
22114 if ("$as_dir/$as_base" -c '
22115 as_lineno_1=$LINENO
22116 as_lineno_2=$LINENO
22117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22118 test "x$as_lineno_1" != "x$as_lineno_2" &&
22119 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22120 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22121 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22122 CONFIG_SHELL=$as_dir/$as_base
22123 export CONFIG_SHELL
22124 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22125 fi;;
22126 esac
22127 done
22128 done
22130 esac
22132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22133 # uniformly replaced by the line number. The first 'sed' inserts a
22134 # line-number line before each line; the second 'sed' does the real
22135 # work. The second script uses 'N' to pair each line-number line
22136 # with the numbered line, and appends trailing '-' during
22137 # substitution so that $LINENO is not a special case at line end.
22138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22139 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22140 sed '=' <$as_myself |
22141 sed '
22143 s,$,-,
22144 : loop
22145 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22146 t loop
22147 s,-$,,
22148 s,^['$as_cr_digits']*\n,,
22149 ' >$as_me.lineno &&
22150 chmod +x $as_me.lineno ||
22151 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22152 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22153 { (exit 1); exit 1; }; }
22155 # Don't try to exec as it changes $[0], causing all sort of problems
22156 # (the dirname of $[0] is not the place where we might find the
22157 # original and so on. Autoconf is especially sensible to this).
22158 . ./$as_me.lineno
22159 # Exit status is that of the last command.
22160 exit
22164 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22165 *c*,-n*) ECHO_N= ECHO_C='
22166 ' ECHO_T=' ' ;;
22167 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22168 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22169 esac
22171 if expr a : '\(a\)' >/dev/null 2>&1; then
22172 as_expr=expr
22173 else
22174 as_expr=false
22177 rm -f conf$$ conf$$.exe conf$$.file
22178 echo >conf$$.file
22179 if ln -s conf$$.file conf$$ 2>/dev/null; then
22180 # We could just check for DJGPP; but this test a) works b) is more generic
22181 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22182 if test -f conf$$.exe; then
22183 # Don't use ln at all; we don't have any links
22184 as_ln_s='cp -p'
22185 else
22186 as_ln_s='ln -s'
22188 elif ln conf$$.file conf$$ 2>/dev/null; then
22189 as_ln_s=ln
22190 else
22191 as_ln_s='cp -p'
22193 rm -f conf$$ conf$$.exe conf$$.file
22195 if mkdir -p . 2>/dev/null; then
22196 as_mkdir_p=:
22197 else
22198 test -d ./-p && rmdir ./-p
22199 as_mkdir_p=false
22202 as_executable_p="test -f"
22204 # Sed expression to map a string onto a valid CPP name.
22205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22207 # Sed expression to map a string onto a valid variable name.
22208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22211 # IFS
22212 # We need space, tab and new line, in precisely that order.
22213 as_nl='
22215 IFS=" $as_nl"
22217 # CDPATH.
22218 $as_unset CDPATH
22220 exec 6>&1
22222 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22223 # report actual input values of CONFIG_FILES etc. instead of their
22224 # values after options handling. Logging --version etc. is OK.
22225 exec 5>>config.log
22227 echo
22228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22229 ## Running $as_me. ##
22230 _ASBOX
22231 } >&5
22232 cat >&5 <<_CSEOF
22234 This file was extended by $as_me, which was
22235 generated by GNU Autoconf 2.59. Invocation command line was
22237 CONFIG_FILES = $CONFIG_FILES
22238 CONFIG_HEADERS = $CONFIG_HEADERS
22239 CONFIG_LINKS = $CONFIG_LINKS
22240 CONFIG_COMMANDS = $CONFIG_COMMANDS
22241 $ $0 $@
22243 _CSEOF
22244 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22245 echo >&5
22246 _ACEOF
22248 # Files that config.status was made for.
22249 if test -n "$ac_config_files"; then
22250 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22253 if test -n "$ac_config_headers"; then
22254 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22257 if test -n "$ac_config_links"; then
22258 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22261 if test -n "$ac_config_commands"; then
22262 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22265 cat >>$CONFIG_STATUS <<\_ACEOF
22267 ac_cs_usage="\
22268 \`$as_me' instantiates files from templates according to the
22269 current configuration.
22271 Usage: $0 [OPTIONS] [FILE]...
22273 -h, --help print this help, then exit
22274 -V, --version print version number, then exit
22275 -q, --quiet do not print progress messages
22276 -d, --debug don't remove temporary files
22277 --recheck update $as_me by reconfiguring in the same conditions
22278 --file=FILE[:TEMPLATE]
22279 instantiate the configuration file FILE
22280 --header=FILE[:TEMPLATE]
22281 instantiate the configuration header FILE
22283 Configuration files:
22284 $config_files
22286 Configuration headers:
22287 $config_headers
22289 Configuration commands:
22290 $config_commands
22292 Report bugs to <bug-autoconf@gnu.org>."
22293 _ACEOF
22295 cat >>$CONFIG_STATUS <<_ACEOF
22296 ac_cs_version="\\
22297 config.status
22298 configured by $0, generated by GNU Autoconf 2.59,
22299 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22301 Copyright (C) 2003 Free Software Foundation, Inc.
22302 This config.status script is free software; the Free Software Foundation
22303 gives unlimited permission to copy, distribute and modify it."
22304 srcdir=$srcdir
22305 INSTALL="$INSTALL"
22306 _ACEOF
22308 cat >>$CONFIG_STATUS <<\_ACEOF
22309 # If no file are specified by the user, then we need to provide default
22310 # value. By we need to know if files were specified by the user.
22311 ac_need_defaults=:
22312 while test $# != 0
22314 case $1 in
22315 --*=*)
22316 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22317 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22318 ac_shift=:
22321 ac_option=$1
22322 ac_optarg=$2
22323 ac_shift=shift
22325 *) # This is not an option, so the user has probably given explicit
22326 # arguments.
22327 ac_option=$1
22328 ac_need_defaults=false;;
22329 esac
22331 case $ac_option in
22332 # Handling of the options.
22333 _ACEOF
22334 cat >>$CONFIG_STATUS <<\_ACEOF
22335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22336 ac_cs_recheck=: ;;
22337 --version | --vers* | -V )
22338 echo "$ac_cs_version"; exit 0 ;;
22339 --he | --h)
22340 # Conflict between --help and --header
22341 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22342 Try \`$0 --help' for more information." >&5
22343 echo "$as_me: error: ambiguous option: $1
22344 Try \`$0 --help' for more information." >&2;}
22345 { (exit 1); exit 1; }; };;
22346 --help | --hel | -h )
22347 echo "$ac_cs_usage"; exit 0 ;;
22348 --debug | --d* | -d )
22349 debug=: ;;
22350 --file | --fil | --fi | --f )
22351 $ac_shift
22352 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22353 ac_need_defaults=false;;
22354 --header | --heade | --head | --hea )
22355 $ac_shift
22356 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22357 ac_need_defaults=false;;
22358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22359 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22360 ac_cs_silent=: ;;
22362 # This is an error.
22363 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22364 Try \`$0 --help' for more information." >&5
22365 echo "$as_me: error: unrecognized option: $1
22366 Try \`$0 --help' for more information." >&2;}
22367 { (exit 1); exit 1; }; } ;;
22369 *) ac_config_targets="$ac_config_targets $1" ;;
22371 esac
22372 shift
22373 done
22375 ac_configure_extra_args=
22377 if $ac_cs_silent; then
22378 exec 6>/dev/null
22379 ac_configure_extra_args="$ac_configure_extra_args --silent"
22382 _ACEOF
22383 cat >>$CONFIG_STATUS <<_ACEOF
22384 if \$ac_cs_recheck; then
22385 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22386 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22389 _ACEOF
22391 cat >>$CONFIG_STATUS <<_ACEOF
22393 # INIT-COMMANDS section.
22396 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22398 _ACEOF
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 for ac_config_target in $ac_config_targets
22405 case "$ac_config_target" in
22406 # Handling of arguments.
22407 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22408 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22409 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22410 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22411 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22412 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22413 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22414 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22415 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22416 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22417 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22418 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22419 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22420 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22421 { (exit 1); exit 1; }; };;
22422 esac
22423 done
22425 # If the user did not use the arguments to specify the items to instantiate,
22426 # then the envvar interface is used. Set only those that are not.
22427 # We use the long form for the default assignment because of an extremely
22428 # bizarre bug on SunOS 4.1.3.
22429 if $ac_need_defaults; then
22430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22432 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22435 # Have a temporary directory for convenience. Make it in the build tree
22436 # simply because there is no reason to put it here, and in addition,
22437 # creating and moving files from /tmp can sometimes cause problems.
22438 # Create a temporary directory, and hook for its removal unless debugging.
22439 $debug ||
22441 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22442 trap '{ (exit 1); exit 1; }' 1 2 13 15
22445 # Create a (secure) tmp directory for tmp files.
22448 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22449 test -n "$tmp" && test -d "$tmp"
22450 } ||
22452 tmp=./confstat$$-$RANDOM
22453 (umask 077 && mkdir $tmp)
22454 } ||
22456 echo "$me: cannot create a temporary directory in ." >&2
22457 { (exit 1); exit 1; }
22460 _ACEOF
22462 cat >>$CONFIG_STATUS <<_ACEOF
22465 # CONFIG_FILES section.
22468 # No need to generate the scripts if there are no CONFIG_FILES.
22469 # This happens for instance when ./config.status config.h
22470 if test -n "\$CONFIG_FILES"; then
22471 # Protect against being on the right side of a sed subst in config.status.
22472 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22473 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22474 s,@SHELL@,$SHELL,;t t
22475 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22476 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22477 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22478 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22479 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22480 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22481 s,@exec_prefix@,$exec_prefix,;t t
22482 s,@prefix@,$prefix,;t t
22483 s,@program_transform_name@,$program_transform_name,;t t
22484 s,@bindir@,$bindir,;t t
22485 s,@sbindir@,$sbindir,;t t
22486 s,@libexecdir@,$libexecdir,;t t
22487 s,@datadir@,$datadir,;t t
22488 s,@sysconfdir@,$sysconfdir,;t t
22489 s,@sharedstatedir@,$sharedstatedir,;t t
22490 s,@localstatedir@,$localstatedir,;t t
22491 s,@libdir@,$libdir,;t t
22492 s,@includedir@,$includedir,;t t
22493 s,@oldincludedir@,$oldincludedir,;t t
22494 s,@infodir@,$infodir,;t t
22495 s,@mandir@,$mandir,;t t
22496 s,@build_alias@,$build_alias,;t t
22497 s,@host_alias@,$host_alias,;t t
22498 s,@target_alias@,$target_alias,;t t
22499 s,@DEFS@,$DEFS,;t t
22500 s,@ECHO_C@,$ECHO_C,;t t
22501 s,@ECHO_N@,$ECHO_N,;t t
22502 s,@ECHO_T@,$ECHO_T,;t t
22503 s,@LIBS@,$LIBS,;t t
22504 s,@MAINT@,$MAINT,;t t
22505 s,@build@,$build,;t t
22506 s,@build_cpu@,$build_cpu,;t t
22507 s,@build_vendor@,$build_vendor,;t t
22508 s,@build_os@,$build_os,;t t
22509 s,@host@,$host,;t t
22510 s,@host_cpu@,$host_cpu,;t t
22511 s,@host_vendor@,$host_vendor,;t t
22512 s,@host_os@,$host_os,;t t
22513 s,@CC@,$CC,;t t
22514 s,@CFLAGS@,$CFLAGS,;t t
22515 s,@LDFLAGS@,$LDFLAGS,;t t
22516 s,@CPPFLAGS@,$CPPFLAGS,;t t
22517 s,@ac_ct_CC@,$ac_ct_CC,;t t
22518 s,@EXEEXT@,$EXEEXT,;t t
22519 s,@OBJEXT@,$OBJEXT,;t t
22520 s,@LN_S@,$LN_S,;t t
22521 s,@CPP@,$CPP,;t t
22522 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22523 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22524 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22525 s,@RANLIB@,$RANLIB,;t t
22526 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22527 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22528 s,@EGREP@,$EGREP,;t t
22529 s,@LIBSOUND@,$LIBSOUND,;t t
22530 s,@SET_MAKE@,$SET_MAKE,;t t
22531 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22532 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22533 s,@GTK_LIBS@,$GTK_LIBS,;t t
22534 s,@ALLOCA@,$ALLOCA,;t t
22535 s,@liblockfile@,$liblockfile,;t t
22536 s,@LIBOBJS@,$LIBOBJS,;t t
22537 s,@NEED_SETGID@,$NEED_SETGID,;t t
22538 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22539 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22540 s,@version@,$version,;t t
22541 s,@configuration@,$configuration,;t t
22542 s,@canonical@,$canonical,;t t
22543 s,@srcdir@,$srcdir,;t t
22544 s,@lispdir@,$lispdir,;t t
22545 s,@locallisppath@,$locallisppath,;t t
22546 s,@lisppath@,$lisppath,;t t
22547 s,@x_default_search_path@,$x_default_search_path,;t t
22548 s,@etcdir@,$etcdir,;t t
22549 s,@archlibdir@,$archlibdir,;t t
22550 s,@docdir@,$docdir,;t t
22551 s,@bitmapdir@,$bitmapdir,;t t
22552 s,@gamedir@,$gamedir,;t t
22553 s,@gameuser@,$gameuser,;t t
22554 s,@c_switch_system@,$c_switch_system,;t t
22555 s,@c_switch_machine@,$c_switch_machine,;t t
22556 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22557 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22558 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22559 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22560 s,@machfile@,$machfile,;t t
22561 s,@opsysfile@,$opsysfile,;t t
22562 s,@carbon_appdir@,$carbon_appdir,;t t
22563 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22564 CEOF
22566 _ACEOF
22568 cat >>$CONFIG_STATUS <<\_ACEOF
22569 # Split the substitutions into bite-sized pieces for seds with
22570 # small command number limits, like on Digital OSF/1 and HP-UX.
22571 ac_max_sed_lines=48
22572 ac_sed_frag=1 # Number of current file.
22573 ac_beg=1 # First line for current file.
22574 ac_end=$ac_max_sed_lines # Line after last line for current file.
22575 ac_more_lines=:
22576 ac_sed_cmds=
22577 while $ac_more_lines; do
22578 if test $ac_beg -gt 1; then
22579 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22580 else
22581 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22583 if test ! -s $tmp/subs.frag; then
22584 ac_more_lines=false
22585 else
22586 # The purpose of the label and of the branching condition is to
22587 # speed up the sed processing (if there are no `@' at all, there
22588 # is no need to browse any of the substitutions).
22589 # These are the two extra sed commands mentioned above.
22590 (echo ':t
22591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22592 if test -z "$ac_sed_cmds"; then
22593 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22594 else
22595 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22597 ac_sed_frag=`expr $ac_sed_frag + 1`
22598 ac_beg=$ac_end
22599 ac_end=`expr $ac_end + $ac_max_sed_lines`
22601 done
22602 if test -z "$ac_sed_cmds"; then
22603 ac_sed_cmds=cat
22605 fi # test -n "$CONFIG_FILES"
22607 _ACEOF
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22611 case $ac_file in
22612 - | *:- | *:-:* ) # input from stdin
22613 cat >$tmp/stdin
22614 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22616 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22618 * ) ac_file_in=$ac_file.in ;;
22619 esac
22621 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22622 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22624 X"$ac_file" : 'X\(//\)[^/]' \| \
22625 X"$ac_file" : 'X\(//\)$' \| \
22626 X"$ac_file" : 'X\(/\)' \| \
22627 . : '\(.\)' 2>/dev/null ||
22628 echo X"$ac_file" |
22629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22631 /^X\(\/\/\)$/{ s//\1/; q; }
22632 /^X\(\/\).*/{ s//\1/; q; }
22633 s/.*/./; q'`
22634 { if $as_mkdir_p; then
22635 mkdir -p "$ac_dir"
22636 else
22637 as_dir="$ac_dir"
22638 as_dirs=
22639 while test ! -d "$as_dir"; do
22640 as_dirs="$as_dir $as_dirs"
22641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22643 X"$as_dir" : 'X\(//\)[^/]' \| \
22644 X"$as_dir" : 'X\(//\)$' \| \
22645 X"$as_dir" : 'X\(/\)' \| \
22646 . : '\(.\)' 2>/dev/null ||
22647 echo X"$as_dir" |
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22650 /^X\(\/\/\)$/{ s//\1/; q; }
22651 /^X\(\/\).*/{ s//\1/; q; }
22652 s/.*/./; q'`
22653 done
22654 test ! -n "$as_dirs" || mkdir $as_dirs
22655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22657 { (exit 1); exit 1; }; }; }
22659 ac_builddir=.
22661 if test "$ac_dir" != .; then
22662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22663 # A "../" for each directory in $ac_dir_suffix.
22664 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22665 else
22666 ac_dir_suffix= ac_top_builddir=
22669 case $srcdir in
22670 .) # No --srcdir option. We are building in place.
22671 ac_srcdir=.
22672 if test -z "$ac_top_builddir"; then
22673 ac_top_srcdir=.
22674 else
22675 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22676 fi ;;
22677 [\\/]* | ?:[\\/]* ) # Absolute path.
22678 ac_srcdir=$srcdir$ac_dir_suffix;
22679 ac_top_srcdir=$srcdir ;;
22680 *) # Relative path.
22681 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22682 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22683 esac
22685 # Do not use `cd foo && pwd` to compute absolute paths, because
22686 # the directories may not exist.
22687 case `pwd` in
22688 .) ac_abs_builddir="$ac_dir";;
22690 case "$ac_dir" in
22691 .) ac_abs_builddir=`pwd`;;
22692 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22693 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22694 esac;;
22695 esac
22696 case $ac_abs_builddir in
22697 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22699 case ${ac_top_builddir}. in
22700 .) ac_abs_top_builddir=$ac_abs_builddir;;
22701 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22702 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22703 esac;;
22704 esac
22705 case $ac_abs_builddir in
22706 .) ac_abs_srcdir=$ac_srcdir;;
22708 case $ac_srcdir in
22709 .) ac_abs_srcdir=$ac_abs_builddir;;
22710 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22711 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22712 esac;;
22713 esac
22714 case $ac_abs_builddir in
22715 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22717 case $ac_top_srcdir in
22718 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22719 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22720 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22721 esac;;
22722 esac
22725 case $INSTALL in
22726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22727 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22728 esac
22730 # Let's still pretend it is `configure' which instantiates (i.e., don't
22731 # use $as_me), people would be surprised to read:
22732 # /* config.h. Generated by config.status. */
22733 if test x"$ac_file" = x-; then
22734 configure_input=
22735 else
22736 configure_input="$ac_file. "
22738 configure_input=$configure_input"Generated from `echo $ac_file_in |
22739 sed 's,.*/,,'` by configure."
22741 # First look for the input files in the build tree, otherwise in the
22742 # src tree.
22743 ac_file_inputs=`IFS=:
22744 for f in $ac_file_in; do
22745 case $f in
22746 -) echo $tmp/stdin ;;
22747 [\\/$]*)
22748 # Absolute (can't be DOS-style, as IFS=:)
22749 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22750 echo "$as_me: error: cannot find input file: $f" >&2;}
22751 { (exit 1); exit 1; }; }
22752 echo "$f";;
22753 *) # Relative
22754 if test -f "$f"; then
22755 # Build tree
22756 echo "$f"
22757 elif test -f "$srcdir/$f"; then
22758 # Source tree
22759 echo "$srcdir/$f"
22760 else
22761 # /dev/null tree
22762 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22763 echo "$as_me: error: cannot find input file: $f" >&2;}
22764 { (exit 1); exit 1; }; }
22765 fi;;
22766 esac
22767 done` || { (exit 1); exit 1; }
22769 if test x"$ac_file" != x-; then
22770 { echo "$as_me:$LINENO: creating $ac_file" >&5
22771 echo "$as_me: creating $ac_file" >&6;}
22772 rm -f "$ac_file"
22774 _ACEOF
22775 cat >>$CONFIG_STATUS <<_ACEOF
22776 sed "$ac_vpsub
22777 $extrasub
22778 _ACEOF
22779 cat >>$CONFIG_STATUS <<\_ACEOF
22781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22782 s,@configure_input@,$configure_input,;t t
22783 s,@srcdir@,$ac_srcdir,;t t
22784 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22785 s,@top_srcdir@,$ac_top_srcdir,;t t
22786 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22787 s,@builddir@,$ac_builddir,;t t
22788 s,@abs_builddir@,$ac_abs_builddir,;t t
22789 s,@top_builddir@,$ac_top_builddir,;t t
22790 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22791 s,@INSTALL@,$ac_INSTALL,;t t
22792 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22793 rm -f $tmp/stdin
22794 if test x"$ac_file" != x-; then
22795 mv $tmp/out $ac_file
22796 else
22797 cat $tmp/out
22798 rm -f $tmp/out
22801 done
22802 _ACEOF
22803 cat >>$CONFIG_STATUS <<\_ACEOF
22806 # CONFIG_HEADER section.
22809 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22810 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22812 # ac_d sets the value in "#define NAME VALUE" lines.
22813 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22814 ac_dB='[ ].*$,\1#\2'
22815 ac_dC=' '
22816 ac_dD=',;t'
22817 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22818 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22819 ac_uB='$,\1#\2define\3'
22820 ac_uC=' '
22821 ac_uD=',;t'
22823 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22825 case $ac_file in
22826 - | *:- | *:-:* ) # input from stdin
22827 cat >$tmp/stdin
22828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22832 * ) ac_file_in=$ac_file.in ;;
22833 esac
22835 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22836 echo "$as_me: creating $ac_file" >&6;}
22838 # First look for the input files in the build tree, otherwise in the
22839 # src tree.
22840 ac_file_inputs=`IFS=:
22841 for f in $ac_file_in; do
22842 case $f in
22843 -) echo $tmp/stdin ;;
22844 [\\/$]*)
22845 # Absolute (can't be DOS-style, as IFS=:)
22846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22847 echo "$as_me: error: cannot find input file: $f" >&2;}
22848 { (exit 1); exit 1; }; }
22849 # Do quote $f, to prevent DOS paths from being IFS'd.
22850 echo "$f";;
22851 *) # Relative
22852 if test -f "$f"; then
22853 # Build tree
22854 echo "$f"
22855 elif test -f "$srcdir/$f"; then
22856 # Source tree
22857 echo "$srcdir/$f"
22858 else
22859 # /dev/null tree
22860 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22861 echo "$as_me: error: cannot find input file: $f" >&2;}
22862 { (exit 1); exit 1; }; }
22863 fi;;
22864 esac
22865 done` || { (exit 1); exit 1; }
22866 # Remove the trailing spaces.
22867 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22869 _ACEOF
22871 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22872 # `conftest.undefs', that substitutes the proper values into
22873 # config.h.in to produce config.h. The first handles `#define'
22874 # templates, and the second `#undef' templates.
22875 # And first: Protect against being on the right side of a sed subst in
22876 # config.status. Protect against being in an unquoted here document
22877 # in config.status.
22878 rm -f conftest.defines conftest.undefs
22879 # Using a here document instead of a string reduces the quoting nightmare.
22880 # Putting comments in sed scripts is not portable.
22882 # `end' is used to avoid that the second main sed command (meant for
22883 # 0-ary CPP macros) applies to n-ary macro definitions.
22884 # See the Autoconf documentation for `clear'.
22885 cat >confdef2sed.sed <<\_ACEOF
22886 s/[\\&,]/\\&/g
22887 s,[\\$`],\\&,g
22888 t clear
22889 : clear
22890 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22891 t end
22892 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22893 : end
22894 _ACEOF
22895 # If some macros were called several times there might be several times
22896 # the same #defines, which is useless. Nevertheless, we may not want to
22897 # sort them, since we want the *last* AC-DEFINE to be honored.
22898 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22899 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22900 rm -f confdef2sed.sed
22902 # This sed command replaces #undef with comments. This is necessary, for
22903 # example, in the case of _POSIX_SOURCE, which is predefined and required
22904 # on some systems where configure will not decide to define it.
22905 cat >>conftest.undefs <<\_ACEOF
22906 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22907 _ACEOF
22909 # Break up conftest.defines because some shells have a limit on the size
22910 # of here documents, and old seds have small limits too (100 cmds).
22911 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22912 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22913 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22914 echo ' :' >>$CONFIG_STATUS
22915 rm -f conftest.tail
22916 while grep . conftest.defines >/dev/null
22918 # Write a limited-size here document to $tmp/defines.sed.
22919 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22920 # Speed up: don't consider the non `#define' lines.
22921 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22922 # Work around the forget-to-reset-the-flag bug.
22923 echo 't clr' >>$CONFIG_STATUS
22924 echo ': clr' >>$CONFIG_STATUS
22925 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22926 echo 'CEOF
22927 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22928 rm -f $tmp/in
22929 mv $tmp/out $tmp/in
22930 ' >>$CONFIG_STATUS
22931 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22932 rm -f conftest.defines
22933 mv conftest.tail conftest.defines
22934 done
22935 rm -f conftest.defines
22936 echo ' fi # grep' >>$CONFIG_STATUS
22937 echo >>$CONFIG_STATUS
22939 # Break up conftest.undefs because some shells have a limit on the size
22940 # of here documents, and old seds have small limits too (100 cmds).
22941 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22942 rm -f conftest.tail
22943 while grep . conftest.undefs >/dev/null
22945 # Write a limited-size here document to $tmp/undefs.sed.
22946 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22947 # Speed up: don't consider the non `#undef'
22948 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22949 # Work around the forget-to-reset-the-flag bug.
22950 echo 't clr' >>$CONFIG_STATUS
22951 echo ': clr' >>$CONFIG_STATUS
22952 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22953 echo 'CEOF
22954 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22955 rm -f $tmp/in
22956 mv $tmp/out $tmp/in
22957 ' >>$CONFIG_STATUS
22958 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22959 rm -f conftest.undefs
22960 mv conftest.tail conftest.undefs
22961 done
22962 rm -f conftest.undefs
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965 # Let's still pretend it is `configure' which instantiates (i.e., don't
22966 # use $as_me), people would be surprised to read:
22967 # /* config.h. Generated by config.status. */
22968 if test x"$ac_file" = x-; then
22969 echo "/* Generated by configure. */" >$tmp/config.h
22970 else
22971 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22973 cat $tmp/in >>$tmp/config.h
22974 rm -f $tmp/in
22975 if test x"$ac_file" != x-; then
22976 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22978 echo "$as_me: $ac_file is unchanged" >&6;}
22979 else
22980 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22982 X"$ac_file" : 'X\(//\)[^/]' \| \
22983 X"$ac_file" : 'X\(//\)$' \| \
22984 X"$ac_file" : 'X\(/\)' \| \
22985 . : '\(.\)' 2>/dev/null ||
22986 echo X"$ac_file" |
22987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22989 /^X\(\/\/\)$/{ s//\1/; q; }
22990 /^X\(\/\).*/{ s//\1/; q; }
22991 s/.*/./; q'`
22992 { if $as_mkdir_p; then
22993 mkdir -p "$ac_dir"
22994 else
22995 as_dir="$ac_dir"
22996 as_dirs=
22997 while test ! -d "$as_dir"; do
22998 as_dirs="$as_dir $as_dirs"
22999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23001 X"$as_dir" : 'X\(//\)[^/]' \| \
23002 X"$as_dir" : 'X\(//\)$' \| \
23003 X"$as_dir" : 'X\(/\)' \| \
23004 . : '\(.\)' 2>/dev/null ||
23005 echo X"$as_dir" |
23006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23008 /^X\(\/\/\)$/{ s//\1/; q; }
23009 /^X\(\/\).*/{ s//\1/; q; }
23010 s/.*/./; q'`
23011 done
23012 test ! -n "$as_dirs" || mkdir $as_dirs
23013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23015 { (exit 1); exit 1; }; }; }
23017 rm -f $ac_file
23018 mv $tmp/config.h $ac_file
23020 else
23021 cat $tmp/config.h
23022 rm -f $tmp/config.h
23024 done
23025 _ACEOF
23026 cat >>$CONFIG_STATUS <<\_ACEOF
23029 # CONFIG_COMMANDS section.
23031 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23032 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23033 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23034 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23035 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23036 X"$ac_dest" : 'X\(//\)[^/]' \| \
23037 X"$ac_dest" : 'X\(//\)$' \| \
23038 X"$ac_dest" : 'X\(/\)' \| \
23039 . : '\(.\)' 2>/dev/null ||
23040 echo X"$ac_dest" |
23041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23043 /^X\(\/\/\)$/{ s//\1/; q; }
23044 /^X\(\/\).*/{ s//\1/; q; }
23045 s/.*/./; q'`
23046 { if $as_mkdir_p; then
23047 mkdir -p "$ac_dir"
23048 else
23049 as_dir="$ac_dir"
23050 as_dirs=
23051 while test ! -d "$as_dir"; do
23052 as_dirs="$as_dir $as_dirs"
23053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23055 X"$as_dir" : 'X\(//\)[^/]' \| \
23056 X"$as_dir" : 'X\(//\)$' \| \
23057 X"$as_dir" : 'X\(/\)' \| \
23058 . : '\(.\)' 2>/dev/null ||
23059 echo X"$as_dir" |
23060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23062 /^X\(\/\/\)$/{ s//\1/; q; }
23063 /^X\(\/\).*/{ s//\1/; q; }
23064 s/.*/./; q'`
23065 done
23066 test ! -n "$as_dirs" || mkdir $as_dirs
23067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23069 { (exit 1); exit 1; }; }; }
23071 ac_builddir=.
23073 if test "$ac_dir" != .; then
23074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23075 # A "../" for each directory in $ac_dir_suffix.
23076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23077 else
23078 ac_dir_suffix= ac_top_builddir=
23081 case $srcdir in
23082 .) # No --srcdir option. We are building in place.
23083 ac_srcdir=.
23084 if test -z "$ac_top_builddir"; then
23085 ac_top_srcdir=.
23086 else
23087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23088 fi ;;
23089 [\\/]* | ?:[\\/]* ) # Absolute path.
23090 ac_srcdir=$srcdir$ac_dir_suffix;
23091 ac_top_srcdir=$srcdir ;;
23092 *) # Relative path.
23093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23095 esac
23097 # Do not use `cd foo && pwd` to compute absolute paths, because
23098 # the directories may not exist.
23099 case `pwd` in
23100 .) ac_abs_builddir="$ac_dir";;
23102 case "$ac_dir" in
23103 .) ac_abs_builddir=`pwd`;;
23104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23106 esac;;
23107 esac
23108 case $ac_abs_builddir in
23109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23111 case ${ac_top_builddir}. in
23112 .) ac_abs_top_builddir=$ac_abs_builddir;;
23113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23115 esac;;
23116 esac
23117 case $ac_abs_builddir in
23118 .) ac_abs_srcdir=$ac_srcdir;;
23120 case $ac_srcdir in
23121 .) ac_abs_srcdir=$ac_abs_builddir;;
23122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23124 esac;;
23125 esac
23126 case $ac_abs_builddir in
23127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23129 case $ac_top_srcdir in
23130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23133 esac;;
23134 esac
23137 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23138 echo "$as_me: executing $ac_dest commands" >&6;}
23139 case $ac_dest in
23140 default )
23142 ### Make the necessary directories, if they don't exist.
23143 for dir in etc lisp ; do
23144 test -d ${dir} || mkdir ${dir}
23145 done
23147 # Build src/Makefile from ${srcdir}/src/Makefile.c
23148 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23149 # This must be done after src/config.h is built, since we rely on that file.
23151 # Now get this: Some word that is part of the ${srcdir} directory name
23152 # or the ${configuration} value might, just might, happen to be an
23153 # identifier like `sun4' or `i386' or something, and be predefined by
23154 # the C preprocessor to some helpful value like 1, or maybe the empty
23155 # string. Needless to say consequent macro substitutions are less
23156 # than conducive to the makefile finding the correct directory.
23157 undefs="`echo $top_srcdir $configuration $canonical |
23158 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23159 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23162 echo creating src/epaths.h
23163 ${MAKE-make} epaths-force
23165 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23166 # `..' to `. .' unless invoked with -traditional
23168 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23169 CPPFLAGS="$CPPFLAGS -traditional"
23172 echo creating lib-src/Makefile
23173 ( cd lib-src
23174 rm -f junk.c junk1.c junk2.c
23175 sed -e '/start of cpp stuff/q' \
23176 < Makefile.c > junk1.c
23177 sed -e '1,/start of cpp stuff/d'\
23178 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23179 < Makefile.c > junk.c
23180 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23181 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23182 cat junk1.c junk2.c > Makefile.new
23183 rm -f junk.c junk1.c junk2.c
23184 chmod 444 Makefile.new
23185 mv -f Makefile.new Makefile
23188 echo creating src/Makefile
23189 ( cd src
23190 rm -f junk.c junk1.c junk2.c
23191 sed -e '/start of cpp stuff/q' \
23192 < Makefile.c > junk1.c
23193 sed -e '1,/start of cpp stuff/d'\
23194 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23195 < Makefile.c > junk.c
23196 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23197 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23198 cat junk1.c junk2.c > Makefile.new
23199 rm -f junk.c junk1.c junk2.c
23200 chmod 444 Makefile.new
23201 mv -f Makefile.new Makefile
23204 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23205 echo creating src/.gdbinit
23206 echo source $srcdir/src/.gdbinit > src/.gdbinit
23209 # This is how we know whether to re-run configure in certain cases.
23210 touch src/config.stamp
23213 esac
23214 done
23215 _ACEOF
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23219 { (exit 0); exit 0; }
23220 _ACEOF
23221 chmod +x $CONFIG_STATUS
23222 ac_clean_files=$ac_clean_files_save
23225 # configure is writing to config.log, and then calls config.status.
23226 # config.status does its own redirection, appending to config.log.
23227 # Unfortunately, on DOS this fails, as config.log is still kept open
23228 # by configure, so config.status won't be able to write to it; its
23229 # output is simply discarded. So we exec the FD to /dev/null,
23230 # effectively closing config.log, so it can be properly (re)opened and
23231 # appended to by config.status. When coming back to configure, we
23232 # need to make the FD available again.
23233 if test "$no_create" != yes; then
23234 ac_cs_success=:
23235 ac_config_status_args=
23236 test "$silent" = yes &&
23237 ac_config_status_args="$ac_config_status_args --quiet"
23238 exec 5>/dev/null
23239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23240 exec 5>>config.log
23241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23242 # would make configure fail if this is the last instruction.
23243 $ac_cs_success || { (exit 1); exit 1; }