*** empty log message ***
[emacs.git] / configure
blobfbbe63f8c2d151f70443b1d94ebfbc1efd87a75e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1009 $ $0 $@
1011 _ACEOF
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 _ASUNAME
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1045 } >&5
1047 cat >&5 <<_ACEOF
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1054 _ACEOF
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1069 for ac_arg
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1116 echo
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 esac;
1139 echo
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1240 done
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1360 gameuser=games
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1377 else :
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1453 esac
1454 with_x_toolkit=$val
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1581 ### Canonicalize the configuration name.
1583 ac_aux_dir=
1584 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1585 if test -f $ac_dir/install-sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install-sh -c"
1588 break
1589 elif test -f $ac_dir/install.sh; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/install.sh -c"
1592 break
1593 elif test -f $ac_dir/shtool; then
1594 ac_aux_dir=$ac_dir
1595 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 break
1598 done
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 canonical=$host
1663 configuration=${host_alias-$host}
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1690 machine='' opsys='' unported=no
1691 case "${canonical}" in
1693 ## FreeBSD ports
1694 *-*-freebsd* )
1695 opsys=freebsd
1696 case "${canonical}" in
1697 alpha*-*-freebsd*) machine=alpha ;;
1698 i[3456]86-*-freebsd*) machine=intel386 ;;
1699 esac
1702 ## NetBSD ports
1703 *-*-netbsd* )
1704 opsys=netbsd
1705 if test -f /usr/lib/crti.o; then
1707 cat >>confdefs.h <<\_ACEOF
1708 #define HAVE_CRTIN
1709 _ACEOF
1713 case "${canonical}" in
1714 alpha*-*-netbsd*) machine=alpha ;;
1715 i[3456]86-*-netbsd*) machine=intel386 ;;
1716 m68k-*-netbsd*)
1717 # This is somewhat bogus.
1718 machine=hp9000s300 ;;
1719 powerpc-apple-netbsd*) machine=macppc ;;
1720 mips-*-netbsd*) machine=pmax ;;
1721 mipsel-*-netbsd*) machine=pmax ;;
1722 mipseb-*-netbsd*) machine=pmax ;;
1723 ns32k-*-netbsd*) machine=ns32000 ;;
1724 powerpc-*-netbsd*) machine=macppc ;;
1725 sparc*-*-netbsd*) machine=sparc ;;
1726 vax-*-netbsd*) machine=vax ;;
1727 arm-*-netbsd*) machine=arm ;;
1728 esac
1731 ## OpenBSD ports
1732 *-*-openbsd* )
1733 opsys=openbsd
1734 case "${canonical}" in
1735 alpha*-*-openbsd*) machine=alpha ;;
1736 i386-*-openbsd*) machine=intel386 ;;
1737 m68k-*-openbsd*) machine=hp9000s300 ;;
1738 mipsel-*-openbsd*) machine=pmax ;;
1739 ns32k-*-openbsd*) machine=ns32000 ;;
1740 sparc-*-openbsd*) machine=sparc ;;
1741 vax-*-openbsd*) machine=vax ;;
1742 esac
1745 ## Acorn RISCiX:
1746 arm-acorn-riscix1.1* )
1747 machine=acorn opsys=riscix1-1
1749 arm-acorn-riscix1.2* | arm-acorn-riscix )
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine=acorn opsys=riscix12
1755 ## BSDI ports
1756 *-*-bsdi* )
1757 opsys=bsdi
1758 case "${canonical}" in
1759 i[345]86-*-bsdi*) machine=intel386 ;;
1760 sparc-*-bsdi*) machine=sparc ;;
1761 powerpc-*-bsdi*) machine=macppc ;;
1762 esac
1763 case "${canonical}" in
1764 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1765 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1766 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1767 *-*-bsdi3* ) opsys=bsdos3 ;;
1768 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1769 esac
1772 ## Alliant machines
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1778 fx80-alliant-* )
1779 machine=alliant4 opsys=bsd4-2
1781 i860-alliant-* )
1782 machine=alliant-2800 opsys=bsd4-3
1785 ## Alpha (DEC) machines.
1786 alpha*-dec-osf* )
1787 machine=alpha opsys=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1790 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP=/usr/bin/cpp
1796 case "${canonical}" in
1797 alpha*-dec-osf[5-9]*)
1798 opsys=osf5-0 ;;
1799 esac
1802 alpha*-*-linux-gnu* )
1803 machine=alpha opsys=gnu-linux
1806 arm*-*-linux-gnu* )
1807 machine=arm opsys=gnu-linux
1810 ppc-*-linux | \
1811 powerpc-*-linux* )
1812 machine=macppc opsys=gnu-linux
1815 ## Altos 3068
1816 m68*-altos-sysv* )
1817 machine=altos opsys=usg5-2
1820 ## Amdahl UTS
1821 580-amdahl-sysv* )
1822 machine=amdahl opsys=usg5-2-2
1825 ## Apollo, Domain/OS
1826 m68*-apollo-* )
1827 machine=apollo opsys=bsd4-3
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1831 we32k-att-sysv* )
1832 machine=att3b opsys=usg5-2-2
1835 ## AT&T 3b1 - The Mighty Unix PC!
1836 m68*-att-sysv* )
1837 machine=7300 opsys=usg5-2-2
1840 ## Bull dpx20
1841 rs6000-bull-bosx* )
1842 machine=ibmrs6000 opsys=aix3-2
1845 ## Bull dpx2
1846 m68*-bull-sysv3* )
1847 machine=dpx2 opsys=usg5-3
1850 ## Bull sps7
1851 m68*-bull-sysv2* )
1852 machine=sps7 opsys=usg5-2
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1857 ## Celerity
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd* )
1862 machine=celerity opsys=bsd4-2
1865 ## Clipper
1866 ## What operating systems does this chip run that Emacs has been
1867 ## tested on?
1868 clipper-* )
1869 machine=clipper
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1874 ## Compaq Nonstop
1875 mips-compaq-nonstopux* )
1876 machine=nonstopux opsys=nonstopux
1879 ## Convex
1880 *-convex-bsd* | *-convex-convexos* )
1881 machine=convex opsys=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP="cc -E -P"
1886 ## Cubix QBx/386
1887 i[3456]86-cubix-sysv* )
1888 machine=intel386 opsys=usg5-3
1891 ## Cydra 5
1892 cydra*-cydrome-sysv* )
1893 machine=cydra5 opsys=usg5-3
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1903 machine=aviion opsys=dgux4
1905 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine=aviion opsys=dgux5-4-3
1910 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1911 machine=aviion opsys=dgux5-4r2
1913 m88k-dg-dgux* )
1914 machine=aviion opsys=dgux
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i[345]86-dg-dguxR4* )
1921 machine=aviion-intel opsys=dgux4
1924 ## DECstations
1925 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1926 machine=pmax opsys=bsd4-2
1928 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1929 machine=pmax opsys=bsd4-3
1931 mips-dec-ultrix* )
1932 machine=pmax opsys=ultrix4-3
1934 mips-dec-osf* )
1935 machine=pmax opsys=osf1
1937 mips-dec-mach_bsd4.3* )
1938 machine=pmax opsys=mach-bsd4-3
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv* | m68000-motorola-sysv* )
1943 machine=delta opsys=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1945 then
1946 if test -s /etc/167config
1947 then CC="gnucc -m68040"
1948 else CC="gnucc -m68881"
1950 else
1951 if test -z "`type gcc | grep 'not found'`"
1952 then CC=gcc
1953 else CC=cc
1957 m88k-motorola-sysv4* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine=delta88k opsys=usg5-4-2
1964 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1965 machine=delta88k opsys=usg5-3
1968 ## Dual machines
1969 m68*-dual-sysv* )
1970 machine=dual opsys=usg5-2
1972 m68*-dual-uniplus* )
1973 machine=dual opsys=unipl5-2
1976 ## Elxsi 6400
1977 elxsi-elxsi-sysv* )
1978 machine=elxsi opsys=usg5-2
1981 ## Encore machines
1982 ns16k-encore-bsd* )
1983 machine=ns16000 opsys=umax
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1989 ## Gould Power Node and NP1
1990 pn-gould-bsd4.2* )
1991 machine=gould opsys=bsd4-2
1993 pn-gould-bsd4.3* )
1994 machine=gould opsys=bsd4-3
1996 np1-gould-bsd* )
1997 machine=gould-np1 opsys=bsd4-3
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2002 m88k-harris-cxux* )
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2006 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2007 esac
2008 NON_GNU_CPP="/lib/cpp"
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2011 m68k-harris-cxux* )
2012 machine=nh3000 opsys=cxux
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix )
2016 machine=nh6000 opsys=powerunix
2017 NON_GNU_CPP="cc -Xo -E -P"
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1-hitachi-hiuxmpp* )
2021 machine=sr2k opsys=hiuxmpp
2023 hppa1.1-hitachi-hiuxwe2* )
2024 machine=sr2k opsys=hiuxwe2
2026 ## Honeywell XPS100
2027 xps*-honeywell-sysv* )
2028 machine=xps100 opsys=usg5-2
2031 ## HP 9000 series 200 or 300
2032 m68*-hp-bsd* )
2033 machine=hp9000s300 opsys=bsd4-3
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2036 m68*-hp-hpux* )
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2041 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2042 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2043 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2044 *) machine=hp9000s300 opsys=hpux ;;
2045 esac
2048 ## HP 9000 series 700 and 800, running HP/UX
2049 hppa*-hp-hpux7* )
2050 machine=hp800 opsys=hpux
2052 hppa*-hp-hpux8* )
2053 machine=hp800 opsys=hpux8
2055 hppa*-hp-hpux9shr* )
2056 machine=hp800 opsys=hpux9shr
2058 hppa*-hp-hpux9* )
2059 machine=hp800 opsys=hpux9
2061 hppa*-hp-hpux10.2* )
2062 machine=hp800 opsys=hpux10-20
2064 hppa*-hp-hpux10* )
2065 machine=hp800 opsys=hpux10
2067 hppa*-hp-hpux1[1-9]* )
2068 machine=hp800 opsys=hpux11
2071 hppa*-*-linux-gnu* )
2072 machine=hp800 opsys=gnu-linux
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux* )
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2082 *.08.* ) machine=hp800 opsys=hpux8 ;;
2083 *.09.* ) machine=hp800 opsys=hpux9 ;;
2084 *) machine=hp800 opsys=hpux10 ;;
2085 esac
2087 hppa*-*-nextstep* )
2088 machine=hp800 opsys=nextstep
2091 ## Orion machines
2092 orion-orion-bsd* )
2093 machine=orion opsys=bsd4-2
2095 clipper-orion-bsd* )
2096 machine=orion105 opsys=bsd4-2
2099 ## IBM machines
2100 i[3456]86-ibm-aix1.1* )
2101 machine=ibmps2-aix opsys=usg5-2-2
2103 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2104 machine=ibmps2-aix opsys=usg5-3
2106 i370-ibm-aix*)
2107 machine=ibm370aix opsys=usg5-3
2109 s390-*-linux-gnu* )
2110 machine=ibms390 opsys=gnu-linux
2112 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2113 machine=ibmrs6000 opsys=aix3-1
2115 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2116 machine=ibmrs6000 opsys=aix3-2-5
2118 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2119 machine=ibmrs6000 opsys=aix4-1
2121 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2122 machine=ibmrs6000 opsys=aix4-2
2124 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2125 machine=ibmrs6000 opsys=aix4-2
2127 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2128 machine=ibmrs6000 opsys=aix4
2130 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2131 machine=ibmrs6000 opsys=aix4-1
2133 rs6000-ibm-aix* | powerpc-ibm-aix* )
2134 machine=ibmrs6000 opsys=aix3-2
2136 romp-ibm-bsd4.3* )
2137 machine=ibmrt opsys=bsd4-3
2139 romp-ibm-bsd4.2* )
2140 machine=ibmrt opsys=bsd4-2
2142 romp-ibm-aos4.3* )
2143 machine=ibmrt opsys=bsd4-3
2145 romp-ibm-aos4.2* )
2146 machine=ibmrt opsys=bsd4-2
2148 romp-ibm-aos* )
2149 machine=ibmrt opsys=bsd4-3
2151 romp-ibm-bsd* )
2152 machine=ibmrt opsys=bsd4-3
2154 romp-ibm-aix* )
2155 machine=ibmrt-aix opsys=usg5-2-2
2158 ## Integrated Solutions `Optimum V'
2159 m68*-isi-bsd4.2* )
2160 machine=isi-ov opsys=bsd4-2
2162 m68*-isi-bsd4.3* )
2163 machine=isi-ov opsys=bsd4-3
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i[3456]86-intsys-sysv* )
2168 machine=is386 opsys=usg5-2-2
2171 ## Prime EXL
2172 i[3456]86-prime-sysv* )
2173 machine=i386 opsys=usg5-3
2176 ## Sequent Symmetry running Dynix
2177 i[3456]86-sequent-bsd* )
2178 machine=symmetry opsys=bsd4-3
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2183 machine=sequent-ptx opsys=ptx4
2184 NON_GNU_CPP=/lib/cpp
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i[3456]86-sequent-ptx* )
2190 machine=sequent-ptx opsys=ptx
2191 NON_GNU_CPP="/lib/cpp"
2194 ## ncr machine running svr4.3.
2195 i[3456]86-ncr-sysv4.3 )
2196 machine=ncr386 opsys=usg5-4-3
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i[3456]86-ncr-sysv* )
2202 machine=ncr386 opsys=usg5-4-2
2205 ## Intel Paragon OSF/1
2206 i860-intel-osf1* )
2207 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2210 ## Intel 860
2211 i860-*-sysv4* )
2212 machine=i860 opsys=usg5-4
2213 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2217 ## Macintosh PowerPC
2218 powerpc*-*-linux-gnu* )
2219 machine=macppc opsys=gnu-linux
2222 ## Masscomp machines
2223 m68*-masscomp-rtu* )
2224 machine=masscomp opsys=rtu
2227 ## Megatest machines
2228 m68*-megatest-bsd* )
2229 machine=mega68 opsys=bsd4-2
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2243 mips-mips-usg* )
2244 machine=mips4
2245 ## Fall through to the general code at the bottom to decide on the OS.
2247 mips-mips-riscos4* )
2248 machine=mips4 opsys=bsd4-3
2249 NON_GNU_CC="cc -systype bsd43"
2250 NON_GNU_CPP="cc -systype bsd43 -E"
2252 mips-mips-riscos5* )
2253 machine=mips4 opsys=riscos5
2254 NON_GNU_CC="cc -systype bsd43"
2255 NON_GNU_CPP="cc -systype bsd43 -E"
2257 mips-mips-bsd* )
2258 machine=mips opsys=bsd4-3
2260 mips-mips-* )
2261 machine=mips opsys=usg5-2-2
2264 ## NeXT
2265 m68*-next-* | m68k-*-nextstep* )
2266 machine=m68k opsys=nextstep
2269 ## The complete machine from National Semiconductor
2270 ns32k-ns-genix* )
2271 machine=ns32000 opsys=usg5-2
2274 ## NCR machines
2275 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2276 machine=tower32 opsys=usg5-2-2
2278 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2279 machine=tower32v3 opsys=usg5-3
2282 ## NEC EWS4800
2283 mips-nec-sysv4*)
2284 machine=ews4800 opsys=ux4800
2287 ## Nixdorf Targon 31
2288 m68*-nixdorf-sysv* )
2289 machine=targon31 opsys=usg5-2-2
2292 ## Nu (TI or LMI)
2293 m68*-nu-sysv* )
2294 machine=nu opsys=usg5-2
2297 ## Plexus
2298 m68*-plexus-sysv* )
2299 machine=plexus opsys=usg5-2
2302 ## Pyramid machines
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd* )
2306 machine=pyramid opsys=bsd4-2
2309 ## Sequent Balance
2310 ns32k-sequent-bsd4.2* )
2311 machine=sequent opsys=bsd4-2
2313 ns32k-sequent-bsd4.3* )
2314 machine=sequent opsys=bsd4-3
2317 ## Siemens Nixdorf
2318 mips-siemens-sysv* | mips-sni-sysv*)
2319 machine=mips-siemens opsys=usg5-4
2320 NON_GNU_CC=/usr/ccs/bin/cc
2321 NON_GNU_CPP=/usr/ccs/lib/cpp
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2326 m68*-sgi-iris3.5* )
2327 machine=irist opsys=iris3-5
2329 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2330 machine=irist opsys=iris3-6
2332 ## Iris 4D
2333 mips-sgi-irix3* )
2334 machine=iris4d opsys=irix3-3
2336 mips-sgi-irix4* )
2337 machine=iris4d opsys=irix4-0
2339 mips-sgi-irix6.5 )
2340 machine=iris4d opsys=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2347 mips-sgi-irix6* )
2348 machine=iris4d opsys=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS=-32
2355 mips-sgi-irix5.[01]* )
2356 machine=iris4d opsys=irix5-0
2358 mips-sgi-irix5* | mips-sgi-irix* )
2359 machine=iris4d opsys=irix5-2
2362 ## SONY machines
2363 m68*-sony-bsd4.2* )
2364 machine=news opsys=bsd4-2
2366 m68*-sony-bsd4.3* )
2367 machine=news opsys=bsd4-3
2369 m68*-sony-newsos3* | m68*-sony-news3*)
2370 machine=news opsys=bsd4-3
2372 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2373 machine=news-risc opsys=bsd4-3
2375 mips-sony-newsos6* )
2376 machine=news-r6 opsys=newsos6
2378 mips-sony-news* )
2379 machine=news-risc opsys=newsos5
2382 ## Stride
2383 m68*-stride-sysv* )
2384 machine=stride opsys=usg5-2
2387 ## Suns
2388 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2389 machine=sparc opsys=gnu-linux
2392 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2393 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2394 | rs6000-*-solaris2*)
2395 case "${canonical}" in
2396 m68*-sunos1* ) machine=sun1 ;;
2397 m68*-sunos2* ) machine=sun2 ;;
2398 m68* ) machine=sun3 ;;
2399 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2400 i[3456]86-*-* ) machine=intel386 ;;
2401 powerpcle* ) machine=powerpcle ;;
2402 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2403 sparc* ) machine=sparc ;;
2404 * ) unported=yes ;;
2405 esac
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2409 *-sunos4.0* ) opsys=sunos4-0 ;;
2410 *-sunos4.1.[3-9]*noshare )
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2413 opsys=sunos413
2414 NON_GNU_CPP=/usr/lib/cpp
2415 NON_GCC_TEST_OPTIONS=-Bstatic
2416 GCC_TEST_OPTIONS=-static
2418 *-sunos4.1.[3-9]* | *-sunos4shr*)
2419 opsys=sunos4shr
2420 NON_GNU_CPP=/usr/lib/cpp
2422 *-sunos4* | *-sunos )
2423 opsys=sunos4-1
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2427 *-sunos5.3* | *-solaris2.3* )
2428 opsys=sol2-3
2429 NON_GNU_CPP=/usr/ccs/lib/cpp
2431 *-sunos5.4* | *-solaris2.4* )
2432 opsys=sol2-4
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 RANLIB="ar -ts"
2436 *-sunos5.5* | *-solaris2.5* )
2437 opsys=sol2-5
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 RANLIB="ar -ts"
2441 *-sunos5.6* | *-solaris2.6* )
2442 opsys=sol2-6
2443 NON_GNU_CPP=/usr/ccs/lib/cpp
2444 RANLIB="ar -ts"
2446 *-sunos5* | *-solaris* )
2447 opsys=sol2-6
2448 NON_GNU_CPP=/usr/ccs/lib/cpp
2450 * ) opsys=bsd4-2 ;;
2451 esac
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* | *-sunos5* )
2455 if [ "x$CC" = x/usr/ucb/cc ]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2458 unset CC
2461 *) ;;
2462 esac
2464 sparc-*-nextstep* )
2465 machine=sparc opsys=nextstep
2468 ## Tadpole 68k
2469 m68*-tadpole-sysv* )
2470 machine=tad68k opsys=usg5-3
2473 ## Tahoe machines
2474 tahoe-tahoe-bsd4.2* )
2475 machine=tahoe opsys=bsd4-2
2477 tahoe-tahoe-bsd4.3* )
2478 machine=tahoe opsys=bsd4-3
2481 ## Tandem Integrity S2
2482 mips-tandem-sysv* )
2483 machine=tandem-s2 opsys=usg5-3
2486 ## Tektronix XD88
2487 m88k-tektronix-sysv3* )
2488 machine=tekxd88 opsys=usg5-3
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd* )
2493 machine=ns16000 opsys=bsd4-2
2495 ## Tektronix 4300
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68*-tektronix-bsd* )
2498 machine=tek4300 opsys=bsd4-3
2501 ## Titan P2 or P3
2502 ## We seem to have lost the machine-description file titan.h!
2503 titan-titan-sysv* )
2504 machine=titan opsys=usg5-3
2507 ## Ustation E30 (SS5E)
2508 m68*-unisys-uniplus* )
2509 machine=ustation opsystem=unipl5-2
2512 ## Vaxen.
2513 vax-dec-* )
2514 machine=vax
2515 case "${canonical}" in
2516 *-bsd4.1* ) opsys=bsd4-1 ;;
2517 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2518 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2519 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2520 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2521 *-vms* ) opsys=vms ;;
2522 * ) unported=yes
2523 esac
2526 ## Whitechapel MG1
2527 ns16k-whitechapel-* )
2528 machine=mg1
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2533 ## Wicat
2534 m68*-wicat-sysv* )
2535 machine=wicat opsys=usg5-2
2538 ## IA-64
2539 ia64*-*-linux* )
2540 machine=ia64 opsys=gnu-linux
2543 ## Intel 386 machines where we don't care about the manufacturer
2544 i[3456]86-*-* )
2545 machine=intel386
2546 case "${canonical}" in
2547 *-cygwin ) opsys=cygwin ;;
2548 *-lynxos* ) opsys=lynxos ;;
2549 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2550 *-isc2.2* ) opsys=isc2-2 ;;
2551 *-isc4.0* ) opsys=isc4-0 ;;
2552 *-isc4.* ) opsys=isc4-1
2553 GCC_TEST_OPTIONS=-posix
2554 NON_GCC_TEST_OPTIONS=-Xp
2556 *-isc* ) opsys=isc3-0 ;;
2557 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2558 *-esix* ) opsys=esix ;;
2559 *-xenix* ) opsys=xenix ;;
2560 *-linux-gnu* ) opsys=gnu-linux ;;
2561 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2562 *-sco3.2v5* ) opsys=sco5
2563 NON_GNU_CPP=/lib/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS=" "
2568 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2569 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2570 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2571 *-386bsd* ) opsys=386bsd ;;
2572 *-nextstep* ) opsys=nextstep ;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2574 esac
2577 ## m68k Linux-based GNU system
2578 m68k-*-linux-gnu* )
2579 machine=m68k opsys=gnu-linux
2582 ## Mips Linux-based GNU system
2583 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2584 machine=mips opsys=gnu-linux
2587 ## UXP/DS
2588 sparc-fujitsu-sysv4* )
2589 machine=sparc opsys=uxpds
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2594 ## UXP/V
2595 f301-fujitsu-uxpv4.1)
2596 machine=f301 opsys=uxpv
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin* )
2601 machine=powermac opsys=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw/include && test -d /sw/lib; then
2606 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2607 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-*-linux-gnu* )
2614 machine=amdx86-64 opsys=gnu-linux
2618 unported=yes
2620 esac
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2627 ### above.
2628 if test x"${opsys}" = x; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys=gnu ;;
2631 *-bsd4.[01] ) opsys=bsd4-1 ;;
2632 *-bsd4.2 ) opsys=bsd4-2 ;;
2633 *-bsd4.3 ) opsys=bsd4-3 ;;
2634 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2635 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2636 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2637 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2638 *-sysv4.2uw* ) opsys=unixware ;;
2639 *-sysv5uw* ) opsys=unixware ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware ;;
2641 *-sysv4.1* | *-sysvr4.1* )
2642 NON_GNU_CPP=/usr/lib/cpp
2643 opsys=usg5-4 ;;
2644 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2645 if [ x$NON_GNU_CPP = x ]; then
2646 if [ -f /usr/ccs/lib/cpp ]; then
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 else
2649 NON_GNU_CPP=/lib/cpp
2652 opsys=usg5-4-2 ;;
2653 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2655 unported=yes
2657 esac
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2670 machfile="m/${machine}.h"
2671 opsysfile="s/${opsys}.h"
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified=yes
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS="$CFLAGS"
2680 case ${with_gcc} in
2681 "yes" ) CC="gcc" GCC=yes ;;
2682 "no" ) : ${CC=cc} ;;
2684 esac
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2764 CC=$ac_ct_CC
2765 else
2766 CC="$ac_cv_prog_CC"
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2792 done
2793 done
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_CC"; then
2808 ac_ct_CC=$CC
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2844 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2873 ac_cv_prog_CC="cc"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$CC" && break
2944 done
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 test -n "$ac_ct_CC" && break
2986 done
2988 CC=$ac_ct_CC
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev/null >&5) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3032 return 0;
3034 _ACEOF
3035 ac_clean_files_save=$ac_clean_files
3036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3039 # of exeext.
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3050 # resort.
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3054 ac_cv_exeext=
3055 # b.out is created by i960 compilers.
3056 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3062 conftest.$ac_ext )
3063 # This is the source file.
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3074 export ac_cv_exeext
3075 break;;
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3091 ac_exeext=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 cross_compiling=no
3109 else
3110 if test "$cross_compiling" = maybe; then
3111 cross_compiling=yes
3112 else
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 # `rm'.
3146 for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 export ac_cv_exeext
3152 break;;
3153 * ) break;;
3154 esac
3155 done
3156 else
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3184 main ()
3188 return 0;
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203 done
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT=$ac_cv_objext
3220 ac_objext=$OBJEXT
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3234 main ()
3236 #ifndef __GNUC__
3237 choke me
3238 #endif
3241 return 0;
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_compiler_gnu=yes
3267 else
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 ac_compiler_gnu=no
3273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 CFLAGS="-g"
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3296 main ()
3300 return 0;
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_prog_cc_g=yes
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 ac_cv_prog_cc_g=no
3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3340 CFLAGS="-g -O2"
3341 else
3342 CFLAGS="-g"
3344 else
3345 if test "$GCC" = yes; then
3346 CFLAGS="-O2"
3347 else
3348 CFLAGS=
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 ac_cv_prog_cc_stdc=no
3357 ac_save_CC=$CC
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 #include <stdarg.h>
3365 #include <stdio.h>
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3372 char **p;
3373 int i;
3375 return p[i];
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3379 char *s;
3380 va_list v;
3381 va_start (v,p);
3382 s = g (p, va_arg (v,int));
3383 va_end (v);
3384 return s;
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 int argc;
3401 char **argv;
3403 main ()
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3407 return 0;
3409 _ACEOF
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc=$ac_arg
3443 break
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f conftest.err conftest.$ac_objext
3450 done
3451 rm -f conftest.$ac_ext conftest.$ac_objext
3452 CC=$ac_save_CC
3456 case "x$ac_cv_prog_cc_stdc" in
3457 x|xno)
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC="$CC $ac_cv_prog_cc_stdc" ;;
3464 esac
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #ifndef __cplusplus
3472 choke me
3473 #endif
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration in \
3498 '' \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3503 'void exit (int);'
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 $ac_declaration
3512 #include <stdlib.h>
3514 main ()
3516 exit (42);
3518 return 0;
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 continue
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_declaration
3559 main ()
3561 exit (42);
3563 return 0;
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 break
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 done
3596 rm -f conftest*
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3618 CPP=
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3625 then
3626 CPP="$NON_GNU_CPP"
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3633 test x$cc_specified != xyes
3634 then
3635 CC="$NON_GNU_CC"
3638 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3639 then
3640 CC="$CC $GCC_TEST_OPTIONS"
3643 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3644 then
3645 CC="$CC $NON_GCC_TEST_OPTIONS"
3648 #### Some other nice autoconf tests.
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3652 LN_S=$as_ln_s
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3670 CPP=
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 # Double quotes because CPP needs to be expanded
3677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3679 ac_preproc_ok=false
3680 for ac_c_preproc_warn_flag in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #ifdef __STDC__
3695 # include <limits.h>
3696 #else
3697 # include <assert.h>
3698 #endif
3699 Syntax error
3700 _ACEOF
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3715 else
3716 ac_cpp_err=yes
3718 if test -z "$ac_cpp_err"; then
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 # Broken: fails on valid input.
3725 continue
3727 rm -f conftest.err conftest.$ac_ext
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3738 _ACEOF
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev/null; then
3747 if test -s conftest.err; then
3748 ac_cpp_err=$ac_c_preproc_warn_flag
3749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3750 else
3751 ac_cpp_err=
3753 else
3754 ac_cpp_err=yes
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3758 continue
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3767 rm -f conftest.err conftest.$ac_ext
3769 done
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then
3773 break
3776 done
3777 ac_cv_prog_CPP=$CPP
3780 CPP=$ac_cv_prog_CPP
3781 else
3782 ac_cv_prog_CPP=$CPP
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806 Syntax error
3807 _ACEOF
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null; then
3816 if test -s conftest.err; then
3817 ac_cpp_err=$ac_c_preproc_warn_flag
3818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3819 else
3820 ac_cpp_err=
3822 else
3823 ac_cpp_err=yes
3825 if test -z "$ac_cpp_err"; then
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 # Broken: fails on valid input.
3832 continue
3834 rm -f conftest.err conftest.$ac_ext
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
3856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3857 else
3858 ac_cpp_err=
3860 else
3861 ac_cpp_err=yes
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 # Passes both tests.
3871 ac_preproc_ok=:
3872 break
3874 rm -f conftest.err conftest.$ac_ext
3876 done
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.$ac_ext
3879 if $ac_preproc_ok; then
3881 else
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3901 # AIX /bin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 # Account for people who put trailing slashes in PATH elements.
3920 case $as_dir/ in
3921 ./ | .// | /cC/* | \
3922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3923 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3924 /usr/ucb/* ) ;;
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3928 # by default.
3929 for ac_prog in ginstall scoinst install; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3936 elif test $ac_prog = install &&
3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3940 else
3941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942 break 3
3945 done
3946 done
3948 esac
3949 done
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL=$ac_cv_path_install
3955 else
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL=$ac_install_sh
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3974 if test "x$RANLIB" = x; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
4002 RANLIB=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4035 done
4036 done
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4050 RANLIB=$ac_ct_RANLIB
4051 else
4052 RANLIB="$ac_cv_prog_RANLIB"
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 case $INSTALL_INFO in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4083 esac
4085 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 case $INSTALL_INFO in
4103 [\\/]* | ?:[\\/]*)
4104 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in /usr/sbin
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4118 done
4119 done
4122 esac
4124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 case $INSTALL_INFO in
4142 [\\/]* | ?:[\\/]*)
4143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in /sbin
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4162 esac
4164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4176 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4177 then
4178 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4181 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4182 then
4183 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4187 late_LDFLAGS=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4190 else
4191 LDFLAGS="$LDFLAGS -znocombreloc"
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4197 cat >conftest.$ac_ext <<_ACEOF
4198 main(){return 0;}
4199 _ACEOF
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 LDFLAGS=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4232 rm -f conftest.err conftest.$ac_objext \
4233 conftest$ac_exeext conftest.$ac_ext
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4242 then ac_cv_prog_egrep='grep -E'
4243 else ac_cv_prog_egrep='egrep'
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP=$ac_cv_prog_egrep
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #ifdef _AIX
4262 #endif
4264 _ACEOF
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev/null 2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h <<\_ACEOF
4270 #define _ALL_SOURCE 1
4271 _ACEOF
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4277 rm -f conftest*
4282 #### Extract some information from the operating system and machine files.
4284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4285 - which libraries the lib-src programs will want, and
4286 - whether the GNU malloc routines are usable..." >&5
4287 echo "$as_me: checking the machine- and system-dependent files to find out
4288 - which libraries the lib-src programs will want, and
4289 - whether the GNU malloc routines are usable..." >&6;}
4291 ### First figure out CFLAGS (which we use for running the compiler here)
4292 ### and REAL_CFLAGS (which we use for real compilation).
4293 ### The two are the same except on a few systems, where they are made
4294 ### different to work around various lossages. For example,
4295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4296 ### as implying static linking.
4298 ### If the CFLAGS env var is specified, we use that value
4299 ### instead of the default.
4301 ### It's not important that this name contain the PID; you can't run
4302 ### two configures in the same directory and have anything work
4303 ### anyway.
4304 tempcname="conftest.c"
4306 echo '
4307 #include "'${srcdir}'/src/'${opsysfile}'"
4308 #include "'${srcdir}'/src/'${machfile}'"
4309 #ifndef LIBS_MACHINE
4310 #define LIBS_MACHINE
4311 #endif
4312 #ifndef LIBS_SYSTEM
4313 #define LIBS_SYSTEM
4314 #endif
4315 #ifndef C_SWITCH_SYSTEM
4316 #define C_SWITCH_SYSTEM
4317 #endif
4318 #ifndef C_SWITCH_MACHINE
4319 #define C_SWITCH_MACHINE
4320 #endif
4321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4322 configure___ c_switch_system=C_SWITCH_SYSTEM
4323 configure___ c_switch_machine=C_SWITCH_MACHINE
4325 #ifndef LIB_X11_LIB
4326 #define LIB_X11_LIB -lX11
4327 #endif
4329 #ifndef LIBX11_MACHINE
4330 #define LIBX11_MACHINE
4331 #endif
4333 #ifndef LIBX11_SYSTEM
4334 #define LIBX11_SYSTEM
4335 #endif
4336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4338 #ifdef UNEXEC
4339 configure___ unexec=UNEXEC
4340 #else
4341 configure___ unexec=unexec.o
4342 #endif
4344 #ifdef SYSTEM_MALLOC
4345 configure___ system_malloc=yes
4346 #else
4347 configure___ system_malloc=no
4348 #endif
4350 #ifdef USE_MMAP_FOR_BUFFERS
4351 configure___ use_mmap_for_buffers=yes
4352 #else
4353 configure___ use_mmap_for_buffers=no
4354 #endif
4356 #ifndef C_DEBUG_SWITCH
4357 #define C_DEBUG_SWITCH -g
4358 #endif
4360 #ifndef C_OPTIMIZE_SWITCH
4361 #ifdef __GNUC__
4362 #define C_OPTIMIZE_SWITCH -O2
4363 #else
4364 #define C_OPTIMIZE_SWITCH -O
4365 #endif
4366 #endif
4368 #ifndef LD_SWITCH_MACHINE
4369 #define LD_SWITCH_MACHINE
4370 #endif
4372 #ifndef LD_SWITCH_SYSTEM
4373 #define LD_SWITCH_SYSTEM
4374 #endif
4376 #ifndef LD_SWITCH_X_SITE_AUX
4377 #define LD_SWITCH_X_SITE_AUX
4378 #endif
4380 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4381 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4383 #ifdef THIS_IS_CONFIGURE
4385 /* Get the CFLAGS for tests in configure. */
4386 #ifdef __GNUC__
4387 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4388 #else
4389 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4390 #endif
4392 #else /* not THIS_IS_CONFIGURE */
4394 /* Get the CFLAGS for real compilation. */
4395 #ifdef __GNUC__
4396 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4397 #else
4398 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4399 #endif
4401 #endif /* not THIS_IS_CONFIGURE */
4402 ' > ${tempcname}
4404 # The value of CPP is a quoted variable reference, so we need to do this
4405 # to get its actual value...
4406 CPP=`eval "echo $CPP"`
4407 eval `${CPP} -Isrc ${tempcname} \
4408 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4409 if test "x$SPECIFIED_CFLAGS" = x; then
4410 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4411 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4412 else
4413 REAL_CFLAGS="$CFLAGS"
4415 rm ${tempcname}
4417 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4419 ### Make sure subsequent tests use flags consistent with the build flags.
4421 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4422 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4423 else
4424 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4430 cat >>confdefs.h <<\_ACEOF
4431 #define _GNU_SOURCE 1
4432 _ACEOF
4436 # Check whether --enable-largefile or --disable-largefile was given.
4437 if test "${enable_largefile+set}" = set; then
4438 enableval="$enable_largefile"
4441 if test "$enable_largefile" != no; then
4443 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4444 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4445 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_cv_sys_largefile_CC=no
4449 if test "$GCC" != yes; then
4450 ac_save_CC=$CC
4451 while :; do
4452 # IRIX 6.2 and later do not support large files by default,
4453 # so use the C compiler's -n32 option if that helps.
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4468 ? 1 : -1];
4470 main ()
4474 return 0;
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 break
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4505 rm -f conftest.err conftest.$ac_objext
4506 CC="$CC -n32"
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_largefile_CC=' -n32'; break
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4535 rm -f conftest.err conftest.$ac_objext
4536 break
4537 done
4538 CC=$ac_save_CC
4539 rm -f conftest.$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4543 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4544 if test "$ac_cv_sys_largefile_CC" != no; then
4545 CC=$CC$ac_cv_sys_largefile_CC
4548 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4549 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 while :; do
4554 ac_cv_sys_file_offset_bits=no
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4569 ? 1 : -1];
4571 main ()
4575 return 0;
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 break
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #define _FILE_OFFSET_BITS 64
4614 #include <sys/types.h>
4615 /* Check that off_t can represent 2**63 - 1 correctly.
4616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4617 since some C++ compilers masquerading as C compilers
4618 incorrectly reject 9223372036854775807. */
4619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4621 && LARGE_OFF_T % 2147483647 == 1)
4622 ? 1 : -1];
4624 main ()
4628 return 0;
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4653 ac_cv_sys_file_offset_bits=64; break
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4660 break
4661 done
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4664 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4665 if test "$ac_cv_sys_file_offset_bits" != no; then
4667 cat >>confdefs.h <<_ACEOF
4668 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4669 _ACEOF
4672 rm -f conftest*
4673 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4674 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4675 if test "${ac_cv_sys_large_files+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 while :; do
4679 ac_cv_sys_large_files=no
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4694 ? 1 : -1];
4696 main ()
4700 return 0;
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 break
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #define _LARGE_FILES 1
4739 #include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742 since some C++ compilers masquerading as C compilers
4743 incorrectly reject 9223372036854775807. */
4744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746 && LARGE_OFF_T % 2147483647 == 1)
4747 ? 1 : -1];
4749 main ()
4753 return 0;
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_sys_large_files=1; break
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 break
4786 done
4788 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4789 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4790 if test "$ac_cv_sys_large_files" != no; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define _LARGE_FILES $ac_cv_sys_large_files
4794 _ACEOF
4797 rm -f conftest*
4801 if test "${with_sound}" != "no"; then
4802 # Sound support for GNU/Linux and the free BSDs.
4803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4805 if test "${ac_cv_header_stdc+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <stdlib.h>
4815 #include <stdarg.h>
4816 #include <string.h>
4817 #include <float.h>
4820 main ()
4824 return 0;
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_header_stdc=yes
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 ac_cv_header_stdc=no
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858 if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <string.h>
4868 _ACEOF
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "memchr" >/dev/null 2>&1; then
4872 else
4873 ac_cv_header_stdc=no
4875 rm -f conftest*
4879 if test $ac_cv_header_stdc = yes; then
4880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <stdlib.h>
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev/null 2>&1; then
4893 else
4894 ac_cv_header_stdc=no
4896 rm -f conftest*
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then
4904 else
4905 cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <ctype.h>
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4915 #else
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4921 #endif
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4925 main ()
4927 int i;
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4931 exit(2);
4932 exit (0);
4934 _ACEOF
4935 rm -f conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4947 else
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 ( exit $ac_status )
4953 ac_cv_header_stdc=no
4955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4963 cat >>confdefs.h <<\_ACEOF
4964 #define STDC_HEADERS 1
4965 _ACEOF
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4980 inttypes.h stdint.h unistd.h
4982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4996 #include <$ac_header>
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_Header=yes"
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 eval "$as_ac_Header=no"
5027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5034 _ACEOF
5038 done
5044 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5055 else
5056 # Is the header compilable?
5057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag"
5078 || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 ac_header_compiler=yes
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 ac_header_compiler=no
5097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099 echo "${ECHO_T}$ac_header_compiler" >&6
5101 # Is the header present?
5102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <$ac_header>
5111 _ACEOF
5112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev/null; then
5120 if test -s conftest.err; then
5121 ac_cpp_err=$ac_c_preproc_warn_flag
5122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5123 else
5124 ac_cpp_err=
5126 else
5127 ac_cpp_err=yes
5129 if test -z "$ac_cpp_err"; then
5130 ac_header_preproc=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 ac_header_preproc=no
5137 rm -f conftest.err conftest.$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139 echo "${ECHO_T}$ac_header_preproc" >&6
5141 # So? What about this header?
5142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5143 yes:no: )
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148 ac_header_preproc=yes
5150 no:yes:* )
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5164 cat <<\_ASBOX
5165 ## ------------------------------------------ ##
5166 ## Report this to the AC_PACKAGE_NAME lists. ##
5167 ## ------------------------------------------ ##
5168 _ASBOX
5170 sed "s/^/$as_me: WARNING: /" >&2
5172 esac
5173 echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 eval "$as_ac_Header=\$ac_header_preproc"
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h <<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187 _ACEOF
5191 done
5193 # Emulation library used on NetBSD.
5194 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5195 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 ac_check_lib_save_LIBS=$LIBS
5200 LIBS="-lossaudio $LIBS"
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 #ifdef __cplusplus
5210 extern "C"
5211 #endif
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5214 char _oss_ioctl ();
5216 main ()
5218 _oss_ioctl ();
5220 return 0;
5222 _ACEOF
5223 rm -f conftest.$ac_objext conftest$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -z "$ac_c_werror_flag"
5233 || 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=
5291 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5292 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5293 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5294 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5295 sys/utsname.h
5297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5299 echo "$as_me:$LINENO: checking for $ac_header" >&5
5300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5306 else
5307 # Is the header compilable?
5308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 $ac_includes_default
5317 #include <$ac_header>
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321 (eval $ac_compile) 2>conftest.er1
5322 ac_status=$?
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -z "$ac_c_werror_flag"
5329 || 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"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 emacs_cv_personality_linux32=yes
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 emacs_cv_personality_linux32=no
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5493 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5495 if test $emacs_cv_personality_linux32 = yes; then
5497 cat >>confdefs.h <<\_ACEOF
5498 #define HAVE_PERSONALITY_LINUX32 1
5499 _ACEOF
5504 for ac_header in term.h
5506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5507 echo "$as_me:$LINENO: checking for $ac_header" >&5
5508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <$ac_header>
5519 _ACEOF
5520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } >/dev/null; then
5528 if test -s conftest.err; then
5529 ac_cpp_err=$ac_c_preproc_warn_flag
5530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5531 else
5532 ac_cpp_err=
5534 else
5535 ac_cpp_err=yes
5537 if test -z "$ac_cpp_err"; then
5538 eval "$as_ac_Header=yes"
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 eval "$as_ac_Header=no"
5545 rm -f conftest.err conftest.$ac_ext
5547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5550 cat >>confdefs.h <<_ACEOF
5551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5552 _ACEOF
5556 done
5558 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5559 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5560 if test "${ac_cv_header_stdc+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 #include <stdlib.h>
5570 #include <stdarg.h>
5571 #include <string.h>
5572 #include <float.h>
5575 main ()
5579 return 0;
5581 _ACEOF
5582 rm -f conftest.$ac_objext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_cv_header_stdc=yes
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_cv_header_stdc=no
5611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5613 if test $ac_cv_header_stdc = yes; then
5614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #include <string.h>
5623 _ACEOF
5624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5625 $EGREP "memchr" >/dev/null 2>&1; then
5627 else
5628 ac_cv_header_stdc=no
5630 rm -f conftest*
5634 if test $ac_cv_header_stdc = yes; then
5635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <stdlib.h>
5644 _ACEOF
5645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5646 $EGREP "free" >/dev/null 2>&1; then
5648 else
5649 ac_cv_header_stdc=no
5651 rm -f conftest*
5655 if test $ac_cv_header_stdc = yes; then
5656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5657 if test "$cross_compiling" = yes; then
5659 else
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <ctype.h>
5667 #if ((' ' & 0x0FF) == 0x020)
5668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5670 #else
5671 # define ISLOWER(c) \
5672 (('a' <= (c) && (c) <= 'i') \
5673 || ('j' <= (c) && (c) <= 'r') \
5674 || ('s' <= (c) && (c) <= 'z'))
5675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5676 #endif
5678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5680 main ()
5682 int i;
5683 for (i = 0; i < 256; i++)
5684 if (XOR (islower (i), ISLOWER (i))
5685 || toupper (i) != TOUPPER (i))
5686 exit(2);
5687 exit (0);
5689 _ACEOF
5690 rm -f conftest$ac_exeext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5692 (eval $ac_link) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5702 else
5703 echo "$as_me: program exited with status $ac_status" >&5
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 ( exit $ac_status )
5708 ac_cv_header_stdc=no
5710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5714 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5715 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5716 if test $ac_cv_header_stdc = yes; then
5718 cat >>confdefs.h <<\_ACEOF
5719 #define STDC_HEADERS 1
5720 _ACEOF
5724 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5725 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5726 if test "${ac_cv_header_time+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <sys/types.h>
5736 #include <sys/time.h>
5737 #include <time.h>
5740 main ()
5742 if ((struct tm *) 0)
5743 return 0;
5745 return 0;
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>conftest.er1
5751 ac_status=$?
5752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -z "$ac_c_werror_flag"
5758 || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_header_time=yes
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 ac_cv_header_time=no
5777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5780 echo "${ECHO_T}$ac_cv_header_time" >&6
5781 if test $ac_cv_header_time = yes; then
5783 cat >>confdefs.h <<\_ACEOF
5784 #define TIME_WITH_SYS_TIME 1
5785 _ACEOF
5789 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5790 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5791 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5802 main ()
5804 #ifndef sys_siglist
5805 char *p = (char *) sys_siglist;
5806 #endif
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 ac_cv_have_decl_sys_siglist=yes
5835 else
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 ac_cv_have_decl_sys_siglist=no
5841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5844 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5845 if test $ac_cv_have_decl_sys_siglist = yes; then
5847 cat >>confdefs.h <<_ACEOF
5848 #define HAVE_DECL_SYS_SIGLIST 1
5849 _ACEOF
5852 else
5853 cat >>confdefs.h <<_ACEOF
5854 #define HAVE_DECL_SYS_SIGLIST 0
5855 _ACEOF
5861 if test $ac_cv_have_decl_sys_siglist != yes; then
5862 # For Tru64, at least:
5863 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5864 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5865 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 $ac_includes_default
5876 main ()
5878 #ifndef __sys_siglist
5879 char *p = (char *) __sys_siglist;
5880 #endif
5883 return 0;
5885 _ACEOF
5886 rm -f conftest.$ac_objext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } &&
5895 { ac_try='test -z "$ac_c_werror_flag"
5896 || test ! -s conftest.err'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_cv_have_decl___sys_siglist=yes
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_cv_have_decl___sys_siglist=no
5915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5917 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5918 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5919 if test $ac_cv_have_decl___sys_siglist = yes; then
5921 cat >>confdefs.h <<_ACEOF
5922 #define HAVE_DECL___SYS_SIGLIST 1
5923 _ACEOF
5926 else
5927 cat >>confdefs.h <<_ACEOF
5928 #define HAVE_DECL___SYS_SIGLIST 0
5929 _ACEOF
5935 if test $ac_cv_have_decl___sys_siglist = yes; then
5937 cat >>confdefs.h <<\_ACEOF
5938 #define sys_siglist __sys_siglist
5939 _ACEOF
5943 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5944 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5945 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <sys/types.h>
5955 #include <sys/wait.h>
5956 #ifndef WEXITSTATUS
5957 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5958 #endif
5959 #ifndef WIFEXITED
5960 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5961 #endif
5964 main ()
5966 int s;
5967 wait (&s);
5968 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5970 return 0;
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
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); }; } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_header_sys_wait_h=yes
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 ac_cv_header_sys_wait_h=no
6002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6005 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6006 if test $ac_cv_header_sys_wait_h = yes; then
6008 cat >>confdefs.h <<\_ACEOF
6009 #define HAVE_SYS_WAIT_H 1
6010 _ACEOF
6015 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6016 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6017 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #ifdef TIME_WITH_SYS_TIME
6027 #include <sys/time.h>
6028 #include <time.h>
6029 #else
6030 #ifdef HAVE_SYS_TIME_H
6031 #include <sys/time.h>
6032 #else
6033 #include <time.h>
6034 #endif
6035 #endif
6036 #ifdef HAVE_UTIME_H
6037 #include <utime.h>
6038 #endif
6040 main ()
6042 static struct utimbuf x; x.actime = x.modtime;
6044 return 0;
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -z "$ac_c_werror_flag"
6057 || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 emacs_cv_struct_utimbuf=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 emacs_cv_struct_utimbuf=no
6076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6079 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6080 if test $emacs_cv_struct_utimbuf = yes; then
6082 cat >>confdefs.h <<\_ACEOF
6083 #define HAVE_STRUCT_UTIMBUF 1
6084 _ACEOF
6088 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6089 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6090 if test "${ac_cv_type_signal+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #include <sys/types.h>
6100 #include <signal.h>
6101 #ifdef signal
6102 # undef signal
6103 #endif
6104 #ifdef __cplusplus
6105 extern "C" void (*signal (int, void (*)(int)))(int);
6106 #else
6107 void (*signal ()) ();
6108 #endif
6111 main ()
6113 int i;
6115 return 0;
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest.$ac_objext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_type_signal=void
6141 else
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 ac_cv_type_signal=int
6147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6150 echo "${ECHO_T}$ac_cv_type_signal" >&6
6152 cat >>confdefs.h <<_ACEOF
6153 #define RETSIGTYPE $ac_cv_type_signal
6154 _ACEOF
6158 echo "$as_me:$LINENO: checking for speed_t" >&5
6159 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6160 if test "${emacs_cv_speed_t+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <termios.h>
6171 main ()
6173 speed_t x = 1;
6175 return 0;
6177 _ACEOF
6178 rm -f conftest.$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 emacs_cv_speed_t=yes
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 emacs_cv_speed_t=no
6207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6209 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6210 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6211 if test $emacs_cv_speed_t = yes; then
6213 cat >>confdefs.h <<\_ACEOF
6214 #define HAVE_SPEED_T 1
6215 _ACEOF
6219 echo "$as_me:$LINENO: checking for struct timeval" >&5
6220 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6221 if test "${emacs_cv_struct_timeval+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #ifdef TIME_WITH_SYS_TIME
6231 #include <sys/time.h>
6232 #include <time.h>
6233 #else
6234 #ifdef HAVE_SYS_TIME_H
6235 #include <sys/time.h>
6236 #else
6237 #include <time.h>
6238 #endif
6239 #endif
6241 main ()
6243 static struct timeval x; x.tv_sec = x.tv_usec;
6245 return 0;
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 emacs_cv_struct_timeval=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 emacs_cv_struct_timeval=no
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6280 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6281 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6282 if test $emacs_cv_struct_timeval = yes; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define HAVE_TIMEVAL 1
6286 _ACEOF
6290 echo "$as_me:$LINENO: checking for struct exception" >&5
6291 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6292 if test "${emacs_cv_struct_exception+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 #include <math.h>
6303 main ()
6305 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6307 return 0;
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 emacs_cv_struct_exception=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 emacs_cv_struct_exception=no
6339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6342 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6343 HAVE_EXCEPTION=$emacs_cv_struct_exception
6344 if test $emacs_cv_struct_exception != yes; then
6346 cat >>confdefs.h <<\_ACEOF
6347 #define NO_MATHERR 1
6348 _ACEOF
6353 for ac_header in sys/socket.h
6355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6357 echo "$as_me:$LINENO: checking for $ac_header" >&5
6358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6364 else
6365 # Is the header compilable?
6366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 $ac_includes_default
6375 #include <$ac_header>
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379 (eval $ac_compile) 2>conftest.er1
6380 ac_status=$?
6381 grep -v '^ *+' conftest.er1 >conftest.err
6382 rm -f conftest.er1
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -z "$ac_c_werror_flag"
6387 || test ! -s conftest.err'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; } &&
6393 { ac_try='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_header_compiler=yes
6400 else
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_header_compiler=no
6406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6408 echo "${ECHO_T}$ac_header_compiler" >&6
6410 # Is the header present?
6411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 #include <$ac_header>
6420 _ACEOF
6421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6423 ac_status=$?
6424 grep -v '^ *+' conftest.er1 >conftest.err
6425 rm -f conftest.er1
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } >/dev/null; then
6429 if test -s conftest.err; then
6430 ac_cpp_err=$ac_c_preproc_warn_flag
6431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6432 else
6433 ac_cpp_err=
6435 else
6436 ac_cpp_err=yes
6438 if test -z "$ac_cpp_err"; then
6439 ac_header_preproc=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_header_preproc=no
6446 rm -f conftest.err conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6448 echo "${ECHO_T}$ac_header_preproc" >&6
6450 # So? What about this header?
6451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6452 yes:no: )
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6457 ac_header_preproc=yes
6459 no:yes:* )
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6473 cat <<\_ASBOX
6474 ## ------------------------------------------ ##
6475 ## Report this to the AC_PACKAGE_NAME lists. ##
6476 ## ------------------------------------------ ##
6477 _ASBOX
6479 sed "s/^/$as_me: WARNING: /" >&2
6481 esac
6482 echo "$as_me:$LINENO: checking for $ac_header" >&5
6483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 eval "$as_ac_Header=\$ac_header_preproc"
6489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6496 _ACEOF
6500 done
6503 for ac_header in net/if.h
6505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 echo "$as_me:$LINENO: checking for $ac_header" >&5
6507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6518 #if HAVE_SYS_SOCKET_H
6519 #include <sys/socket.h>
6520 #endif
6522 #include <$ac_header>
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -z "$ac_c_werror_flag"
6534 || test ! -s conftest.err'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 eval "$as_ac_Header=yes"
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 eval "$as_ac_Header=no"
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558 cat >>confdefs.h <<_ACEOF
6559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560 _ACEOF
6564 done
6567 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6568 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6569 if test "${ac_cv_struct_tm+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 #include <sys/types.h>
6579 #include <time.h>
6582 main ()
6584 struct tm *tp; tp->tm_sec;
6586 return 0;
6588 _ACEOF
6589 rm -f conftest.$ac_objext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591 (eval $ac_compile) 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -z "$ac_c_werror_flag"
6599 || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_cv_struct_tm=time.h
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 ac_cv_struct_tm=sys/time.h
6618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6621 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6622 if test $ac_cv_struct_tm = sys/time.h; then
6624 cat >>confdefs.h <<\_ACEOF
6625 #define TM_IN_SYS_TIME 1
6626 _ACEOF
6630 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6631 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6632 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <sys/types.h>
6642 #include <$ac_cv_struct_tm>
6646 main ()
6648 static struct tm ac_aggr;
6649 if (ac_aggr.tm_zone)
6650 return 0;
6652 return 0;
6654 _ACEOF
6655 rm -f conftest.$ac_objext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657 (eval $ac_compile) 2>conftest.er1
6658 ac_status=$?
6659 grep -v '^ *+' conftest.er1 >conftest.err
6660 rm -f conftest.er1
6661 cat conftest.err >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } &&
6664 { ac_try='test -z "$ac_c_werror_flag"
6665 || test ! -s conftest.err'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; } &&
6671 { ac_try='test -s conftest.$ac_objext'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6677 ac_cv_member_struct_tm_tm_zone=yes
6678 else
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <sys/types.h>
6689 #include <$ac_cv_struct_tm>
6693 main ()
6695 static struct tm ac_aggr;
6696 if (sizeof ac_aggr.tm_zone)
6697 return 0;
6699 return 0;
6701 _ACEOF
6702 rm -f conftest.$ac_objext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704 (eval $ac_compile) 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -z "$ac_c_werror_flag"
6712 || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_member_struct_tm_tm_zone=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_member_struct_tm_tm_zone=no
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6735 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6736 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6737 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6739 cat >>confdefs.h <<_ACEOF
6740 #define HAVE_STRUCT_TM_TM_ZONE 1
6741 _ACEOF
6746 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_TM_ZONE 1
6750 _ACEOF
6752 else
6753 echo "$as_me:$LINENO: checking for tzname" >&5
6754 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6755 if test "${ac_cv_var_tzname+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <time.h>
6765 #ifndef tzname /* For SGI. */
6766 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6767 #endif
6770 main ()
6772 atoi(*tzname);
6774 return 0;
6776 _ACEOF
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6779 (eval $ac_link) 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try='test -z "$ac_c_werror_flag"
6787 || test ! -s conftest.err'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; } &&
6793 { ac_try='test -s conftest$ac_exeext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 ac_cv_var_tzname=yes
6800 else
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ac_cv_var_tzname=no
6806 rm -f conftest.err conftest.$ac_objext \
6807 conftest$ac_exeext conftest.$ac_ext
6809 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6810 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6811 if test $ac_cv_var_tzname = yes; then
6813 cat >>confdefs.h <<\_ACEOF
6814 #define HAVE_TZNAME 1
6815 _ACEOF
6820 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6821 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6822 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 #include <time.h>
6834 main ()
6836 static struct tm ac_aggr;
6837 if (ac_aggr.tm_gmtoff)
6838 return 0;
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -z "$ac_c_werror_flag"
6853 || test ! -s conftest.err'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 ac_cv_member_struct_tm_tm_gmtoff=yes
6866 else
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 #include <time.h>
6879 main ()
6881 static struct tm ac_aggr;
6882 if (sizeof ac_aggr.tm_gmtoff)
6883 return 0;
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_cv_member_struct_tm_tm_gmtoff=yes
6911 else
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6915 ac_cv_member_struct_tm_tm_gmtoff=no
6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6922 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6923 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6925 cat >>confdefs.h <<\_ACEOF
6926 #define HAVE_TM_GMTOFF 1
6927 _ACEOF
6931 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6932 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6933 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6943 #if HAVE_SYS_SOCKET_H
6944 #include <sys/socket.h>
6945 #endif
6946 #if HAVE_NET_IF_H
6947 #include <net/if.h>
6948 #endif
6951 main ()
6953 static struct ifreq ac_aggr;
6954 if (ac_aggr.ifr_flags)
6955 return 0;
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_cv_member_struct_ifreq_ifr_flags=yes
6983 else
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 #if HAVE_SYS_SOCKET_H
6995 #include <sys/socket.h>
6996 #endif
6997 #if HAVE_NET_IF_H
6998 #include <net/if.h>
6999 #endif
7002 main ()
7004 static struct ifreq ac_aggr;
7005 if (sizeof ac_aggr.ifr_flags)
7006 return 0;
7008 return 0;
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest.$ac_objext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_cv_member_struct_ifreq_ifr_flags=yes
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_cv_member_struct_ifreq_ifr_flags=no
7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7045 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7046 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7048 cat >>confdefs.h <<_ACEOF
7049 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7050 _ACEOF
7054 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7055 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7056 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 $ac_includes_default
7066 #if HAVE_SYS_SOCKET_H
7067 #include <sys/socket.h>
7068 #endif
7069 #if HAVE_NET_IF_H
7070 #include <net/if.h>
7071 #endif
7074 main ()
7076 static struct ifreq ac_aggr;
7077 if (ac_aggr.ifr_hwaddr)
7078 return 0;
7080 return 0;
7082 _ACEOF
7083 rm -f conftest.$ac_objext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7085 (eval $ac_compile) 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } &&
7092 { ac_try='test -z "$ac_c_werror_flag"
7093 || test ! -s conftest.err'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; } &&
7099 { ac_try='test -s conftest.$ac_objext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7106 else
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7117 #if HAVE_SYS_SOCKET_H
7118 #include <sys/socket.h>
7119 #endif
7120 #if HAVE_NET_IF_H
7121 #include <net/if.h>
7122 #endif
7125 main ()
7127 static struct ifreq ac_aggr;
7128 if (sizeof ac_aggr.ifr_hwaddr)
7129 return 0;
7131 return 0;
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136 (eval $ac_compile) 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -z "$ac_c_werror_flag"
7144 || test ! -s conftest.err'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; } &&
7150 { ac_try='test -s conftest.$ac_objext'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7156 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7157 else
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7168 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7169 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7171 cat >>confdefs.h <<_ACEOF
7172 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7173 _ACEOF
7177 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7178 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7179 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 $ac_includes_default
7189 #if HAVE_SYS_SOCKET_H
7190 #include <sys/socket.h>
7191 #endif
7192 #if HAVE_NET_IF_H
7193 #include <net/if.h>
7194 #endif
7197 main ()
7199 static struct ifreq ac_aggr;
7200 if (ac_aggr.ifr_netmask)
7201 return 0;
7203 return 0;
7205 _ACEOF
7206 rm -f conftest.$ac_objext
7207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7208 (eval $ac_compile) 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } &&
7215 { ac_try='test -z "$ac_c_werror_flag"
7216 || test ! -s conftest.err'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; } &&
7222 { ac_try='test -s conftest.$ac_objext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 ac_cv_member_struct_ifreq_ifr_netmask=yes
7229 else
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 $ac_includes_default
7240 #if HAVE_SYS_SOCKET_H
7241 #include <sys/socket.h>
7242 #endif
7243 #if HAVE_NET_IF_H
7244 #include <net/if.h>
7245 #endif
7248 main ()
7250 static struct ifreq ac_aggr;
7251 if (sizeof ac_aggr.ifr_netmask)
7252 return 0;
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -z "$ac_c_werror_flag"
7267 || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_member_struct_ifreq_ifr_netmask=yes
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_cv_member_struct_ifreq_ifr_netmask=no
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7290 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7291 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7292 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7294 cat >>confdefs.h <<_ACEOF
7295 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7296 _ACEOF
7300 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7301 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7302 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7312 #if HAVE_SYS_SOCKET_H
7313 #include <sys/socket.h>
7314 #endif
7315 #if HAVE_NET_IF_H
7316 #include <net/if.h>
7317 #endif
7320 main ()
7322 static struct ifreq ac_aggr;
7323 if (ac_aggr.ifr_broadaddr)
7324 return 0;
7326 return 0;
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331 (eval $ac_compile) 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -z "$ac_c_werror_flag"
7339 || test ! -s conftest.err'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; } &&
7345 { ac_try='test -s conftest.$ac_objext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7352 else
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7363 #if HAVE_SYS_SOCKET_H
7364 #include <sys/socket.h>
7365 #endif
7366 #if HAVE_NET_IF_H
7367 #include <net/if.h>
7368 #endif
7371 main ()
7373 static struct ifreq ac_aggr;
7374 if (sizeof ac_aggr.ifr_broadaddr)
7375 return 0;
7377 return 0;
7379 _ACEOF
7380 rm -f conftest.$ac_objext
7381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7382 (eval $ac_compile) 2>conftest.er1
7383 ac_status=$?
7384 grep -v '^ *+' conftest.er1 >conftest.err
7385 rm -f conftest.er1
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } &&
7389 { ac_try='test -z "$ac_c_werror_flag"
7390 || test ! -s conftest.err'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; } &&
7396 { ac_try='test -s conftest.$ac_objext'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7414 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7415 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7417 cat >>confdefs.h <<_ACEOF
7418 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7419 _ACEOF
7423 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7424 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7425 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 $ac_includes_default
7435 #if HAVE_SYS_SOCKET_H
7436 #include <sys/socket.h>
7437 #endif
7438 #if HAVE_NET_IF_H
7439 #include <net/if.h>
7440 #endif
7443 main ()
7445 static struct ifreq ac_aggr;
7446 if (ac_aggr.ifr_addr)
7447 return 0;
7449 return 0;
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454 (eval $ac_compile) 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } &&
7461 { ac_try='test -z "$ac_c_werror_flag"
7462 || test ! -s conftest.err'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; } &&
7468 { ac_try='test -s conftest.$ac_objext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7474 ac_cv_member_struct_ifreq_ifr_addr=yes
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h. */
7481 _ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 $ac_includes_default
7486 #if HAVE_SYS_SOCKET_H
7487 #include <sys/socket.h>
7488 #endif
7489 #if HAVE_NET_IF_H
7490 #include <net/if.h>
7491 #endif
7494 main ()
7496 static struct ifreq ac_aggr;
7497 if (sizeof ac_aggr.ifr_addr)
7498 return 0;
7500 return 0;
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -z "$ac_c_werror_flag"
7513 || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 (eval $ac_try) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 (eval $ac_try) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 ac_cv_member_struct_ifreq_ifr_addr=yes
7526 else
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_cv_member_struct_ifreq_ifr_addr=no
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7537 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7538 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7540 cat >>confdefs.h <<_ACEOF
7541 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7542 _ACEOF
7549 echo "$as_me:$LINENO: checking for function prototypes" >&5
7550 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7551 if test "$ac_cv_prog_cc_stdc" != no; then
7552 echo "$as_me:$LINENO: result: yes" >&5
7553 echo "${ECHO_T}yes" >&6
7555 cat >>confdefs.h <<\_ACEOF
7556 #define PROTOTYPES 1
7557 _ACEOF
7560 cat >>confdefs.h <<\_ACEOF
7561 #define __PROTOTYPES 1
7562 _ACEOF
7564 else
7565 echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7569 echo "$as_me:$LINENO: checking for working volatile" >&5
7570 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7571 if test "${ac_cv_c_volatile+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h. */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7582 main ()
7585 volatile int x;
7586 int * volatile y;
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>conftest.er1
7594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -z "$ac_c_werror_flag"
7601 || test ! -s conftest.err'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 (eval $ac_try) 2>&5
7604 ac_status=$?
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 (eval $ac_try) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7613 ac_cv_c_volatile=yes
7614 else
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7618 ac_cv_c_volatile=no
7620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7623 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7624 if test $ac_cv_c_volatile = no; then
7626 cat >>confdefs.h <<\_ACEOF
7627 #define volatile
7628 _ACEOF
7632 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7633 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7634 if test "${ac_cv_c_const+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7645 main ()
7647 /* FIXME: Include the comments suggested by Paul. */
7648 #ifndef __cplusplus
7649 /* Ultrix mips cc rejects this. */
7650 typedef int charset[2];
7651 const charset x;
7652 /* SunOS 4.1.1 cc rejects this. */
7653 char const *const *ccp;
7654 char **p;
7655 /* NEC SVR4.0.2 mips cc rejects this. */
7656 struct point {int x, y;};
7657 static struct point const zero = {0,0};
7658 /* AIX XL C 1.02.0.0 rejects this.
7659 It does not let you subtract one const X* pointer from another in
7660 an arm of an if-expression whose if-part is not a constant
7661 expression */
7662 const char *g = "string";
7663 ccp = &g + (g ? g-g : 0);
7664 /* HPUX 7.0 cc rejects these. */
7665 ++ccp;
7666 p = (char**) ccp;
7667 ccp = (char const *const *) p;
7668 { /* SCO 3.2v4 cc rejects this. */
7669 char *t;
7670 char const *s = 0 ? (char *) 0 : (char const *) 0;
7672 *t++ = 0;
7674 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7675 int x[] = {25, 17};
7676 const int *foo = &x[0];
7677 ++foo;
7679 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7680 typedef const int *iptr;
7681 iptr p = 0;
7682 ++p;
7684 { /* AIX XL C 1.02.0.0 rejects this saying
7685 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7686 struct s { int j; const int *ap[3]; };
7687 struct s *b; b->j = 5;
7689 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7690 const int foo = 10;
7692 #endif
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_c_const=yes
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 ac_cv_c_const=no
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7730 echo "${ECHO_T}$ac_cv_c_const" >&6
7731 if test $ac_cv_c_const = no; then
7733 cat >>confdefs.h <<\_ACEOF
7734 #define const
7735 _ACEOF
7739 echo "$as_me:$LINENO: checking for void * support" >&5
7740 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7741 if test "${emacs_cv_void_star+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7752 main ()
7754 void * foo;
7756 return 0;
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 emacs_cv_void_star=yes
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 emacs_cv_void_star=no
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7791 echo "${ECHO_T}$emacs_cv_void_star" >&6
7792 if test $emacs_cv_void_star = yes; then
7793 cat >>confdefs.h <<\_ACEOF
7794 #define POINTER_TYPE void
7795 _ACEOF
7797 else
7798 cat >>confdefs.h <<\_ACEOF
7799 #define POINTER_TYPE char
7800 _ACEOF
7808 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7809 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7810 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7811 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 cat >conftest.make <<\_ACEOF
7815 all:
7816 @echo 'ac_maketemp="$(MAKE)"'
7817 _ACEOF
7818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7819 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7820 if test -n "$ac_maketemp"; then
7821 eval ac_cv_prog_make_${ac_make}_set=yes
7822 else
7823 eval ac_cv_prog_make_${ac_make}_set=no
7825 rm -f conftest.make
7827 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7828 echo "$as_me:$LINENO: result: yes" >&5
7829 echo "${ECHO_T}yes" >&6
7830 SET_MAKE=
7831 else
7832 echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6
7834 SET_MAKE="MAKE=${MAKE-make}"
7838 echo "$as_me:$LINENO: checking for long file names" >&5
7839 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7840 if test "${ac_cv_sys_long_file_names+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 ac_cv_sys_long_file_names=yes
7844 # Test for long file names in all the places we know might matter:
7845 # . the current directory, where building will happen
7846 # $prefix/lib where we will be installing things
7847 # $exec_prefix/lib likewise
7848 # eval it to expand exec_prefix.
7849 # $TMPDIR if set, where it might want to write temporary files
7850 # if $TMPDIR is not set:
7851 # /tmp where it might want to write temporary files
7852 # /var/tmp likewise
7853 # /usr/tmp likewise
7854 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7855 ac_tmpdirs=$TMPDIR
7856 else
7857 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7859 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7860 test -d $ac_dir || continue
7861 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7862 ac_xdir=$ac_dir/cf$$
7863 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7864 ac_tf1=$ac_xdir/conftest9012345
7865 ac_tf2=$ac_xdir/conftest9012346
7866 (echo 1 >$ac_tf1) 2>/dev/null
7867 (echo 2 >$ac_tf2) 2>/dev/null
7868 ac_val=`cat $ac_tf1 2>/dev/null`
7869 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7870 ac_cv_sys_long_file_names=no
7871 rm -rf $ac_xdir 2>/dev/null
7872 break
7874 rm -rf $ac_xdir 2>/dev/null
7875 done
7877 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7878 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7879 if test $ac_cv_sys_long_file_names = yes; then
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_LONG_FILE_NAMES 1
7883 _ACEOF
7888 #### Choose a window system.
7890 echo "$as_me:$LINENO: checking for X" >&5
7891 echo $ECHO_N "checking for X... $ECHO_C" >&6
7894 # Check whether --with-x or --without-x was given.
7895 if test "${with_x+set}" = set; then
7896 withval="$with_x"
7899 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7900 if test "x$with_x" = xno; then
7901 # The user explicitly disabled X.
7902 have_x=disabled
7903 else
7904 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7905 # Both variables are already set.
7906 have_x=yes
7907 else
7908 if test "${ac_cv_have_x+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 # One or both of the vars are not set, and there is no cached value.
7912 ac_x_includes=no ac_x_libraries=no
7913 rm -fr conftest.dir
7914 if mkdir conftest.dir; then
7915 cd conftest.dir
7916 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7917 cat >Imakefile <<'_ACEOF'
7918 acfindx:
7919 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7920 _ACEOF
7921 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7923 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7924 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7925 for ac_extension in a so sl; do
7926 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7927 test -f $ac_im_libdir/libX11.$ac_extension; then
7928 ac_im_usrlibdir=$ac_im_libdir; break
7930 done
7931 # Screen out bogus values from the imake configuration. They are
7932 # bogus both because they are the default anyway, and because
7933 # using them would break gcc on systems where it needs fixed includes.
7934 case $ac_im_incroot in
7935 /usr/include) ;;
7936 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7937 esac
7938 case $ac_im_usrlibdir in
7939 /usr/lib | /lib) ;;
7940 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7941 esac
7943 cd ..
7944 rm -fr conftest.dir
7947 # Standard set of common directories for X headers.
7948 # Check X11 before X11Rn because it is often a symlink to the current release.
7949 ac_x_header_dirs='
7950 /usr/X11/include
7951 /usr/X11R6/include
7952 /usr/X11R5/include
7953 /usr/X11R4/include
7955 /usr/include/X11
7956 /usr/include/X11R6
7957 /usr/include/X11R5
7958 /usr/include/X11R4
7960 /usr/local/X11/include
7961 /usr/local/X11R6/include
7962 /usr/local/X11R5/include
7963 /usr/local/X11R4/include
7965 /usr/local/include/X11
7966 /usr/local/include/X11R6
7967 /usr/local/include/X11R5
7968 /usr/local/include/X11R4
7970 /usr/X386/include
7971 /usr/x386/include
7972 /usr/XFree86/include/X11
7974 /usr/include
7975 /usr/local/include
7976 /usr/unsupported/include
7977 /usr/athena/include
7978 /usr/local/x11r5/include
7979 /usr/lpp/Xamples/include
7981 /usr/openwin/include
7982 /usr/openwin/share/include'
7984 if test "$ac_x_includes" = no; then
7985 # Guess where to find include files, by looking for Intrinsic.h.
7986 # First, try using that file with no special directory specified.
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <X11/Intrinsic.h>
7994 _ACEOF
7995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } >/dev/null; then
8003 if test -s conftest.err; then
8004 ac_cpp_err=$ac_c_preproc_warn_flag
8005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8006 else
8007 ac_cpp_err=
8009 else
8010 ac_cpp_err=yes
8012 if test -z "$ac_cpp_err"; then
8013 # We can compile using X headers with no special include directory.
8014 ac_x_includes=
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 for ac_dir in $ac_x_header_dirs; do
8020 if test -r "$ac_dir/X11/Intrinsic.h"; then
8021 ac_x_includes=$ac_dir
8022 break
8024 done
8026 rm -f conftest.err conftest.$ac_ext
8027 fi # $ac_x_includes = no
8029 if test "$ac_x_libraries" = no; then
8030 # Check for the libraries.
8031 # See if we find them without any special options.
8032 # Don't add to $LIBS permanently.
8033 ac_save_LIBS=$LIBS
8034 LIBS="-lXt $LIBS"
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 #include <X11/Intrinsic.h>
8043 main ()
8045 XtMalloc (0)
8047 return 0;
8049 _ACEOF
8050 rm -f conftest.$ac_objext conftest$ac_exeext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052 (eval $ac_link) 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag"
8060 || test ! -s conftest.err'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 LIBS=$ac_save_LIBS
8073 # We can link X programs with no special library path.
8074 ac_x_libraries=
8075 else
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 LIBS=$ac_save_LIBS
8080 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8082 # Don't even attempt the hair of trying to link an X program!
8083 for ac_extension in a so sl; do
8084 if test -r $ac_dir/libXt.$ac_extension; then
8085 ac_x_libraries=$ac_dir
8086 break 2
8088 done
8089 done
8091 rm -f conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
8093 fi # $ac_x_libraries = no
8095 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8096 # Didn't find X anywhere. Cache the known absence of X.
8097 ac_cv_have_x="have_x=no"
8098 else
8099 # Record where we found X for the cache.
8100 ac_cv_have_x="have_x=yes \
8101 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8106 eval "$ac_cv_have_x"
8107 fi # $with_x != no
8109 if test "$have_x" != yes; then
8110 echo "$as_me:$LINENO: result: $have_x" >&5
8111 echo "${ECHO_T}$have_x" >&6
8112 no_x=yes
8113 else
8114 # If each of the values was on the command line, it overrides each guess.
8115 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8116 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8117 # Update the cache value to reflect the command line values.
8118 ac_cv_have_x="have_x=yes \
8119 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8120 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8121 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8124 if test "$no_x" = yes; then
8125 window_system=none
8126 else
8127 window_system=x11
8130 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8131 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8132 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8133 x_default_search_path=""
8134 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8135 x_search_path="\
8136 ${x_library}/X11/%L/%T/%N%C%S:\
8137 ${x_library}/X11/%l/%T/%N%C%S:\
8138 ${x_library}/X11/%T/%N%C%S:\
8139 ${x_library}/X11/%L/%T/%N%S:\
8140 ${x_library}/X11/%l/%T/%N%S:\
8141 ${x_library}/X11/%T/%N%S"
8142 if test x"${x_default_search_path}" = x; then
8143 x_default_search_path=${x_search_path}
8144 else
8145 x_default_search_path="${x_search_path}:${x_default_search_path}"
8147 done
8149 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8150 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8153 if test x"${x_includes}" = x; then
8154 bitmapdir=/usr/include/X11/bitmaps
8155 else
8156 # accumulate include directories that have X11 bitmap subdirectories
8157 bmd_acc="dummyval"
8158 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8159 if test -d "${bmd}/X11/bitmaps"; then
8160 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8162 if test -d "${bmd}/bitmaps"; then
8163 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8165 done
8166 if test ${bmd_acc} != "dummyval"; then
8167 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8171 case "${window_system}" in
8172 x11 )
8173 HAVE_X_WINDOWS=yes
8174 HAVE_X11=yes
8175 case "${with_x_toolkit}" in
8176 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8177 motif ) USE_X_TOOLKIT=MOTIF ;;
8178 gtk ) with_gtk=yes
8179 USE_X_TOOLKIT=none ;;
8180 no ) USE_X_TOOLKIT=none ;;
8181 * ) USE_X_TOOLKIT=maybe ;;
8182 esac
8184 none )
8185 HAVE_X_WINDOWS=no
8186 HAVE_X11=no
8187 USE_X_TOOLKIT=none
8189 esac
8191 ### If we're using X11, we should use the X menu package.
8192 HAVE_MENUS=no
8193 case ${HAVE_X11} in
8194 yes ) HAVE_MENUS=yes ;;
8195 esac
8197 if test "${opsys}" = "hpux9"; then
8198 case "${x_libraries}" in
8199 *X11R4* )
8200 opsysfile="s/hpux9-x11r4.h"
8202 esac
8205 if test "${opsys}" = "hpux9shr"; then
8206 case "${x_libraries}" in
8207 *X11R4* )
8208 opsysfile="s/hpux9shxr4.h"
8210 esac
8213 ### Compute the unexec source name from the object name.
8214 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8216 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8217 # Assume not, until told otherwise.
8218 GNU_MALLOC=yes
8219 doug_lea_malloc=yes
8220 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8221 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8222 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h. */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8233 #define malloc_get_state innocuous_malloc_get_state
8235 /* System header to define __stub macros and hopefully few prototypes,
8236 which can conflict with char malloc_get_state (); below.
8237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8238 <limits.h> exists even on freestanding compilers. */
8240 #ifdef __STDC__
8241 # include <limits.h>
8242 #else
8243 # include <assert.h>
8244 #endif
8246 #undef malloc_get_state
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 #ifdef __cplusplus
8250 extern "C"
8252 #endif
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8255 char malloc_get_state ();
8256 /* The GNU C library defines this for functions which it implements
8257 to always fail with ENOSYS. Some functions are actually named
8258 something starting with __ and the normal name is an alias. */
8259 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8260 choke me
8261 #else
8262 char (*f) () = malloc_get_state;
8263 #endif
8264 #ifdef __cplusplus
8266 #endif
8269 main ()
8271 return f != malloc_get_state;
8273 return 0;
8275 _ACEOF
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try='test -z "$ac_c_werror_flag"
8286 || test ! -s conftest.err'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 (eval $ac_try) 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest$ac_exeext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_cv_func_malloc_get_state=yes
8299 else
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8303 ac_cv_func_malloc_get_state=no
8305 rm -f conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8308 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8309 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8310 if test $ac_cv_func_malloc_get_state = yes; then
8312 else
8313 doug_lea_malloc=no
8316 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8317 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8318 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8329 #define malloc_set_state innocuous_malloc_set_state
8331 /* System header to define __stub macros and hopefully few prototypes,
8332 which can conflict with char malloc_set_state (); below.
8333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8334 <limits.h> exists even on freestanding compilers. */
8336 #ifdef __STDC__
8337 # include <limits.h>
8338 #else
8339 # include <assert.h>
8340 #endif
8342 #undef malloc_set_state
8344 /* Override any gcc2 internal prototype to avoid an error. */
8345 #ifdef __cplusplus
8346 extern "C"
8348 #endif
8349 /* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8351 char malloc_set_state ();
8352 /* The GNU C library defines this for functions which it implements
8353 to always fail with ENOSYS. Some functions are actually named
8354 something starting with __ and the normal name is an alias. */
8355 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8356 choke me
8357 #else
8358 char (*f) () = malloc_set_state;
8359 #endif
8360 #ifdef __cplusplus
8362 #endif
8365 main ()
8367 return f != malloc_set_state;
8369 return 0;
8371 _ACEOF
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374 (eval $ac_link) 2>conftest.er1
8375 ac_status=$?
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest$ac_exeext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_func_malloc_set_state=yes
8395 else
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 ac_cv_func_malloc_set_state=no
8401 rm -f conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8405 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8406 if test $ac_cv_func_malloc_set_state = yes; then
8408 else
8409 doug_lea_malloc=no
8412 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8413 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8414 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 extern void (* __after_morecore_hook)();
8425 main ()
8427 __after_morecore_hook = 0
8429 return 0;
8431 _ACEOF
8432 rm -f conftest.$ac_objext conftest$ac_exeext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8434 (eval $ac_link) 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag"
8442 || test ! -s conftest.err'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 (eval $ac_try) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest$ac_exeext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 emacs_cv_var___after_morecore_hook=yes
8455 else
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 emacs_cv_var___after_morecore_hook=no
8461 rm -f conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8464 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8465 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8466 if test $emacs_cv_var___after_morecore_hook = no; then
8467 doug_lea_malloc=no
8469 if test "${system_malloc}" = "yes"; then
8470 GNU_MALLOC=no
8471 GNU_MALLOC_reason="
8472 (The GNU allocators don't work with this system configuration.)"
8474 if test "$doug_lea_malloc" = "yes" ; then
8475 if test "$GNU_MALLOC" = yes ; then
8476 GNU_MALLOC_reason="
8477 (Using Doug Lea's new malloc from the GNU C Library.)"
8480 cat >>confdefs.h <<\_ACEOF
8481 #define DOUG_LEA_MALLOC 1
8482 _ACEOF
8486 if test x"${REL_ALLOC}" = x; then
8487 REL_ALLOC=${GNU_MALLOC}
8493 for ac_header in stdlib.h unistd.h
8495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8497 echo "$as_me:$LINENO: checking for $ac_header" >&5
8498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8504 else
8505 # Is the header compilable?
8506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 $ac_includes_default
8515 #include <$ac_header>
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_header_compiler=yes
8540 else
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 ac_header_compiler=no
8546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8548 echo "${ECHO_T}$ac_header_compiler" >&6
8550 # Is the header present?
8551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 #include <$ac_header>
8560 _ACEOF
8561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } >/dev/null; then
8569 if test -s conftest.err; then
8570 ac_cpp_err=$ac_c_preproc_warn_flag
8571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8572 else
8573 ac_cpp_err=
8575 else
8576 ac_cpp_err=yes
8578 if test -z "$ac_cpp_err"; then
8579 ac_header_preproc=yes
8580 else
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 ac_header_preproc=no
8586 rm -f conftest.err conftest.$ac_ext
8587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8588 echo "${ECHO_T}$ac_header_preproc" >&6
8590 # So? What about this header?
8591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8592 yes:no: )
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8597 ac_header_preproc=yes
8599 no:yes:* )
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8613 cat <<\_ASBOX
8614 ## ------------------------------------------ ##
8615 ## Report this to the AC_PACKAGE_NAME lists. ##
8616 ## ------------------------------------------ ##
8617 _ASBOX
8619 sed "s/^/$as_me: WARNING: /" >&2
8621 esac
8622 echo "$as_me:$LINENO: checking for $ac_header" >&5
8623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627 eval "$as_ac_Header=\$ac_header_preproc"
8629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8634 cat >>confdefs.h <<_ACEOF
8635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8636 _ACEOF
8640 done
8643 for ac_func in getpagesize
8645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8646 echo "$as_me:$LINENO: checking for $ac_func" >&5
8647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8648 if eval "test \"\${$as_ac_var+set}\" = set"; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8659 #define $ac_func innocuous_$ac_func
8661 /* System header to define __stub macros and hopefully few prototypes,
8662 which can conflict with char $ac_func (); below.
8663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8664 <limits.h> exists even on freestanding compilers. */
8666 #ifdef __STDC__
8667 # include <limits.h>
8668 #else
8669 # include <assert.h>
8670 #endif
8672 #undef $ac_func
8674 /* Override any gcc2 internal prototype to avoid an error. */
8675 #ifdef __cplusplus
8676 extern "C"
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681 char $ac_func ();
8682 /* The GNU C library defines this for functions which it implements
8683 to always fail with ENOSYS. Some functions are actually named
8684 something starting with __ and the normal name is an alias. */
8685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8686 choke me
8687 #else
8688 char (*f) () = $ac_func;
8689 #endif
8690 #ifdef __cplusplus
8692 #endif
8695 main ()
8697 return f != $ac_func;
8699 return 0;
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag"
8712 || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try='test -s conftest$ac_exeext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 eval "$as_ac_var=yes"
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 eval "$as_ac_var=no"
8731 rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8736 if test `eval echo '${'$as_ac_var'}'` = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8739 _ACEOF
8742 done
8744 echo "$as_me:$LINENO: checking for working mmap" >&5
8745 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8746 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749 if test "$cross_compiling" = yes; then
8750 ac_cv_func_mmap_fixed_mapped=no
8751 else
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 /* malloc might have been renamed as rpl_malloc. */
8760 #undef malloc
8762 /* Thanks to Mike Haertel and Jim Avera for this test.
8763 Here is a matrix of mmap possibilities:
8764 mmap private not fixed
8765 mmap private fixed at somewhere currently unmapped
8766 mmap private fixed at somewhere already mapped
8767 mmap shared not fixed
8768 mmap shared fixed at somewhere currently unmapped
8769 mmap shared fixed at somewhere already mapped
8770 For private mappings, we should verify that changes cannot be read()
8771 back from the file, nor mmap's back from the file at a different
8772 address. (There have been systems where private was not correctly
8773 implemented like the infamous i386 svr4.0, and systems where the
8774 VM page cache was not coherent with the file system buffer cache
8775 like early versions of FreeBSD and possibly contemporary NetBSD.)
8776 For shared mappings, we should conversely verify that changes get
8777 propagated back to all the places they're supposed to be.
8779 Grep wants private fixed already mapped.
8780 The main things grep needs to know about mmap are:
8781 * does it exist and is it safe to write into the mmap'd area
8782 * how to use it (BSD variants) */
8784 #include <fcntl.h>
8785 #include <sys/mman.h>
8787 #if !STDC_HEADERS && !HAVE_STDLIB_H
8788 char *malloc ();
8789 #endif
8791 /* This mess was copied from the GNU getpagesize.h. */
8792 #if !HAVE_GETPAGESIZE
8793 /* Assume that all systems that can run configure have sys/param.h. */
8794 # if !HAVE_SYS_PARAM_H
8795 # define HAVE_SYS_PARAM_H 1
8796 # endif
8798 # ifdef _SC_PAGESIZE
8799 # define getpagesize() sysconf(_SC_PAGESIZE)
8800 # else /* no _SC_PAGESIZE */
8801 # if HAVE_SYS_PARAM_H
8802 # include <sys/param.h>
8803 # ifdef EXEC_PAGESIZE
8804 # define getpagesize() EXEC_PAGESIZE
8805 # else /* no EXEC_PAGESIZE */
8806 # ifdef NBPG
8807 # define getpagesize() NBPG * CLSIZE
8808 # ifndef CLSIZE
8809 # define CLSIZE 1
8810 # endif /* no CLSIZE */
8811 # else /* no NBPG */
8812 # ifdef NBPC
8813 # define getpagesize() NBPC
8814 # else /* no NBPC */
8815 # ifdef PAGESIZE
8816 # define getpagesize() PAGESIZE
8817 # endif /* PAGESIZE */
8818 # endif /* no NBPC */
8819 # endif /* no NBPG */
8820 # endif /* no EXEC_PAGESIZE */
8821 # else /* no HAVE_SYS_PARAM_H */
8822 # define getpagesize() 8192 /* punt totally */
8823 # endif /* no HAVE_SYS_PARAM_H */
8824 # endif /* no _SC_PAGESIZE */
8826 #endif /* no HAVE_GETPAGESIZE */
8829 main ()
8831 char *data, *data2, *data3;
8832 int i, pagesize;
8833 int fd;
8835 pagesize = getpagesize ();
8837 /* First, make a file with some known garbage in it. */
8838 data = (char *) malloc (pagesize);
8839 if (!data)
8840 exit (1);
8841 for (i = 0; i < pagesize; ++i)
8842 *(data + i) = rand ();
8843 umask (0);
8844 fd = creat ("conftest.mmap", 0600);
8845 if (fd < 0)
8846 exit (1);
8847 if (write (fd, data, pagesize) != pagesize)
8848 exit (1);
8849 close (fd);
8851 /* Next, try to mmap the file at a fixed address which already has
8852 something else allocated at it. If we can, also make sure that
8853 we see the same garbage. */
8854 fd = open ("conftest.mmap", O_RDWR);
8855 if (fd < 0)
8856 exit (1);
8857 data2 = (char *) malloc (2 * pagesize);
8858 if (!data2)
8859 exit (1);
8860 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8861 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8862 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8863 exit (1);
8864 for (i = 0; i < pagesize; ++i)
8865 if (*(data + i) != *(data2 + i))
8866 exit (1);
8868 /* Finally, make sure that changes to the mapped area do not
8869 percolate back to the file as seen by read(). (This is a bug on
8870 some variants of i386 svr4.0.) */
8871 for (i = 0; i < pagesize; ++i)
8872 *(data2 + i) = *(data2 + i) + 1;
8873 data3 = (char *) malloc (pagesize);
8874 if (!data3)
8875 exit (1);
8876 if (read (fd, data3, pagesize) != pagesize)
8877 exit (1);
8878 for (i = 0; i < pagesize; ++i)
8879 if (*(data + i) != *(data3 + i))
8880 exit (1);
8881 close (fd);
8882 exit (0);
8884 _ACEOF
8885 rm -f conftest$ac_exeext
8886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8887 (eval $ac_link) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 (eval $ac_try) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; }; then
8896 ac_cv_func_mmap_fixed_mapped=yes
8897 else
8898 echo "$as_me: program exited with status $ac_status" >&5
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8902 ( exit $ac_status )
8903 ac_cv_func_mmap_fixed_mapped=no
8905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8908 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8909 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8910 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8912 cat >>confdefs.h <<\_ACEOF
8913 #define HAVE_MMAP 1
8914 _ACEOF
8917 rm -f conftest.mmap
8919 if test $use_mmap_for_buffers = yes; then
8920 REL_ALLOC=no
8923 LIBS="$libsrc_libs $LIBS"
8926 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8927 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8928 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931 ac_check_lib_save_LIBS=$LIBS
8932 LIBS="-ldnet $LIBS"
8933 cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h. */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8940 /* Override any gcc2 internal prototype to avoid an error. */
8941 #ifdef __cplusplus
8942 extern "C"
8943 #endif
8944 /* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8946 char dnet_ntoa ();
8948 main ()
8950 dnet_ntoa ();
8952 return 0;
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>conftest.er1
8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try='test -z "$ac_c_werror_flag"
8965 || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_lib_dnet_dnet_ntoa=yes
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_cv_lib_dnet_dnet_ntoa=no
8984 rm -f conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8989 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8990 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8991 cat >>confdefs.h <<_ACEOF
8992 #define HAVE_LIBDNET 1
8993 _ACEOF
8995 LIBS="-ldnet $LIBS"
9000 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9001 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9002 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005 ac_check_lib_save_LIBS=$LIBS
9006 LIBS="-lXbsd $LIBS"
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9016 main ()
9018 main ();
9020 return 0;
9022 _ACEOF
9023 rm -f conftest.$ac_objext conftest$ac_exeext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9025 (eval $ac_link) 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag"
9033 || test ! -s conftest.err'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_cv_lib_Xbsd_main=yes
9046 else
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ac_cv_lib_Xbsd_main=no
9052 rm -f conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
9054 LIBS=$ac_check_lib_save_LIBS
9056 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9057 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9058 if test $ac_cv_lib_Xbsd_main = yes; then
9059 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9064 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9065 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9066 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lpthreads $LIBS"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h. */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9078 /* Override any gcc2 internal prototype to avoid an error. */
9079 #ifdef __cplusplus
9080 extern "C"
9081 #endif
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9084 char cma_open ();
9086 main ()
9088 cma_open ();
9090 return 0;
9092 _ACEOF
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095 (eval $ac_link) 2>conftest.er1
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag"
9103 || test ! -s conftest.err'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try='test -s conftest$ac_exeext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 ac_cv_lib_pthreads_cma_open=yes
9116 else
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_cv_lib_pthreads_cma_open=no
9122 rm -f conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9126 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9127 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9128 if test $ac_cv_lib_pthreads_cma_open = yes; then
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_LIBPTHREADS 1
9131 _ACEOF
9133 LIBS="-lpthreads $LIBS"
9138 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9139 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9140 if test -d /usr/X386/include; then
9141 HAVE_XFREE386=yes
9142 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9143 else
9144 HAVE_XFREE386=no
9146 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9147 echo "${ECHO_T}$HAVE_XFREE386" >&6
9150 case ${host_os} in
9151 aix*)
9152 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9153 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9154 if test "${gdb_cv_bigtoc+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9158 case $GCC in
9159 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9160 *) gdb_cv_bigtoc=-bbigtoc ;;
9161 esac
9163 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9164 cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h. */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9172 main ()
9174 int i;
9176 return 0;
9178 _ACEOF
9179 rm -f conftest.$ac_objext conftest$ac_exeext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9181 (eval $ac_link) 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -z "$ac_c_werror_flag"
9189 || test ! -s conftest.err'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; } &&
9195 { ac_try='test -s conftest$ac_exeext'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9202 else
9203 echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9206 gdb_cv_bigtoc=
9208 rm -f conftest.err conftest.$ac_objext \
9209 conftest$ac_exeext conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9213 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9215 esac
9217 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9218 # used for the tests that follow. We set them back to REAL_CFLAGS and
9219 # REAL_CPPFLAGS later on.
9221 REAL_CPPFLAGS="$CPPFLAGS"
9223 if test "${HAVE_X11}" = "yes"; then
9224 DEFS="$C_SWITCH_X_SITE $DEFS"
9225 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9226 LIBS="$LIBX $LIBS"
9227 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9228 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9230 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9231 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9232 # but it's more convenient here to set LD_RUN_PATH
9233 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9234 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9235 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9236 export LD_RUN_PATH
9239 if test "${opsys}" = "gnu-linux"; then
9240 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9241 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h. */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9250 main ()
9252 XOpenDisplay ("foo");
9254 return 0;
9256 _ACEOF
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest$ac_exeext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 xlinux_first_failure=no
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 xlinux_first_failure=yes
9286 rm -f conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
9288 if test "${xlinux_first_failure}" = "yes"; then
9289 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9290 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9291 OLD_CPPFLAGS="$CPPFLAGS"
9292 OLD_LIBS="$LIBS"
9293 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9294 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9295 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9296 LIBS="$LIBS -b i486-linuxaout"
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9305 main ()
9307 XOpenDisplay ("foo");
9309 return 0;
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 xlinux_second_failure=no
9335 else
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 xlinux_second_failure=yes
9341 rm -f conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 if test "${xlinux_second_failure}" = "yes"; then
9344 # If we get the same failure with -b, there is no use adding -b.
9345 # So take it out. This plays safe.
9346 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9347 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9348 CPPFLAGS="$OLD_CPPFLAGS"
9349 LIBS="$OLD_LIBS"
9350 echo "$as_me:$LINENO: result: no" >&5
9351 echo "${ECHO_T}no" >&6
9352 else
9353 echo "$as_me:$LINENO: result: yes" >&5
9354 echo "${ECHO_T}yes" >&6
9356 else
9357 echo "$as_me:$LINENO: result: no" >&5
9358 echo "${ECHO_T}no" >&6
9362 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9363 # header files included from there.
9364 echo "$as_me:$LINENO: checking for Xkb" >&5
9365 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9366 cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h. */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9372 #include <X11/Xlib.h>
9373 #include <X11/XKBlib.h>
9375 main ()
9377 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9379 return 0;
9381 _ACEOF
9382 rm -f conftest.$ac_objext conftest$ac_exeext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384 (eval $ac_link) 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag"
9392 || test ! -s conftest.err'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; } &&
9398 { ac_try='test -s conftest$ac_exeext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 (eval $ac_try) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 emacs_xkb=yes
9405 else
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9409 emacs_xkb=no
9411 rm -f conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9414 echo "${ECHO_T}$emacs_xkb" >&6
9415 if test $emacs_xkb = yes; then
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_XKBGETKEYBOARD 1
9419 _ACEOF
9427 for ac_func in XrmSetDatabase XScreenResourceString \
9428 XScreenNumberOfScreen XSetWMProtocols
9430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9431 echo "$as_me:$LINENO: checking for $ac_func" >&5
9432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9433 if eval "test \"\${$as_ac_var+set}\" = set"; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9444 #define $ac_func innocuous_$ac_func
9446 /* System header to define __stub macros and hopefully few prototypes,
9447 which can conflict with char $ac_func (); below.
9448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9449 <limits.h> exists even on freestanding compilers. */
9451 #ifdef __STDC__
9452 # include <limits.h>
9453 #else
9454 # include <assert.h>
9455 #endif
9457 #undef $ac_func
9459 /* Override any gcc2 internal prototype to avoid an error. */
9460 #ifdef __cplusplus
9461 extern "C"
9463 #endif
9464 /* We use char because int might match the return type of a gcc2
9465 builtin and then its argument prototype would still apply. */
9466 char $ac_func ();
9467 /* The GNU C library defines this for functions which it implements
9468 to always fail with ENOSYS. Some functions are actually named
9469 something starting with __ and the normal name is an alias. */
9470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9471 choke me
9472 #else
9473 char (*f) () = $ac_func;
9474 #endif
9475 #ifdef __cplusplus
9477 #endif
9480 main ()
9482 return f != $ac_func;
9484 return 0;
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try='test -z "$ac_c_werror_flag"
9497 || test ! -s conftest.err'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 eval "$as_ac_var=yes"
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 eval "$as_ac_var=no"
9516 rm -f conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9521 if test `eval echo '${'$as_ac_var'}'` = yes; then
9522 cat >>confdefs.h <<_ACEOF
9523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9524 _ACEOF
9527 done
9531 if test "${window_system}" = "x11"; then
9532 echo "$as_me:$LINENO: checking X11 version 6" >&5
9533 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9534 if test "${emacs_cv_x11_version_6+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 #include <X11/Xlib.h>
9545 main ()
9547 #if XlibSpecificationRelease < 6
9548 fail;
9549 #endif
9552 return 0;
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 emacs_cv_x11_version_6=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 emacs_cv_x11_version_6=no
9584 rm -f conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9588 if test $emacs_cv_x11_version_6 = yes; then
9589 echo "$as_me:$LINENO: result: 6 or newer" >&5
9590 echo "${ECHO_T}6 or newer" >&6
9592 cat >>confdefs.h <<\_ACEOF
9593 #define HAVE_X11R6 1
9594 _ACEOF
9596 else
9597 echo "$as_me:$LINENO: result: before 6" >&5
9598 echo "${ECHO_T}before 6" >&6
9602 if test "${window_system}" = "x11"; then
9603 echo "$as_me:$LINENO: checking X11 version 5" >&5
9604 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9605 if test "${emacs_cv_x11_version_5+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h. */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 #include <X11/Xlib.h>
9616 main ()
9618 #if XlibSpecificationRelease < 5
9619 fail;
9620 #endif
9623 return 0;
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628 (eval $ac_link) 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -z "$ac_c_werror_flag"
9636 || test ! -s conftest.err'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 (eval $ac_try) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 emacs_cv_x11_version_5=yes
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 emacs_cv_x11_version_5=no
9655 rm -f conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9659 if test $emacs_cv_x11_version_5 = yes; then
9660 echo "$as_me:$LINENO: result: 5 or newer" >&5
9661 echo "${ECHO_T}5 or newer" >&6
9662 HAVE_X11R5=yes
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_X11R5 1
9666 _ACEOF
9668 else
9669 HAVE_X11R5=no
9670 echo "$as_me:$LINENO: result: before 5" >&5
9671 echo "${ECHO_T}before 5" >&6
9677 HAVE_GTK=no
9678 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9679 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9680 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9681 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9682 { (exit 1); exit 1; }; };
9684 GLIB_REQUIRED=2.0.1
9685 GTK_REQUIRED=2.0.1
9686 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9688 if test "X${with_pkg_config_prog}" != X; then
9689 PKG_CONFIG="${with_pkg_config_prog}"
9692 succeeded=no
9694 if test -z "$PKG_CONFIG"; then
9695 # Extract the first word of "pkg-config", so it can be a program name with args.
9696 set dummy pkg-config; ac_word=$2
9697 echo "$as_me:$LINENO: checking for $ac_word" >&5
9698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9699 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702 case $PKG_CONFIG in
9703 [\\/]* | ?:[\\/]*)
9704 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 for as_dir in $PATH
9710 IFS=$as_save_IFS
9711 test -z "$as_dir" && as_dir=.
9712 for ac_exec_ext in '' $ac_executable_extensions; do
9713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9714 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9716 break 2
9718 done
9719 done
9721 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9723 esac
9725 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9727 if test -n "$PKG_CONFIG"; then
9728 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9729 echo "${ECHO_T}$PKG_CONFIG" >&6
9730 else
9731 echo "$as_me:$LINENO: result: no" >&5
9732 echo "${ECHO_T}no" >&6
9737 if test "$PKG_CONFIG" = "no" ; then
9738 echo "*** The pkg-config script could not be found. Make sure it is"
9739 echo "*** in your path, or give the full path to pkg-config with"
9740 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9741 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9742 else
9743 PKG_CONFIG_MIN_VERSION=0.9.0
9744 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9745 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9746 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9748 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9749 echo "$as_me:$LINENO: result: yes" >&5
9750 echo "${ECHO_T}yes" >&6
9751 succeeded=yes
9753 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9754 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9755 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9756 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9757 echo "${ECHO_T}$GTK_CFLAGS" >&6
9759 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9760 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9761 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9762 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9763 echo "${ECHO_T}$GTK_LIBS" >&6
9764 else
9765 GTK_CFLAGS=""
9766 GTK_LIBS=""
9767 ## If we have a custom action on failure, don't print errors, but
9768 ## do set a variable so people can do so.
9769 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9770 echo $GTK_PKG_ERRORS
9775 else
9776 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9777 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9781 if test $succeeded = yes; then
9783 else
9784 { { 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
9785 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;}
9786 { (exit 1); exit 1; }; }
9791 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9792 CFLAGS="$CFLAGS $GTK_CFLAGS"
9793 LIBS="$GTK_LIBS $LIBS"
9794 HAVE_GTK=yes
9796 cat >>confdefs.h <<\_ACEOF
9797 #define HAVE_GTK 1
9798 _ACEOF
9800 USE_X_TOOLKIT=none
9802 if test "$with_toolkit_scroll_bars" != no; then
9803 with_toolkit_scroll_bars=yes
9806 HAVE_GTK_MULTIDISPLAY=no
9808 for ac_func in gdk_display_open
9810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9811 echo "$as_me:$LINENO: checking for $ac_func" >&5
9812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_var+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9824 #define $ac_func innocuous_$ac_func
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char $ac_func (); below.
9828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829 <limits.h> exists even on freestanding compilers. */
9831 #ifdef __STDC__
9832 # include <limits.h>
9833 #else
9834 # include <assert.h>
9835 #endif
9837 #undef $ac_func
9839 /* Override any gcc2 internal prototype to avoid an error. */
9840 #ifdef __cplusplus
9841 extern "C"
9843 #endif
9844 /* We use char because int might match the return type of a gcc2
9845 builtin and then its argument prototype would still apply. */
9846 char $ac_func ();
9847 /* The GNU C library defines this for functions which it implements
9848 to always fail with ENOSYS. Some functions are actually named
9849 something starting with __ and the normal name is an alias. */
9850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9851 choke me
9852 #else
9853 char (*f) () = $ac_func;
9854 #endif
9855 #ifdef __cplusplus
9857 #endif
9860 main ()
9862 return f != $ac_func;
9864 return 0;
9866 _ACEOF
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest$ac_exeext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 eval "$as_ac_var=yes"
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 eval "$as_ac_var=no"
9896 rm -f conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9901 if test `eval echo '${'$as_ac_var'}'` = yes; then
9902 cat >>confdefs.h <<_ACEOF
9903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9904 _ACEOF
9905 HAVE_GTK_MULTIDISPLAY=yes
9907 done
9909 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_GTK_MULTIDISPLAY 1
9913 _ACEOF
9916 HAVE_GTK_FILE_SELECTION=no
9918 for ac_func in gtk_file_selection_new
9920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9921 echo "$as_me:$LINENO: checking for $ac_func" >&5
9922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9923 if eval "test \"\${$as_ac_var+set}\" = set"; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h. */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9934 #define $ac_func innocuous_$ac_func
9936 /* System header to define __stub macros and hopefully few prototypes,
9937 which can conflict with char $ac_func (); below.
9938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9939 <limits.h> exists even on freestanding compilers. */
9941 #ifdef __STDC__
9942 # include <limits.h>
9943 #else
9944 # include <assert.h>
9945 #endif
9947 #undef $ac_func
9949 /* Override any gcc2 internal prototype to avoid an error. */
9950 #ifdef __cplusplus
9951 extern "C"
9953 #endif
9954 /* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */
9956 char $ac_func ();
9957 /* The GNU C library defines this for functions which it implements
9958 to always fail with ENOSYS. Some functions are actually named
9959 something starting with __ and the normal name is an alias. */
9960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9961 choke me
9962 #else
9963 char (*f) () = $ac_func;
9964 #endif
9965 #ifdef __cplusplus
9967 #endif
9970 main ()
9972 return f != $ac_func;
9974 return 0;
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -z "$ac_c_werror_flag"
9987 || test ! -s conftest.err'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 (eval $ac_try) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 eval "$as_ac_var=yes"
10000 else
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 eval "$as_ac_var=no"
10006 rm -f conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10011 if test `eval echo '${'$as_ac_var'}'` = yes; then
10012 cat >>confdefs.h <<_ACEOF
10013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10014 _ACEOF
10015 HAVE_GTK_FILE_SELECTION=yes
10017 done
10020 HAVE_GTK_FILE_CHOOSER=no
10022 for ac_func in gtk_file_chooser_dialog_new
10024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10025 echo "$as_me:$LINENO: checking for $ac_func" >&5
10026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10027 if eval "test \"\${$as_ac_var+set}\" = set"; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030 cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h. */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10038 #define $ac_func innocuous_$ac_func
10040 /* System header to define __stub macros and hopefully few prototypes,
10041 which can conflict with char $ac_func (); below.
10042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10043 <limits.h> exists even on freestanding compilers. */
10045 #ifdef __STDC__
10046 # include <limits.h>
10047 #else
10048 # include <assert.h>
10049 #endif
10051 #undef $ac_func
10053 /* Override any gcc2 internal prototype to avoid an error. */
10054 #ifdef __cplusplus
10055 extern "C"
10057 #endif
10058 /* We use char because int might match the return type of a gcc2
10059 builtin and then its argument prototype would still apply. */
10060 char $ac_func ();
10061 /* The GNU C library defines this for functions which it implements
10062 to always fail with ENOSYS. Some functions are actually named
10063 something starting with __ and the normal name is an alias. */
10064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10065 choke me
10066 #else
10067 char (*f) () = $ac_func;
10068 #endif
10069 #ifdef __cplusplus
10071 #endif
10074 main ()
10076 return f != $ac_func;
10078 return 0;
10080 _ACEOF
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083 (eval $ac_link) 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 eval "$as_ac_var=yes"
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 eval "$as_ac_var=no"
10110 rm -f conftest.err conftest.$ac_objext \
10111 conftest$ac_exeext conftest.$ac_ext
10113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10115 if test `eval echo '${'$as_ac_var'}'` = yes; then
10116 cat >>confdefs.h <<_ACEOF
10117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10118 _ACEOF
10119 HAVE_GTK_FILE_CHOOSER=yes
10121 done
10124 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10125 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10127 cat >>confdefs.h <<\_ACEOF
10128 #define HAVE_GTK_FILE_BOTH 1
10129 _ACEOF
10133 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10134 HAVE_GTK_AND_PTHREAD=no
10136 for ac_header in pthread.h
10138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10140 echo "$as_me:$LINENO: checking for $ac_header" >&5
10141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10147 else
10148 # Is the header compilable?
10149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 $ac_includes_default
10158 #include <$ac_header>
10159 _ACEOF
10160 rm -f conftest.$ac_objext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162 (eval $ac_compile) 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag"
10170 || test ! -s conftest.err'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest.$ac_objext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 ac_header_compiler=yes
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_header_compiler=no
10189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10191 echo "${ECHO_T}$ac_header_compiler" >&6
10193 # Is the header present?
10194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 #include <$ac_header>
10203 _ACEOF
10204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } >/dev/null; then
10212 if test -s conftest.err; then
10213 ac_cpp_err=$ac_c_preproc_warn_flag
10214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10215 else
10216 ac_cpp_err=
10218 else
10219 ac_cpp_err=yes
10221 if test -z "$ac_cpp_err"; then
10222 ac_header_preproc=yes
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_header_preproc=no
10229 rm -f conftest.err conftest.$ac_ext
10230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10231 echo "${ECHO_T}$ac_header_preproc" >&6
10233 # So? What about this header?
10234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10235 yes:no: )
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10240 ac_header_preproc=yes
10242 no:yes:* )
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10256 cat <<\_ASBOX
10257 ## ------------------------------------------ ##
10258 ## Report this to the AC_PACKAGE_NAME lists. ##
10259 ## ------------------------------------------ ##
10260 _ASBOX
10262 sed "s/^/$as_me: WARNING: /" >&2
10264 esac
10265 echo "$as_me:$LINENO: checking for $ac_header" >&5
10266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 eval "$as_ac_Header=\$ac_header_preproc"
10272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10277 cat >>confdefs.h <<_ACEOF
10278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10279 _ACEOF
10283 done
10285 if test "$ac_cv_header_pthread_h"; then
10286 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10287 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10288 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291 ac_check_lib_save_LIBS=$LIBS
10292 LIBS="-lpthread $LIBS"
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h. */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10300 /* Override any gcc2 internal prototype to avoid an error. */
10301 #ifdef __cplusplus
10302 extern "C"
10303 #endif
10304 /* We use char because int might match the return type of a gcc2
10305 builtin and then its argument prototype would still apply. */
10306 char pthread_self ();
10308 main ()
10310 pthread_self ();
10312 return 0;
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag"
10325 || test ! -s conftest.err'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest$ac_exeext'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 ac_cv_lib_pthread_pthread_self=yes
10338 else
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 ac_cv_lib_pthread_pthread_self=no
10344 rm -f conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10348 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10349 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10350 if test $ac_cv_lib_pthread_pthread_self = yes; then
10351 HAVE_GTK_AND_PTHREAD=yes
10355 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10356 GTK_LIBS="$GTK_LIBS -lpthread"
10358 cat >>confdefs.h <<\_ACEOF
10359 #define HAVE_GTK_AND_PTHREAD 1
10360 _ACEOF
10366 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10367 if test x"${HAVE_X11R5}" = xyes; then
10368 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10369 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10370 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10380 #include <X11/Intrinsic.h>
10381 #include <X11/Xaw/Simple.h>
10383 main ()
10387 return 0;
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 emacs_cv_x11_version_5_with_xaw=yes
10413 else
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 emacs_cv_x11_version_5_with_xaw=no
10419 rm -f conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10423 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10424 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10425 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10426 USE_X_TOOLKIT=LUCID
10427 else
10428 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10429 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10430 USE_X_TOOLKIT=none
10432 else
10433 USE_X_TOOLKIT=none
10437 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10439 if test "${USE_X_TOOLKIT}" != "none"; then
10440 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10441 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10442 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <X11/Intrinsic.h>
10453 main ()
10455 #if XtSpecificationRelease < 6
10456 fail;
10457 #endif
10460 return 0;
10462 _ACEOF
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10465 (eval $ac_link) 2>conftest.er1
10466 ac_status=$?
10467 grep -v '^ *+' conftest.er1 >conftest.err
10468 rm -f conftest.er1
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } &&
10472 { ac_try='test -z "$ac_c_werror_flag"
10473 || test ! -s conftest.err'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; } &&
10479 { ac_try='test -s conftest$ac_exeext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 emacs_cv_x11_toolkit_version_6=yes
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 emacs_cv_x11_toolkit_version_6=no
10492 rm -f conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10496 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10497 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10498 echo "$as_me:$LINENO: result: 6 or newer" >&5
10499 echo "${ECHO_T}6 or newer" >&6
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_X11XTR6 1
10503 _ACEOF
10505 else
10506 echo "$as_me:$LINENO: result: before 6" >&5
10507 echo "${ECHO_T}before 6" >&6
10510 OLDLIBS="$LIBS"
10511 if test x$HAVE_X11XTR6 = xyes; then
10512 LIBS="-lXt -lSM -lICE $LIBS"
10513 else
10514 LIBS="-lXt $LIBS"
10517 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10518 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10519 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522 ac_check_lib_save_LIBS=$LIBS
10523 LIBS="-lXmu $LIBS"
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10531 /* Override any gcc2 internal prototype to avoid an error. */
10532 #ifdef __cplusplus
10533 extern "C"
10534 #endif
10535 /* We use char because int might match the return type of a gcc2
10536 builtin and then its argument prototype would still apply. */
10537 char XmuConvertStandardSelection ();
10539 main ()
10541 XmuConvertStandardSelection ();
10543 return 0;
10545 _ACEOF
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10548 (eval $ac_link) 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag"
10556 || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10575 rm -f conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10579 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10580 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10581 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10582 cat >>confdefs.h <<_ACEOF
10583 #define HAVE_LIBXMU 1
10584 _ACEOF
10586 LIBS="-lXmu $LIBS"
10590 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10593 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10594 if test "${HAVE_X11}" = "yes"; then
10595 if test "${USE_X_TOOLKIT}" != "none"; then
10597 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10598 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10599 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602 ac_check_lib_save_LIBS=$LIBS
10603 LIBS="-lXext $LIBS"
10604 cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h. */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10611 /* Override any gcc2 internal prototype to avoid an error. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 /* We use char because int might match the return type of a gcc2
10616 builtin and then its argument prototype would still apply. */
10617 char XShapeQueryExtension ();
10619 main ()
10621 XShapeQueryExtension ();
10623 return 0;
10625 _ACEOF
10626 rm -f conftest.$ac_objext conftest$ac_exeext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628 (eval $ac_link) 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_c_werror_flag"
10636 || test ! -s conftest.err'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; } &&
10642 { ac_try='test -s conftest$ac_exeext'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_cv_lib_Xext_XShapeQueryExtension=yes
10649 else
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ac_cv_lib_Xext_XShapeQueryExtension=no
10655 rm -f conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_lib_save_LIBS
10659 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10660 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10661 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10662 cat >>confdefs.h <<_ACEOF
10663 #define HAVE_LIBXEXT 1
10664 _ACEOF
10666 LIBS="-lXext $LIBS"
10673 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10674 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10675 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10676 if test "${emacs_cv_lesstif+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 # We put this in CFLAGS temporarily to precede other -I options
10680 # that might be in CFLAGS temporarily.
10681 # We put this in CPPFLAGS where it precedes the other -I options.
10682 OLD_CPPFLAGS=$CPPFLAGS
10683 OLD_CFLAGS=$CFLAGS
10684 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10685 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10694 main ()
10696 int x = 5;
10698 return 0;
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10703 (eval $ac_compile) 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_c_werror_flag"
10711 || test ! -s conftest.err'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; } &&
10717 { ac_try='test -s conftest.$ac_objext'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 emacs_cv_lesstif=yes
10724 else
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 emacs_cv_lesstif=no
10730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10732 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10733 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10734 if test $emacs_cv_lesstif = yes; then
10735 # Make sure this -I option remains in CPPFLAGS after it is set
10736 # back to REAL_CPPFLAGS.
10737 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10738 # have those other -I options anyway. Ultimately, having this
10739 # directory ultimately in CPPFLAGS will be enough.
10740 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10741 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10742 else
10743 CFLAGS=$OLD_CFLAGS
10744 CPPFLAGS=$OLD_CPPFLAGS
10746 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10747 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10748 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 #include <Xm/Xm.h>
10759 main ()
10761 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10762 int x = 5;
10763 #else
10764 Motif version prior to 2.1.
10765 #endif
10767 return 0;
10769 _ACEOF
10770 rm -f conftest.$ac_objext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772 (eval $ac_compile) 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 emacs_cv_motif_version_2_1=yes
10793 else
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 emacs_cv_motif_version_2_1=no
10799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10801 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10802 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10803 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10804 if test $emacs_cv_motif_version_2_1 = yes; then
10805 HAVE_LIBXP=no
10807 cat >>confdefs.h <<\_ACEOF
10808 #define HAVE_MOTIF_2_1 1
10809 _ACEOF
10811 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10812 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10813 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 ac_check_lib_save_LIBS=$LIBS
10817 LIBS="-lXp $LIBS"
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10825 /* Override any gcc2 internal prototype to avoid an error. */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 /* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10831 char XpCreateContext ();
10833 main ()
10835 XpCreateContext ();
10837 return 0;
10839 _ACEOF
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10842 (eval $ac_link) 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try='test -z "$ac_c_werror_flag"
10850 || test ! -s conftest.err'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; } &&
10856 { ac_try='test -s conftest$ac_exeext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_cv_lib_Xp_XpCreateContext=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_cv_lib_Xp_XpCreateContext=no
10869 rm -f conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871 LIBS=$ac_check_lib_save_LIBS
10873 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10874 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10875 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10876 HAVE_LIBXP=yes
10879 if test ${HAVE_LIBXP} = yes; then
10881 cat >>confdefs.h <<\_ACEOF
10882 #define HAVE_LIBXP 1
10883 _ACEOF
10889 ### Is -lXaw3d available?
10890 HAVE_XAW3D=no
10891 if test "${HAVE_X11}" = "yes"; then
10892 if test "${USE_X_TOOLKIT}" != "none"; then
10893 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10894 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10895 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 else
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h. */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <X11/Xaw3d/Scrollbar.h>
10905 _ACEOF
10906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } >/dev/null; then
10914 if test -s conftest.err; then
10915 ac_cpp_err=$ac_c_preproc_warn_flag
10916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10917 else
10918 ac_cpp_err=
10920 else
10921 ac_cpp_err=yes
10923 if test -z "$ac_cpp_err"; then
10924 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10925 else
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10931 rm -f conftest.err conftest.$ac_ext
10933 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10934 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10935 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10936 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10937 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10938 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941 ac_check_lib_save_LIBS=$LIBS
10942 LIBS="-lXaw3d $LIBS"
10943 cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h. */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10950 /* Override any gcc2 internal prototype to avoid an error. */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 /* We use char because int might match the return type of a gcc2
10955 builtin and then its argument prototype would still apply. */
10956 char XawScrollbarSetThumb ();
10958 main ()
10960 XawScrollbarSetThumb ();
10962 return 0;
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10967 (eval $ac_link) 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try='test -z "$ac_c_werror_flag"
10975 || test ! -s conftest.err'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest$ac_exeext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10988 else
10989 echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10992 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10994 rm -f conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10996 LIBS=$ac_check_lib_save_LIBS
10998 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10999 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11000 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11001 HAVE_XAW3D=yes
11007 if test "${HAVE_XAW3D}" = "yes"; then
11009 cat >>confdefs.h <<\_ACEOF
11010 #define HAVE_XAW3D 1
11011 _ACEOF
11019 USE_TOOLKIT_SCROLL_BARS=no
11020 if test "${with_toolkit_scroll_bars}" != "no"; then
11021 if test "${USE_X_TOOLKIT}" != "none"; then
11022 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11023 cat >>confdefs.h <<\_ACEOF
11024 #define USE_TOOLKIT_SCROLL_BARS 1
11025 _ACEOF
11027 HAVE_XAW3D=no
11028 USE_TOOLKIT_SCROLL_BARS=yes
11029 elif test "${HAVE_XAW3D}" = "yes"; then
11030 cat >>confdefs.h <<\_ACEOF
11031 #define USE_TOOLKIT_SCROLL_BARS 1
11032 _ACEOF
11034 USE_TOOLKIT_SCROLL_BARS=yes
11036 elif test "${HAVE_GTK}" = "yes"; then
11037 cat >>confdefs.h <<\_ACEOF
11038 #define USE_TOOLKIT_SCROLL_BARS 1
11039 _ACEOF
11041 USE_TOOLKIT_SCROLL_BARS=yes
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11052 #include <X11/Xlib.h>
11053 #include <X11/Xresource.h>
11055 main ()
11057 XIMProc callback;
11059 return 0;
11061 _ACEOF
11062 rm -f conftest.$ac_objext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11064 (eval $ac_compile) 2>conftest.er1
11065 ac_status=$?
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } &&
11071 { ac_try='test -z "$ac_c_werror_flag"
11072 || test ! -s conftest.err'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; } &&
11078 { ac_try='test -s conftest.$ac_objext'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 HAVE_XIM=yes
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_XIM 1
11088 _ACEOF
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 HAVE_XIM=no
11096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11099 if test "${with_xim}" != "no"; then
11101 cat >>confdefs.h <<\_ACEOF
11102 #define USE_XIM 1
11103 _ACEOF
11108 if test "${HAVE_XIM}" != "no"; then
11109 late_CFLAGS=$CFLAGS
11110 if test "$GCC" = yes; then
11111 CFLAGS="$CFLAGS --pedantic-errors"
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11120 #include <X11/Xlib.h>
11121 #include <X11/Xresource.h>
11123 main ()
11125 Display *display;
11126 XrmDatabase db;
11127 char *res_name;
11128 char *res_class;
11129 XIMProc callback;
11130 XPointer *client_data;
11131 #ifndef __GNUC__
11132 /* If we're not using GCC, it's probably not XFree86, and this is
11133 probably right, but we can't use something like --pedantic-errors. */
11134 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11135 char*, XIMProc, XPointer*);
11136 #endif
11137 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11138 client_data);
11140 return 0;
11142 _ACEOF
11143 rm -f conftest.$ac_objext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145 (eval $ac_compile) 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -z "$ac_c_werror_flag"
11153 || test ! -s conftest.err'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 emacs_cv_arg6_star=yes
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11173 if test "$emacs_cv_arg6_star" = yes; then
11174 cat >>confdefs.h <<\_ACEOF
11175 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11176 _ACEOF
11178 else
11179 cat >>confdefs.h <<\_ACEOF
11180 #define XRegisterIMInstantiateCallback_arg6 XPointer
11181 _ACEOF
11184 CFLAGS=$late_CFLAGS
11187 ### Use -lXpm if available, unless `--with-xpm=no'.
11188 HAVE_XPM=no
11189 if test "${HAVE_X11}" = "yes"; then
11190 if test "${with_xpm}" != "no"; then
11191 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11192 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11193 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11194 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11198 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11199 else
11200 # Is the header compilable?
11201 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11202 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 $ac_includes_default
11210 #include <X11/xpm.h>
11211 _ACEOF
11212 rm -f conftest.$ac_objext
11213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11214 (eval $ac_compile) 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag"
11222 || test ! -s conftest.err'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; } &&
11228 { ac_try='test -s conftest.$ac_objext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 ac_header_compiler=yes
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_header_compiler=no
11241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11243 echo "${ECHO_T}$ac_header_compiler" >&6
11245 # Is the header present?
11246 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11247 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h. */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <X11/xpm.h>
11255 _ACEOF
11256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } >/dev/null; then
11264 if test -s conftest.err; then
11265 ac_cpp_err=$ac_c_preproc_warn_flag
11266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11267 else
11268 ac_cpp_err=
11270 else
11271 ac_cpp_err=yes
11273 if test -z "$ac_cpp_err"; then
11274 ac_header_preproc=yes
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 ac_header_preproc=no
11281 rm -f conftest.err conftest.$ac_ext
11282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11283 echo "${ECHO_T}$ac_header_preproc" >&6
11285 # So? What about this header?
11286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11287 yes:no: )
11288 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11289 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11291 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11292 ac_header_preproc=yes
11294 no:yes:* )
11295 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11296 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11298 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11300 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11302 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11304 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11306 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11308 cat <<\_ASBOX
11309 ## ------------------------------------------ ##
11310 ## Report this to the AC_PACKAGE_NAME lists. ##
11311 ## ------------------------------------------ ##
11312 _ASBOX
11314 sed "s/^/$as_me: WARNING: /" >&2
11316 esac
11317 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11318 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11319 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322 ac_cv_header_X11_xpm_h=$ac_header_preproc
11324 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11325 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11328 if test $ac_cv_header_X11_xpm_h = yes; then
11329 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11330 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11331 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334 ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-lXpm -lX11 $LIBS"
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h. */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11343 /* Override any gcc2 internal prototype to avoid an error. */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 /* We use char because int might match the return type of a gcc2
11348 builtin and then its argument prototype would still apply. */
11349 char XpmReadFileToPixmap ();
11351 main ()
11353 XpmReadFileToPixmap ();
11355 return 0;
11357 _ACEOF
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 (eval $ac_link) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
11367 { ac_try='test -z "$ac_c_werror_flag"
11368 || test ! -s conftest.err'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11387 rm -f conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11391 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11392 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11393 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11394 HAVE_XPM=yes
11400 if test "${HAVE_XPM}" = "yes"; then
11401 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11402 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 #include "X11/xpm.h"
11410 #ifndef XpmReturnAllocPixels
11411 no_return_alloc_pixels
11412 #endif
11414 _ACEOF
11415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11416 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11417 HAVE_XPM=no
11418 else
11419 HAVE_XPM=yes
11421 rm -f conftest*
11424 if test "${HAVE_XPM}" = "yes"; then
11425 echo "$as_me:$LINENO: result: yes" >&5
11426 echo "${ECHO_T}yes" >&6
11427 else
11428 echo "$as_me:$LINENO: result: no" >&5
11429 echo "${ECHO_T}no" >&6
11434 if test "${HAVE_XPM}" = "yes"; then
11436 cat >>confdefs.h <<\_ACEOF
11437 #define HAVE_XPM 1
11438 _ACEOF
11443 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11444 HAVE_JPEG=no
11445 if test "${HAVE_X11}" = "yes"; then
11446 if test "${with_jpeg}" != "no"; then
11447 if test "${ac_cv_header_jerror_h+set}" = set; then
11448 echo "$as_me:$LINENO: checking for jerror.h" >&5
11449 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11450 if test "${ac_cv_header_jerror_h+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11454 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11455 else
11456 # Is the header compilable?
11457 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11458 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11459 cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h. */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 $ac_includes_default
11466 #include <jerror.h>
11467 _ACEOF
11468 rm -f conftest.$ac_objext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470 (eval $ac_compile) 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try='test -z "$ac_c_werror_flag"
11478 || test ! -s conftest.err'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_header_compiler=yes
11491 else
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_header_compiler=no
11497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11499 echo "${ECHO_T}$ac_header_compiler" >&6
11501 # Is the header present?
11502 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11503 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <jerror.h>
11511 _ACEOF
11512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } >/dev/null; then
11520 if test -s conftest.err; then
11521 ac_cpp_err=$ac_c_preproc_warn_flag
11522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11523 else
11524 ac_cpp_err=
11526 else
11527 ac_cpp_err=yes
11529 if test -z "$ac_cpp_err"; then
11530 ac_header_preproc=yes
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_header_preproc=no
11537 rm -f conftest.err conftest.$ac_ext
11538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11539 echo "${ECHO_T}$ac_header_preproc" >&6
11541 # So? What about this header?
11542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11543 yes:no: )
11544 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11545 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11547 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11548 ac_header_preproc=yes
11550 no:yes:* )
11551 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11552 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11554 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11556 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11558 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11560 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11562 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11564 cat <<\_ASBOX
11565 ## ------------------------------------------ ##
11566 ## Report this to the AC_PACKAGE_NAME lists. ##
11567 ## ------------------------------------------ ##
11568 _ASBOX
11570 sed "s/^/$as_me: WARNING: /" >&2
11572 esac
11573 echo "$as_me:$LINENO: checking for jerror.h" >&5
11574 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11575 if test "${ac_cv_header_jerror_h+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578 ac_cv_header_jerror_h=$ac_header_preproc
11580 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11581 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11584 if test $ac_cv_header_jerror_h = yes; then
11585 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11586 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11587 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-ljpeg $LIBS"
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h. */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11599 /* Override any gcc2 internal prototype to avoid an error. */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 /* We use char because int might match the return type of a gcc2
11604 builtin and then its argument prototype would still apply. */
11605 char jpeg_destroy_compress ();
11607 main ()
11609 jpeg_destroy_compress ();
11611 return 0;
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11616 (eval $ac_link) 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
11623 { ac_try='test -z "$ac_c_werror_flag"
11624 || test ! -s conftest.err'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; } &&
11630 { ac_try='test -s conftest$ac_exeext'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11643 rm -f conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645 LIBS=$ac_check_lib_save_LIBS
11647 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11648 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11649 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11650 HAVE_JPEG=yes
11659 if test "${HAVE_JPEG}" = "yes"; then
11660 cat >>confdefs.h <<\_ACEOF
11661 #define HAVE_JPEG 1
11662 _ACEOF
11664 cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h. */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 #include <jpeglib.h>
11671 version=JPEG_LIB_VERSION
11673 _ACEOF
11674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11675 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11676 cat >>confdefs.h <<\_ACEOF
11677 #define HAVE_JPEG 1
11678 _ACEOF
11680 else
11681 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11682 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11683 HAVE_JPEG=no
11685 rm -f conftest*
11690 ### Use -lpng if available, unless `--with-png=no'.
11691 HAVE_PNG=no
11692 if test "${HAVE_X11}" = "yes"; then
11693 if test "${with_png}" != "no"; then
11694 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11695 # in /usr/include/libpng.
11698 for ac_header in png.h libpng/png.h
11700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11702 echo "$as_me:$LINENO: checking for $ac_header" >&5
11703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11709 else
11710 # Is the header compilable?
11711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 $ac_includes_default
11720 #include <$ac_header>
11721 _ACEOF
11722 rm -f conftest.$ac_objext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724 (eval $ac_compile) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_header_compiler=yes
11745 else
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 ac_header_compiler=no
11751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11753 echo "${ECHO_T}$ac_header_compiler" >&6
11755 # Is the header present?
11756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h. */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 #include <$ac_header>
11765 _ACEOF
11766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11768 ac_status=$?
11769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } >/dev/null; then
11774 if test -s conftest.err; then
11775 ac_cpp_err=$ac_c_preproc_warn_flag
11776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11777 else
11778 ac_cpp_err=
11780 else
11781 ac_cpp_err=yes
11783 if test -z "$ac_cpp_err"; then
11784 ac_header_preproc=yes
11785 else
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 ac_header_preproc=no
11791 rm -f conftest.err conftest.$ac_ext
11792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11793 echo "${ECHO_T}$ac_header_preproc" >&6
11795 # So? What about this header?
11796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11797 yes:no: )
11798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11802 ac_header_preproc=yes
11804 no:yes:* )
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11818 cat <<\_ASBOX
11819 ## ------------------------------------------ ##
11820 ## Report this to the AC_PACKAGE_NAME lists. ##
11821 ## ------------------------------------------ ##
11822 _ASBOX
11824 sed "s/^/$as_me: WARNING: /" >&2
11826 esac
11827 echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832 eval "$as_ac_Header=\$ac_header_preproc"
11834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11841 _ACEOF
11845 done
11847 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11848 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11849 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11850 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853 ac_check_lib_save_LIBS=$LIBS
11854 LIBS="-lpng -lz -lm $LIBS"
11855 cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h. */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11862 /* Override any gcc2 internal prototype to avoid an error. */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11868 char png_get_channels ();
11870 main ()
11872 png_get_channels ();
11874 return 0;
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_lib_png_png_get_channels=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_cv_lib_png_png_get_channels=no
11906 rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 LIBS=$ac_check_lib_save_LIBS
11910 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11911 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11912 if test $ac_cv_lib_png_png_get_channels = yes; then
11913 HAVE_PNG=yes
11919 if test "${HAVE_PNG}" = "yes"; then
11921 cat >>confdefs.h <<\_ACEOF
11922 #define HAVE_PNG 1
11923 _ACEOF
11928 ### Use -ltiff if available, unless `--with-tiff=no'.
11929 HAVE_TIFF=no
11930 if test "${HAVE_X11}" = "yes"; then
11931 if test "${with_tiff}" != "no"; then
11932 if test "${ac_cv_header_tiffio_h+set}" = set; then
11933 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11934 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11935 if test "${ac_cv_header_tiffio_h+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11939 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11940 else
11941 # Is the header compilable?
11942 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11943 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 $ac_includes_default
11951 #include <tiffio.h>
11952 _ACEOF
11953 rm -f conftest.$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_header_compiler=yes
11976 else
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 ac_header_compiler=no
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11984 echo "${ECHO_T}$ac_header_compiler" >&6
11986 # Is the header present?
11987 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11988 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 #include <tiffio.h>
11996 _ACEOF
11997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } >/dev/null; then
12005 if test -s conftest.err; then
12006 ac_cpp_err=$ac_c_preproc_warn_flag
12007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12008 else
12009 ac_cpp_err=
12011 else
12012 ac_cpp_err=yes
12014 if test -z "$ac_cpp_err"; then
12015 ac_header_preproc=yes
12016 else
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_header_preproc=no
12022 rm -f conftest.err conftest.$ac_ext
12023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12024 echo "${ECHO_T}$ac_header_preproc" >&6
12026 # So? What about this header?
12027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12028 yes:no: )
12029 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12030 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12032 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12033 ac_header_preproc=yes
12035 no:yes:* )
12036 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12037 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12039 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12041 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12043 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12045 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12047 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12049 cat <<\_ASBOX
12050 ## ------------------------------------------ ##
12051 ## Report this to the AC_PACKAGE_NAME lists. ##
12052 ## ------------------------------------------ ##
12053 _ASBOX
12055 sed "s/^/$as_me: WARNING: /" >&2
12057 esac
12058 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12059 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12060 if test "${ac_cv_header_tiffio_h+set}" = set; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 else
12063 ac_cv_header_tiffio_h=$ac_header_preproc
12065 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12066 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12069 if test $ac_cv_header_tiffio_h = yes; then
12070 tifflibs="-lz -lm"
12071 # At least one tiff package requires the jpeg library.
12072 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12073 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12074 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12075 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078 ac_check_lib_save_LIBS=$LIBS
12079 LIBS="-ltiff $tifflibs $LIBS"
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h. */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12087 /* Override any gcc2 internal prototype to avoid an error. */
12088 #ifdef __cplusplus
12089 extern "C"
12090 #endif
12091 /* We use char because int might match the return type of a gcc2
12092 builtin and then its argument prototype would still apply. */
12093 char TIFFGetVersion ();
12095 main ()
12097 TIFFGetVersion ();
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_lib_tiff_TIFFGetVersion=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_cv_lib_tiff_TIFFGetVersion=no
12131 rm -f conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 LIBS=$ac_check_lib_save_LIBS
12135 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12136 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12137 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12138 HAVE_TIFF=yes
12146 if test "${HAVE_TIFF}" = "yes"; then
12148 cat >>confdefs.h <<\_ACEOF
12149 #define HAVE_TIFF 1
12150 _ACEOF
12155 ### Use -lgif if available, unless `--with-gif=no'.
12156 HAVE_GIF=no
12157 if test "${HAVE_X11}" = "yes"; then
12158 if test "${with_gif}" != "no"; then
12159 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12160 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12161 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12162 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12166 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12167 else
12168 # Is the header compilable?
12169 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12170 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 $ac_includes_default
12178 #include <gif_lib.h>
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_header_compiler=yes
12203 else
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ac_header_compiler=no
12209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12211 echo "${ECHO_T}$ac_header_compiler" >&6
12213 # Is the header present?
12214 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12215 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 #include <gif_lib.h>
12223 _ACEOF
12224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } >/dev/null; then
12232 if test -s conftest.err; then
12233 ac_cpp_err=$ac_c_preproc_warn_flag
12234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12235 else
12236 ac_cpp_err=
12238 else
12239 ac_cpp_err=yes
12241 if test -z "$ac_cpp_err"; then
12242 ac_header_preproc=yes
12243 else
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 ac_header_preproc=no
12249 rm -f conftest.err conftest.$ac_ext
12250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12251 echo "${ECHO_T}$ac_header_preproc" >&6
12253 # So? What about this header?
12254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12255 yes:no: )
12256 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12257 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12259 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12260 ac_header_preproc=yes
12262 no:yes:* )
12263 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12264 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12266 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12268 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12270 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12272 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12273 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12274 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12276 cat <<\_ASBOX
12277 ## ------------------------------------------ ##
12278 ## Report this to the AC_PACKAGE_NAME lists. ##
12279 ## ------------------------------------------ ##
12280 _ASBOX
12282 sed "s/^/$as_me: WARNING: /" >&2
12284 esac
12285 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12286 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12287 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 ac_cv_header_gif_lib_h=$ac_header_preproc
12292 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12293 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12296 if test $ac_cv_header_gif_lib_h = yes; then
12297 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12298 # Earlier versions can crash Emacs.
12299 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12300 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12301 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-lungif $LIBS"
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 /* Override any gcc2 internal prototype to avoid an error. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 /* We use char because int might match the return type of a gcc2
12318 builtin and then its argument prototype would still apply. */
12319 char EGifPutExtensionLast ();
12321 main ()
12323 EGifPutExtensionLast ();
12325 return 0;
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_lib_ungif_EGifPutExtensionLast=no
12357 rm -f conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12362 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12363 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12364 HAVE_GIF=yes
12372 if test "${HAVE_GIF}" = "yes"; then
12374 cat >>confdefs.h <<\_ACEOF
12375 #define HAVE_GIF 1
12376 _ACEOF
12381 ### Use Mac OS X Carbon API to implement GUI.
12382 HAVE_CARBON=no
12383 if test "${with_carbon}" != "no"; then
12384 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12385 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12386 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12387 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12391 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12392 else
12393 # Is the header compilable?
12394 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12395 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 $ac_includes_default
12403 #include <Carbon/Carbon.h>
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407 (eval $ac_compile) 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_c_werror_flag"
12415 || test ! -s conftest.err'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest.$ac_objext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_header_compiler=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_header_compiler=no
12434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12436 echo "${ECHO_T}$ac_header_compiler" >&6
12438 # Is the header present?
12439 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12440 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12441 cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h. */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 #include <Carbon/Carbon.h>
12448 _ACEOF
12449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } >/dev/null; then
12457 if test -s conftest.err; then
12458 ac_cpp_err=$ac_c_preproc_warn_flag
12459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12460 else
12461 ac_cpp_err=
12463 else
12464 ac_cpp_err=yes
12466 if test -z "$ac_cpp_err"; then
12467 ac_header_preproc=yes
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_header_preproc=no
12474 rm -f conftest.err conftest.$ac_ext
12475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12476 echo "${ECHO_T}$ac_header_preproc" >&6
12478 # So? What about this header?
12479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12480 yes:no: )
12481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12482 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12484 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12485 ac_header_preproc=yes
12487 no:yes:* )
12488 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12489 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12491 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12493 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12495 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12497 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12499 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12501 cat <<\_ASBOX
12502 ## ------------------------------------------ ##
12503 ## Report this to the AC_PACKAGE_NAME lists. ##
12504 ## ------------------------------------------ ##
12505 _ASBOX
12507 sed "s/^/$as_me: WARNING: /" >&2
12509 esac
12510 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12511 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12512 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12517 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12518 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12521 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12522 HAVE_CARBON=yes
12528 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12529 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12530 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12531 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12535 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12536 else
12537 # Is the header compilable?
12538 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12539 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 $ac_includes_default
12547 #include <malloc/malloc.h>
12548 _ACEOF
12549 rm -f conftest.$ac_objext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12551 (eval $ac_compile) 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag"
12559 || test ! -s conftest.err'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest.$ac_objext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_header_compiler=yes
12572 else
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_header_compiler=no
12578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12580 echo "${ECHO_T}$ac_header_compiler" >&6
12582 # Is the header present?
12583 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12584 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12585 cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h. */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 #include <malloc/malloc.h>
12592 _ACEOF
12593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } >/dev/null; then
12601 if test -s conftest.err; then
12602 ac_cpp_err=$ac_c_preproc_warn_flag
12603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12604 else
12605 ac_cpp_err=
12607 else
12608 ac_cpp_err=yes
12610 if test -z "$ac_cpp_err"; then
12611 ac_header_preproc=yes
12612 else
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 ac_header_preproc=no
12618 rm -f conftest.err conftest.$ac_ext
12619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12620 echo "${ECHO_T}$ac_header_preproc" >&6
12622 # So? What about this header?
12623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12624 yes:no: )
12625 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12626 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12627 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12628 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12629 ac_header_preproc=yes
12631 no:yes:* )
12632 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12633 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12635 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12637 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12638 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12639 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12641 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12643 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12645 cat <<\_ASBOX
12646 ## ------------------------------------------ ##
12647 ## Report this to the AC_PACKAGE_NAME lists. ##
12648 ## ------------------------------------------ ##
12649 _ASBOX
12651 sed "s/^/$as_me: WARNING: /" >&2
12653 esac
12654 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12655 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12656 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12661 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12662 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12665 if test $ac_cv_header_malloc_malloc_h = yes; then
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_MALLOC_MALLOC_H 1
12669 _ACEOF
12675 if test "${HAVE_CARBON}" = "yes"; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_CARBON 1
12679 _ACEOF
12681 window_system=mac
12682 ## Specify the install directory
12683 carbon_appdir=
12684 if test "${carbon_appdir_x}" != ""; then
12685 case ${carbon_appdir_x} in
12686 y | ye | yes) carbon_appdir=/Applications ;;
12687 * ) carbon_appdir=${carbon_appdir_x} ;;
12688 esac
12690 # We also have mouse menus.
12691 HAVE_MENUS=yes
12694 ### Use session management (-lSM -lICE) if available
12695 HAVE_X_SM=no
12696 if test "${HAVE_X11}" = "yes"; then
12697 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12698 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12699 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12700 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12704 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12705 else
12706 # Is the header compilable?
12707 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12708 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12709 cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h. */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12715 $ac_includes_default
12716 #include <X11/SM/SMlib.h>
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720 (eval $ac_compile) 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
12727 { ac_try='test -z "$ac_c_werror_flag"
12728 || test ! -s conftest.err'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_header_compiler=yes
12741 else
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_header_compiler=no
12747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12749 echo "${ECHO_T}$ac_header_compiler" >&6
12751 # Is the header present?
12752 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12753 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 #include <X11/SM/SMlib.h>
12761 _ACEOF
12762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } >/dev/null; then
12770 if test -s conftest.err; then
12771 ac_cpp_err=$ac_c_preproc_warn_flag
12772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12773 else
12774 ac_cpp_err=
12776 else
12777 ac_cpp_err=yes
12779 if test -z "$ac_cpp_err"; then
12780 ac_header_preproc=yes
12781 else
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 ac_header_preproc=no
12787 rm -f conftest.err conftest.$ac_ext
12788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12789 echo "${ECHO_T}$ac_header_preproc" >&6
12791 # So? What about this header?
12792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12793 yes:no: )
12794 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12795 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12797 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12798 ac_header_preproc=yes
12800 no:yes:* )
12801 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12802 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12803 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12804 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12806 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12808 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12810 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12812 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12814 cat <<\_ASBOX
12815 ## ------------------------------------------ ##
12816 ## Report this to the AC_PACKAGE_NAME lists. ##
12817 ## ------------------------------------------ ##
12818 _ASBOX
12820 sed "s/^/$as_me: WARNING: /" >&2
12822 esac
12823 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12824 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12825 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 else
12828 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12830 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12831 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12834 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12835 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12836 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12837 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840 ac_check_lib_save_LIBS=$LIBS
12841 LIBS="-lSM -lICE $LIBS"
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12849 /* Override any gcc2 internal prototype to avoid an error. */
12850 #ifdef __cplusplus
12851 extern "C"
12852 #endif
12853 /* We use char because int might match the return type of a gcc2
12854 builtin and then its argument prototype would still apply. */
12855 char SmcOpenConnection ();
12857 main ()
12859 SmcOpenConnection ();
12861 return 0;
12863 _ACEOF
12864 rm -f conftest.$ac_objext conftest$ac_exeext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866 (eval $ac_link) 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag"
12874 || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest$ac_exeext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_lib_SM_SmcOpenConnection=yes
12887 else
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12891 ac_cv_lib_SM_SmcOpenConnection=no
12893 rm -f conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12897 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12898 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12899 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12900 HAVE_X_SM=yes
12907 if test "${HAVE_X_SM}" = "yes"; then
12909 cat >>confdefs.h <<\_ACEOF
12910 #define HAVE_X_SM 1
12911 _ACEOF
12913 case "$LIBS" in
12914 *-lSM*) ;;
12915 *) LIBS="-lSM -lICE $LIBS" ;;
12916 esac
12920 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12921 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12922 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12923 if test "${emacs_cv_netdb_declares_h_errno+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 <netdb.h>
12934 main ()
12936 return h_errno;
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"
12951 || test ! -s conftest.err'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try='test -s conftest$ac_exeext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 emacs_cv_netdb_declares_h_errno=yes
12964 else
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12968 emacs_cv_netdb_declares_h_errno=no
12970 rm -f conftest.err conftest.$ac_objext \
12971 conftest$ac_exeext conftest.$ac_ext
12973 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12974 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12975 if test $emacs_cv_netdb_declares_h_errno = yes; then
12977 cat >>confdefs.h <<\_ACEOF
12978 #define HAVE_H_ERRNO 1
12979 _ACEOF
12983 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12984 # for constant arguments. Useless!
12985 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12986 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12987 if test "${ac_cv_working_alloca_h+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h. */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 #include <alloca.h>
12998 main ()
13000 char *p = (char *) alloca (2 * sizeof (int));
13002 return 0;
13004 _ACEOF
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13007 (eval $ac_link) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_c_werror_flag"
13015 || test ! -s conftest.err'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } &&
13021 { ac_try='test -s conftest$ac_exeext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_cv_working_alloca_h=yes
13028 else
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032 ac_cv_working_alloca_h=no
13034 rm -f conftest.err conftest.$ac_objext \
13035 conftest$ac_exeext conftest.$ac_ext
13037 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13038 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13039 if test $ac_cv_working_alloca_h = yes; then
13041 cat >>confdefs.h <<\_ACEOF
13042 #define HAVE_ALLOCA_H 1
13043 _ACEOF
13047 echo "$as_me:$LINENO: checking for alloca" >&5
13048 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13049 if test "${ac_cv_func_alloca_works+set}" = set; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 else
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h. */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13058 #ifdef __GNUC__
13059 # define alloca __builtin_alloca
13060 #else
13061 # ifdef _MSC_VER
13062 # include <malloc.h>
13063 # define alloca _alloca
13064 # else
13065 # if HAVE_ALLOCA_H
13066 # include <alloca.h>
13067 # else
13068 # ifdef _AIX
13069 #pragma alloca
13070 # else
13071 # ifndef alloca /* predefined by HP cc +Olibcalls */
13072 char *alloca ();
13073 # endif
13074 # endif
13075 # endif
13076 # endif
13077 #endif
13080 main ()
13082 char *p = (char *) alloca (1);
13084 return 0;
13086 _ACEOF
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>conftest.er1
13090 ac_status=$?
13091 grep -v '^ *+' conftest.er1 >conftest.err
13092 rm -f conftest.er1
13093 cat conftest.err >&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } &&
13096 { ac_try='test -z "$ac_c_werror_flag"
13097 || test ! -s conftest.err'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try='test -s conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_func_alloca_works=yes
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 ac_cv_func_alloca_works=no
13116 rm -f conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13120 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13122 if test $ac_cv_func_alloca_works = yes; then
13124 cat >>confdefs.h <<\_ACEOF
13125 #define HAVE_ALLOCA 1
13126 _ACEOF
13128 else
13129 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13130 # that cause trouble. Some versions do not even contain alloca or
13131 # contain a buggy version. If you still want to use their alloca,
13132 # use ar to extract alloca.o from them instead of compiling alloca.c.
13134 ALLOCA=alloca.$ac_objext
13136 cat >>confdefs.h <<\_ACEOF
13137 #define C_ALLOCA 1
13138 _ACEOF
13141 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13142 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13143 if test "${ac_cv_os_cray+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h. */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 #if defined(CRAY) && ! defined(CRAY2)
13153 webecray
13154 #else
13155 wenotbecray
13156 #endif
13158 _ACEOF
13159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13160 $EGREP "webecray" >/dev/null 2>&1; then
13161 ac_cv_os_cray=yes
13162 else
13163 ac_cv_os_cray=no
13165 rm -f conftest*
13168 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13169 echo "${ECHO_T}$ac_cv_os_cray" >&6
13170 if test $ac_cv_os_cray = yes; then
13171 for ac_func in _getb67 GETB67 getb67; do
13172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13173 echo "$as_me:$LINENO: checking for $ac_func" >&5
13174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13175 if eval "test \"\${$as_ac_var+set}\" = set"; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178 cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h. */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13186 #define $ac_func innocuous_$ac_func
13188 /* System header to define __stub macros and hopefully few prototypes,
13189 which can conflict with char $ac_func (); below.
13190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13191 <limits.h> exists even on freestanding compilers. */
13193 #ifdef __STDC__
13194 # include <limits.h>
13195 #else
13196 # include <assert.h>
13197 #endif
13199 #undef $ac_func
13201 /* Override any gcc2 internal prototype to avoid an error. */
13202 #ifdef __cplusplus
13203 extern "C"
13205 #endif
13206 /* We use char because int might match the return type of a gcc2
13207 builtin and then its argument prototype would still apply. */
13208 char $ac_func ();
13209 /* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13213 choke me
13214 #else
13215 char (*f) () = $ac_func;
13216 #endif
13217 #ifdef __cplusplus
13219 #endif
13222 main ()
13224 return f != $ac_func;
13226 return 0;
13228 _ACEOF
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13231 (eval $ac_link) 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag"
13239 || test ! -s conftest.err'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest$ac_exeext'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 eval "$as_ac_var=yes"
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 eval "$as_ac_var=no"
13258 rm -f conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13263 if test `eval echo '${'$as_ac_var'}'` = yes; then
13265 cat >>confdefs.h <<_ACEOF
13266 #define CRAY_STACKSEG_END $ac_func
13267 _ACEOF
13269 break
13272 done
13275 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13276 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13277 if test "${ac_cv_c_stack_direction+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280 if test "$cross_compiling" = yes; then
13281 ac_cv_c_stack_direction=0
13282 else
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 find_stack_direction ()
13292 static char *addr = 0;
13293 auto char dummy;
13294 if (addr == 0)
13296 addr = &dummy;
13297 return find_stack_direction ();
13299 else
13300 return (&dummy > addr) ? 1 : -1;
13304 main ()
13306 exit (find_stack_direction () < 0);
13308 _ACEOF
13309 rm -f conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 ac_cv_c_stack_direction=1
13321 else
13322 echo "$as_me: program exited with status $ac_status" >&5
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ( exit $ac_status )
13327 ac_cv_c_stack_direction=-1
13329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13332 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13333 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13335 cat >>confdefs.h <<_ACEOF
13336 #define STACK_DIRECTION $ac_cv_c_stack_direction
13337 _ACEOF
13343 # fmod, logb, and frexp are found in -lm on most systems.
13344 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13346 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13347 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13348 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351 ac_check_lib_save_LIBS=$LIBS
13352 LIBS="-lm $LIBS"
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h. */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13360 /* Override any gcc2 internal prototype to avoid an error. */
13361 #ifdef __cplusplus
13362 extern "C"
13363 #endif
13364 /* We use char because int might match the return type of a gcc2
13365 builtin and then its argument prototype would still apply. */
13366 char sqrt ();
13368 main ()
13370 sqrt ();
13372 return 0;
13374 _ACEOF
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -z "$ac_c_werror_flag"
13385 || test ! -s conftest.err'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest$ac_exeext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_lib_m_sqrt=yes
13398 else
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 ac_cv_lib_m_sqrt=no
13404 rm -f conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13408 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13409 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13410 if test $ac_cv_lib_m_sqrt = yes; then
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_LIBM 1
13413 _ACEOF
13415 LIBS="-lm $LIBS"
13420 # Check for mail-locking functions in a "mail" library. Probably this should
13421 # have the same check as for liblockfile below.
13423 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13424 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13425 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428 ac_check_lib_save_LIBS=$LIBS
13429 LIBS="-lmail $LIBS"
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h. */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13437 /* Override any gcc2 internal prototype to avoid an error. */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 /* We use char because int might match the return type of a gcc2
13442 builtin and then its argument prototype would still apply. */
13443 char maillock ();
13445 main ()
13447 maillock ();
13449 return 0;
13451 _ACEOF
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454 (eval $ac_link) 2>conftest.er1
13455 ac_status=$?
13456 grep -v '^ *+' conftest.er1 >conftest.err
13457 rm -f conftest.er1
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } &&
13461 { ac_try='test -z "$ac_c_werror_flag"
13462 || test ! -s conftest.err'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; } &&
13468 { ac_try='test -s conftest$ac_exeext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_lib_mail_maillock=yes
13475 else
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_cv_lib_mail_maillock=no
13481 rm -f conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483 LIBS=$ac_check_lib_save_LIBS
13485 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13486 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13487 if test $ac_cv_lib_mail_maillock = yes; then
13488 cat >>confdefs.h <<_ACEOF
13489 #define HAVE_LIBMAIL 1
13490 _ACEOF
13492 LIBS="-lmail $LIBS"
13497 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13498 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13499 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502 ac_check_lib_save_LIBS=$LIBS
13503 LIBS="-llockfile $LIBS"
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13511 /* Override any gcc2 internal prototype to avoid an error. */
13512 #ifdef __cplusplus
13513 extern "C"
13514 #endif
13515 /* We use char because int might match the return type of a gcc2
13516 builtin and then its argument prototype would still apply. */
13517 char maillock ();
13519 main ()
13521 maillock ();
13523 return 0;
13525 _ACEOF
13526 rm -f conftest.$ac_objext conftest$ac_exeext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528 (eval $ac_link) 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -z "$ac_c_werror_flag"
13536 || test ! -s conftest.err'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; } &&
13542 { ac_try='test -s conftest$ac_exeext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_lib_lockfile_maillock=yes
13549 else
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_cv_lib_lockfile_maillock=no
13555 rm -f conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13559 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13560 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13561 if test $ac_cv_lib_lockfile_maillock = yes; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBLOCKFILE 1
13564 _ACEOF
13566 LIBS="-llockfile $LIBS"
13570 # If we have the shared liblockfile, assume we must use it for mail
13571 # locking (e.g. Debian). If we couldn't link against liblockfile
13572 # (no liblockfile.a installed), ensure that we don't need to.
13573 if test "$ac_cv_lib_lockfile_maillock" = no; then
13574 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13575 set dummy liblockfile.so; ac_word=$2
13576 echo "$as_me:$LINENO: checking for $ac_word" >&5
13577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13578 if test "${ac_cv_prog_liblockfile+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 if test -n "$liblockfile"; then
13582 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13583 else
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13586 for as_dir in $as_dummy
13588 IFS=$as_save_IFS
13589 test -z "$as_dir" && as_dir=.
13590 for ac_exec_ext in '' $ac_executable_extensions; do
13591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592 ac_cv_prog_liblockfile="yes"
13593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 break 2
13596 done
13597 done
13599 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13602 liblockfile=$ac_cv_prog_liblockfile
13603 if test -n "$liblockfile"; then
13604 echo "$as_me:$LINENO: result: $liblockfile" >&5
13605 echo "${ECHO_T}$liblockfile" >&6
13606 else
13607 echo "$as_me:$LINENO: result: no" >&5
13608 echo "${ECHO_T}no" >&6
13611 if test $ac_cv_prog_liblockfile = yes; then
13612 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13613 This probably means that movemail could lose mail.
13614 There may be a \`development' package to install containing liblockfile." >&5
13615 echo "$as_me: error: Shared liblockfile found but can't link against it.
13616 This probably means that movemail could lose mail.
13617 There may be a \`development' package to install containing liblockfile." >&2;}
13618 { (exit 1); exit 1; }; }
13619 else :
13623 for ac_func in touchlock
13625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13626 echo "$as_me:$LINENO: checking for $ac_func" >&5
13627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13628 if eval "test \"\${$as_ac_var+set}\" = set"; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h. */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13639 #define $ac_func innocuous_$ac_func
13641 /* System header to define __stub macros and hopefully few prototypes,
13642 which can conflict with char $ac_func (); below.
13643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13644 <limits.h> exists even on freestanding compilers. */
13646 #ifdef __STDC__
13647 # include <limits.h>
13648 #else
13649 # include <assert.h>
13650 #endif
13652 #undef $ac_func
13654 /* Override any gcc2 internal prototype to avoid an error. */
13655 #ifdef __cplusplus
13656 extern "C"
13658 #endif
13659 /* We use char because int might match the return type of a gcc2
13660 builtin and then its argument prototype would still apply. */
13661 char $ac_func ();
13662 /* The GNU C library defines this for functions which it implements
13663 to always fail with ENOSYS. Some functions are actually named
13664 something starting with __ and the normal name is an alias. */
13665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13666 choke me
13667 #else
13668 char (*f) () = $ac_func;
13669 #endif
13670 #ifdef __cplusplus
13672 #endif
13675 main ()
13677 return f != $ac_func;
13679 return 0;
13681 _ACEOF
13682 rm -f conftest.$ac_objext conftest$ac_exeext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag"
13692 || test ! -s conftest.err'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest$ac_exeext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 eval "$as_ac_var=yes"
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 eval "$as_ac_var=no"
13711 rm -f conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
13714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13716 if test `eval echo '${'$as_ac_var'}'` = yes; then
13717 cat >>confdefs.h <<_ACEOF
13718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13719 _ACEOF
13722 done
13725 for ac_header in maillock.h
13727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13729 echo "$as_me:$LINENO: checking for $ac_header" >&5
13730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13736 else
13737 # Is the header compilable?
13738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 $ac_includes_default
13747 #include <$ac_header>
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>conftest.er1
13752 ac_status=$?
13753 grep -v '^ *+' conftest.er1 >conftest.err
13754 rm -f conftest.er1
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -z "$ac_c_werror_flag"
13759 || test ! -s conftest.err'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest.$ac_objext'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 ac_header_compiler=yes
13772 else
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_header_compiler=no
13778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13780 echo "${ECHO_T}$ac_header_compiler" >&6
13782 # Is the header present?
13783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 #include <$ac_header>
13792 _ACEOF
13793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } >/dev/null; then
13801 if test -s conftest.err; then
13802 ac_cpp_err=$ac_c_preproc_warn_flag
13803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13804 else
13805 ac_cpp_err=
13807 else
13808 ac_cpp_err=yes
13810 if test -z "$ac_cpp_err"; then
13811 ac_header_preproc=yes
13812 else
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 ac_header_preproc=no
13818 rm -f conftest.err conftest.$ac_ext
13819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13820 echo "${ECHO_T}$ac_header_preproc" >&6
13822 # So? What about this header?
13823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13824 yes:no: )
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13829 ac_header_preproc=yes
13831 no:yes:* )
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13845 cat <<\_ASBOX
13846 ## ------------------------------------------ ##
13847 ## Report this to the AC_PACKAGE_NAME lists. ##
13848 ## ------------------------------------------ ##
13849 _ASBOX
13851 sed "s/^/$as_me: WARNING: /" >&2
13853 esac
13854 echo "$as_me:$LINENO: checking for $ac_header" >&5
13855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859 eval "$as_ac_Header=\$ac_header_preproc"
13861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13866 cat >>confdefs.h <<_ACEOF
13867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13868 _ACEOF
13872 done
13942 for ac_func in gethostname getdomainname dup2 \
13943 rename closedir mkdir rmdir sysinfo getrusage \
13944 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13945 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13946 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13947 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13948 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13949 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13950 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13953 echo "$as_me:$LINENO: checking for $ac_func" >&5
13954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13955 if eval "test \"\${$as_ac_var+set}\" = set"; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958 cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h. */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13966 #define $ac_func innocuous_$ac_func
13968 /* System header to define __stub macros and hopefully few prototypes,
13969 which can conflict with char $ac_func (); below.
13970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13971 <limits.h> exists even on freestanding compilers. */
13973 #ifdef __STDC__
13974 # include <limits.h>
13975 #else
13976 # include <assert.h>
13977 #endif
13979 #undef $ac_func
13981 /* Override any gcc2 internal prototype to avoid an error. */
13982 #ifdef __cplusplus
13983 extern "C"
13985 #endif
13986 /* We use char because int might match the return type of a gcc2
13987 builtin and then its argument prototype would still apply. */
13988 char $ac_func ();
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13993 choke me
13994 #else
13995 char (*f) () = $ac_func;
13996 #endif
13997 #ifdef __cplusplus
13999 #endif
14002 main ()
14004 return f != $ac_func;
14006 return 0;
14008 _ACEOF
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
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); }; } &&
14025 { ac_try='test -s conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 eval "$as_ac_var=yes"
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 eval "$as_ac_var=no"
14038 rm -f conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14043 if test `eval echo '${'$as_ac_var'}'` = yes; then
14044 cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14046 _ACEOF
14049 done
14053 for ac_header in sys/un.h
14055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo "$as_me:$LINENO: checking for $ac_header" >&5
14058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14064 else
14065 # Is the header compilable?
14066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 $ac_includes_default
14075 #include <$ac_header>
14076 _ACEOF
14077 rm -f conftest.$ac_objext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14079 (eval $ac_compile) 2>conftest.er1
14080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } &&
14086 { ac_try='test -z "$ac_c_werror_flag"
14087 || test ! -s conftest.err'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest.$ac_objext'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
14099 ac_header_compiler=yes
14100 else
14101 echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14104 ac_header_compiler=no
14106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14108 echo "${ECHO_T}$ac_header_compiler" >&6
14110 # Is the header present?
14111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h. */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14119 #include <$ac_header>
14120 _ACEOF
14121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } >/dev/null; then
14129 if test -s conftest.err; then
14130 ac_cpp_err=$ac_c_preproc_warn_flag
14131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14132 else
14133 ac_cpp_err=
14135 else
14136 ac_cpp_err=yes
14138 if test -z "$ac_cpp_err"; then
14139 ac_header_preproc=yes
14140 else
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ac_header_preproc=no
14146 rm -f conftest.err conftest.$ac_ext
14147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14148 echo "${ECHO_T}$ac_header_preproc" >&6
14150 # So? What about this header?
14151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14152 yes:no: )
14153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14157 ac_header_preproc=yes
14159 no:yes:* )
14160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14173 cat <<\_ASBOX
14174 ## ------------------------------------------ ##
14175 ## Report this to the AC_PACKAGE_NAME lists. ##
14176 ## ------------------------------------------ ##
14177 _ASBOX
14179 sed "s/^/$as_me: WARNING: /" >&2
14181 esac
14182 echo "$as_me:$LINENO: checking for $ac_header" >&5
14183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187 eval "$as_ac_Header=\$ac_header_preproc"
14189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14194 cat >>confdefs.h <<_ACEOF
14195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14196 _ACEOF
14200 done
14206 for ac_header in stdlib.h sys/time.h unistd.h
14208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14210 echo "$as_me:$LINENO: checking for $ac_header" >&5
14211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14217 else
14218 # Is the header compilable?
14219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14221 cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h. */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 $ac_includes_default
14228 #include <$ac_header>
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>conftest.er1
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_header_compiler=yes
14253 else
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_header_compiler=no
14259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14261 echo "${ECHO_T}$ac_header_compiler" >&6
14263 # Is the header present?
14264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h. */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 #include <$ac_header>
14273 _ACEOF
14274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } >/dev/null; then
14282 if test -s conftest.err; then
14283 ac_cpp_err=$ac_c_preproc_warn_flag
14284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14285 else
14286 ac_cpp_err=
14288 else
14289 ac_cpp_err=yes
14291 if test -z "$ac_cpp_err"; then
14292 ac_header_preproc=yes
14293 else
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14297 ac_header_preproc=no
14299 rm -f conftest.err conftest.$ac_ext
14300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14301 echo "${ECHO_T}$ac_header_preproc" >&6
14303 # So? What about this header?
14304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14305 yes:no: )
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14310 ac_header_preproc=yes
14312 no:yes:* )
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14326 cat <<\_ASBOX
14327 ## ------------------------------------------ ##
14328 ## Report this to the AC_PACKAGE_NAME lists. ##
14329 ## ------------------------------------------ ##
14330 _ASBOX
14332 sed "s/^/$as_me: WARNING: /" >&2
14334 esac
14335 echo "$as_me:$LINENO: checking for $ac_header" >&5
14336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340 eval "$as_ac_Header=\$ac_header_preproc"
14342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14347 cat >>confdefs.h <<_ACEOF
14348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14349 _ACEOF
14353 done
14356 for ac_func in alarm
14358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14359 echo "$as_me:$LINENO: checking for $ac_func" >&5
14360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14361 if eval "test \"\${$as_ac_var+set}\" = set"; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14372 #define $ac_func innocuous_$ac_func
14374 /* System header to define __stub macros and hopefully few prototypes,
14375 which can conflict with char $ac_func (); below.
14376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14377 <limits.h> exists even on freestanding compilers. */
14379 #ifdef __STDC__
14380 # include <limits.h>
14381 #else
14382 # include <assert.h>
14383 #endif
14385 #undef $ac_func
14387 /* Override any gcc2 internal prototype to avoid an error. */
14388 #ifdef __cplusplus
14389 extern "C"
14391 #endif
14392 /* We use char because int might match the return type of a gcc2
14393 builtin and then its argument prototype would still apply. */
14394 char $ac_func ();
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14399 choke me
14400 #else
14401 char (*f) () = $ac_func;
14402 #endif
14403 #ifdef __cplusplus
14405 #endif
14408 main ()
14410 return f != $ac_func;
14412 return 0;
14414 _ACEOF
14415 rm -f conftest.$ac_objext conftest$ac_exeext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest$ac_exeext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 eval "$as_ac_var=yes"
14438 else
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 eval "$as_ac_var=no"
14444 rm -f conftest.err conftest.$ac_objext \
14445 conftest$ac_exeext conftest.$ac_ext
14447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14449 if test `eval echo '${'$as_ac_var'}'` = yes; then
14450 cat >>confdefs.h <<_ACEOF
14451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14452 _ACEOF
14455 done
14457 echo "$as_me:$LINENO: checking for working mktime" >&5
14458 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14459 if test "${ac_cv_func_working_mktime+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462 if test "$cross_compiling" = yes; then
14463 ac_cv_func_working_mktime=no
14464 else
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 /* Test program from Paul Eggert and Tony Leneis. */
14472 #if TIME_WITH_SYS_TIME
14473 # include <sys/time.h>
14474 # include <time.h>
14475 #else
14476 # if HAVE_SYS_TIME_H
14477 # include <sys/time.h>
14478 # else
14479 # include <time.h>
14480 # endif
14481 #endif
14483 #if HAVE_STDLIB_H
14484 # include <stdlib.h>
14485 #endif
14487 #if HAVE_UNISTD_H
14488 # include <unistd.h>
14489 #endif
14491 #if !HAVE_ALARM
14492 # define alarm(X) /* empty */
14493 #endif
14495 /* Work around redefinition to rpl_putenv by other config tests. */
14496 #undef putenv
14498 static time_t time_t_max;
14499 static time_t time_t_min;
14501 /* Values we'll use to set the TZ environment variable. */
14502 static char *tz_strings[] = {
14503 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14504 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14506 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14508 /* Fail if mktime fails to convert a date in the spring-forward gap.
14509 Based on a problem report from Andreas Jaeger. */
14510 static void
14511 spring_forward_gap ()
14513 /* glibc (up to about 1998-10-07) failed this test. */
14514 struct tm tm;
14516 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14517 instead of "TZ=America/Vancouver" in order to detect the bug even
14518 on systems that don't support the Olson extension, or don't have the
14519 full zoneinfo tables installed. */
14520 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14522 tm.tm_year = 98;
14523 tm.tm_mon = 3;
14524 tm.tm_mday = 5;
14525 tm.tm_hour = 2;
14526 tm.tm_min = 0;
14527 tm.tm_sec = 0;
14528 tm.tm_isdst = -1;
14529 if (mktime (&tm) == (time_t)-1)
14530 exit (1);
14533 static void
14534 mktime_test1 (now)
14535 time_t now;
14537 struct tm *lt;
14538 if ((lt = localtime (&now)) && mktime (lt) != now)
14539 exit (1);
14542 static void
14543 mktime_test (now)
14544 time_t now;
14546 mktime_test1 (now);
14547 mktime_test1 ((time_t) (time_t_max - now));
14548 mktime_test1 ((time_t) (time_t_min + now));
14551 static void
14552 irix_6_4_bug ()
14554 /* Based on code from Ariel Faigon. */
14555 struct tm tm;
14556 tm.tm_year = 96;
14557 tm.tm_mon = 3;
14558 tm.tm_mday = 0;
14559 tm.tm_hour = 0;
14560 tm.tm_min = 0;
14561 tm.tm_sec = 0;
14562 tm.tm_isdst = -1;
14563 mktime (&tm);
14564 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14565 exit (1);
14568 static void
14569 bigtime_test (j)
14570 int j;
14572 struct tm tm;
14573 time_t now;
14574 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14575 now = mktime (&tm);
14576 if (now != (time_t) -1)
14578 struct tm *lt = localtime (&now);
14579 if (! (lt
14580 && lt->tm_year == tm.tm_year
14581 && lt->tm_mon == tm.tm_mon
14582 && lt->tm_mday == tm.tm_mday
14583 && lt->tm_hour == tm.tm_hour
14584 && lt->tm_min == tm.tm_min
14585 && lt->tm_sec == tm.tm_sec
14586 && lt->tm_yday == tm.tm_yday
14587 && lt->tm_wday == tm.tm_wday
14588 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14589 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14590 exit (1);
14595 main ()
14597 time_t t, delta;
14598 int i, j;
14600 /* This test makes some buggy mktime implementations loop.
14601 Give up after 60 seconds; a mktime slower than that
14602 isn't worth using anyway. */
14603 alarm (60);
14605 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14606 continue;
14607 time_t_max--;
14608 if ((time_t) -1 < 0)
14609 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14610 continue;
14611 delta = time_t_max / 997; /* a suitable prime number */
14612 for (i = 0; i < N_STRINGS; i++)
14614 if (tz_strings[i])
14615 putenv (tz_strings[i]);
14617 for (t = 0; t <= time_t_max - delta; t += delta)
14618 mktime_test (t);
14619 mktime_test ((time_t) 1);
14620 mktime_test ((time_t) (60 * 60));
14621 mktime_test ((time_t) (60 * 60 * 24));
14623 for (j = 1; 0 < j; j *= 2)
14624 bigtime_test (j);
14625 bigtime_test (j - 1);
14627 irix_6_4_bug ();
14628 spring_forward_gap ();
14629 exit (0);
14631 _ACEOF
14632 rm -f conftest$ac_exeext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14634 (eval $ac_link) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_cv_func_working_mktime=yes
14644 else
14645 echo "$as_me: program exited with status $ac_status" >&5
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ( exit $ac_status )
14650 ac_cv_func_working_mktime=no
14652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14655 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14656 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14657 if test $ac_cv_func_working_mktime = no; then
14658 case $LIBOBJS in
14659 "mktime.$ac_objext" | \
14660 *" mktime.$ac_objext" | \
14661 "mktime.$ac_objext "* | \
14662 *" mktime.$ac_objext "* ) ;;
14663 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14664 esac
14668 if test "$ac_cv_func_working_mktime" = no; then
14670 cat >>confdefs.h <<\_ACEOF
14671 #define BROKEN_MKTIME 1
14672 _ACEOF
14676 ac_have_func=no # yes means we've found a way to get the load average.
14678 # Make sure getloadavg.c is where it belongs, at configure-time.
14679 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14680 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14681 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14682 { (exit 1); exit 1; }; }
14684 ac_save_LIBS=$LIBS
14686 # Check for getloadavg, but be sure not to touch the cache variable.
14687 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14688 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14689 if test "${ac_cv_func_getloadavg+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14700 #define getloadavg innocuous_getloadavg
14702 /* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char getloadavg (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14707 #ifdef __STDC__
14708 # include <limits.h>
14709 #else
14710 # include <assert.h>
14711 #endif
14713 #undef getloadavg
14715 /* Override any gcc2 internal prototype to avoid an error. */
14716 #ifdef __cplusplus
14717 extern "C"
14719 #endif
14720 /* We use char because int might match the return type of a gcc2
14721 builtin and then its argument prototype would still apply. */
14722 char getloadavg ();
14723 /* The GNU C library defines this for functions which it implements
14724 to always fail with ENOSYS. Some functions are actually named
14725 something starting with __ and the normal name is an alias. */
14726 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14727 choke me
14728 #else
14729 char (*f) () = getloadavg;
14730 #endif
14731 #ifdef __cplusplus
14733 #endif
14736 main ()
14738 return f != getloadavg;
14740 return 0;
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag"
14753 || test ! -s conftest.err'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } &&
14759 { ac_try='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 ac_cv_func_getloadavg=yes
14766 else
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14770 ac_cv_func_getloadavg=no
14772 rm -f conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14775 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14776 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14777 if test $ac_cv_func_getloadavg = yes; then
14778 exit 0
14779 else
14780 exit 1
14782 ) && ac_have_func=yes
14784 # On HPUX9, an unprivileged user can get load averages through this function.
14786 for ac_func in pstat_getdynamic
14788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14789 echo "$as_me:$LINENO: checking for $ac_func" >&5
14790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_var+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14802 #define $ac_func innocuous_$ac_func
14804 /* System header to define __stub macros and hopefully few prototypes,
14805 which can conflict with char $ac_func (); below.
14806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14807 <limits.h> exists even on freestanding compilers. */
14809 #ifdef __STDC__
14810 # include <limits.h>
14811 #else
14812 # include <assert.h>
14813 #endif
14815 #undef $ac_func
14817 /* Override any gcc2 internal prototype to avoid an error. */
14818 #ifdef __cplusplus
14819 extern "C"
14821 #endif
14822 /* We use char because int might match the return type of a gcc2
14823 builtin and then its argument prototype would still apply. */
14824 char $ac_func ();
14825 /* The GNU C library defines this for functions which it implements
14826 to always fail with ENOSYS. Some functions are actually named
14827 something starting with __ and the normal name is an alias. */
14828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14829 choke me
14830 #else
14831 char (*f) () = $ac_func;
14832 #endif
14833 #ifdef __cplusplus
14835 #endif
14838 main ()
14840 return f != $ac_func;
14842 return 0;
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847 (eval $ac_link) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest$ac_exeext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 eval "$as_ac_var=yes"
14868 else
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 eval "$as_ac_var=no"
14874 rm -f conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14879 if test `eval echo '${'$as_ac_var'}'` = yes; then
14880 cat >>confdefs.h <<_ACEOF
14881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14882 _ACEOF
14885 done
14888 # Solaris has libkstat which does not require root.
14890 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14891 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14892 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895 ac_check_lib_save_LIBS=$LIBS
14896 LIBS="-lkstat $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14904 /* Override any gcc2 internal prototype to avoid an error. */
14905 #ifdef __cplusplus
14906 extern "C"
14907 #endif
14908 /* We use char because int might match the return type of a gcc2
14909 builtin and then its argument prototype would still apply. */
14910 char kstat_open ();
14912 main ()
14914 kstat_open ();
14916 return 0;
14918 _ACEOF
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag"
14929 || 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_kstat_kstat_open=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_lib_kstat_kstat_open=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_kstat_kstat_open" >&5
14953 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14954 if test $ac_cv_lib_kstat_kstat_open = yes; then
14955 cat >>confdefs.h <<_ACEOF
14956 #define HAVE_LIBKSTAT 1
14957 _ACEOF
14959 LIBS="-lkstat $LIBS"
14963 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14965 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14966 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14967 # to get the right answer into the cache.
14968 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14969 if test $ac_have_func = no; then
14970 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14971 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14972 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975 ac_check_lib_save_LIBS=$LIBS
14976 LIBS="-lelf $LIBS"
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h. */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14984 /* Override any gcc2 internal prototype to avoid an error. */
14985 #ifdef __cplusplus
14986 extern "C"
14987 #endif
14988 /* We use char because int might match the return type of a gcc2
14989 builtin and then its argument prototype would still apply. */
14990 char elf_begin ();
14992 main ()
14994 elf_begin ();
14996 return 0;
14998 _ACEOF
14999 rm -f conftest.$ac_objext conftest$ac_exeext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15001 (eval $ac_link) 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest$ac_exeext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_cv_lib_elf_elf_begin=yes
15022 else
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 ac_cv_lib_elf_elf_begin=no
15028 rm -f conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15030 LIBS=$ac_check_lib_save_LIBS
15032 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15033 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15034 if test $ac_cv_lib_elf_elf_begin = yes; then
15035 LIBS="-lelf $LIBS"
15039 if test $ac_have_func = no; then
15040 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15041 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15042 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045 ac_check_lib_save_LIBS=$LIBS
15046 LIBS="-lkvm $LIBS"
15047 cat >conftest.$ac_ext <<_ACEOF
15048 /* confdefs.h. */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15054 /* Override any gcc2 internal prototype to avoid an error. */
15055 #ifdef __cplusplus
15056 extern "C"
15057 #endif
15058 /* We use char because int might match the return type of a gcc2
15059 builtin and then its argument prototype would still apply. */
15060 char kvm_open ();
15062 main ()
15064 kvm_open ();
15066 return 0;
15068 _ACEOF
15069 rm -f conftest.$ac_objext conftest$ac_exeext
15070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15071 (eval $ac_link) 2>conftest.er1
15072 ac_status=$?
15073 grep -v '^ *+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } &&
15078 { ac_try='test -z "$ac_c_werror_flag"
15079 || test ! -s conftest.err'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; } &&
15085 { ac_try='test -s conftest$ac_exeext'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 ac_cv_lib_kvm_kvm_open=yes
15092 else
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 ac_cv_lib_kvm_kvm_open=no
15098 rm -f conftest.err conftest.$ac_objext \
15099 conftest$ac_exeext conftest.$ac_ext
15100 LIBS=$ac_check_lib_save_LIBS
15102 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15103 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15104 if test $ac_cv_lib_kvm_kvm_open = yes; then
15105 LIBS="-lkvm $LIBS"
15108 # Check for the 4.4BSD definition of getloadavg.
15109 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15110 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15111 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114 ac_check_lib_save_LIBS=$LIBS
15115 LIBS="-lutil $LIBS"
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15123 /* Override any gcc2 internal prototype to avoid an error. */
15124 #ifdef __cplusplus
15125 extern "C"
15126 #endif
15127 /* We use char because int might match the return type of a gcc2
15128 builtin and then its argument prototype would still apply. */
15129 char getloadavg ();
15131 main ()
15133 getloadavg ();
15135 return 0;
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140 (eval $ac_link) 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_lib_util_getloadavg=yes
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_cv_lib_util_getloadavg=no
15167 rm -f conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext conftest.$ac_ext
15169 LIBS=$ac_check_lib_save_LIBS
15171 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15172 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15173 if test $ac_cv_lib_util_getloadavg = yes; then
15174 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15179 if test $ac_have_func = no; then
15180 # There is a commonly available library for RS/6000 AIX.
15181 # Since it is not a standard part of AIX, it might be installed locally.
15182 ac_getloadavg_LIBS=$LIBS
15183 LIBS="-L/usr/local/lib $LIBS"
15184 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15185 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15186 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189 ac_check_lib_save_LIBS=$LIBS
15190 LIBS="-lgetloadavg $LIBS"
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15198 /* Override any gcc2 internal prototype to avoid an error. */
15199 #ifdef __cplusplus
15200 extern "C"
15201 #endif
15202 /* We use char because int might match the return type of a gcc2
15203 builtin and then its argument prototype would still apply. */
15204 char getloadavg ();
15206 main ()
15208 getloadavg ();
15210 return 0;
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } &&
15222 { ac_try='test -z "$ac_c_werror_flag"
15223 || test ! -s conftest.err'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest$ac_exeext'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 ac_cv_lib_getloadavg_getloadavg=yes
15236 else
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_cv_lib_getloadavg_getloadavg=no
15242 rm -f conftest.err conftest.$ac_objext \
15243 conftest$ac_exeext conftest.$ac_ext
15244 LIBS=$ac_check_lib_save_LIBS
15246 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15247 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15248 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15249 LIBS="-lgetloadavg $LIBS"
15250 else
15251 LIBS=$ac_getloadavg_LIBS
15256 # Make sure it is really in the library, if we think we found it,
15257 # otherwise set up the replacement function.
15259 for ac_func in getloadavg
15261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15262 echo "$as_me:$LINENO: checking for $ac_func" >&5
15263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15264 if eval "test \"\${$as_ac_var+set}\" = set"; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267 cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h. */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15275 #define $ac_func innocuous_$ac_func
15277 /* System header to define __stub macros and hopefully few prototypes,
15278 which can conflict with char $ac_func (); below.
15279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15280 <limits.h> exists even on freestanding compilers. */
15282 #ifdef __STDC__
15283 # include <limits.h>
15284 #else
15285 # include <assert.h>
15286 #endif
15288 #undef $ac_func
15290 /* Override any gcc2 internal prototype to avoid an error. */
15291 #ifdef __cplusplus
15292 extern "C"
15294 #endif
15295 /* We use char because int might match the return type of a gcc2
15296 builtin and then its argument prototype would still apply. */
15297 char $ac_func ();
15298 /* The GNU C library defines this for functions which it implements
15299 to always fail with ENOSYS. Some functions are actually named
15300 something starting with __ and the normal name is an alias. */
15301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15302 choke me
15303 #else
15304 char (*f) () = $ac_func;
15305 #endif
15306 #ifdef __cplusplus
15308 #endif
15311 main ()
15313 return f != $ac_func;
15315 return 0;
15317 _ACEOF
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320 (eval $ac_link) 2>conftest.er1
15321 ac_status=$?
15322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag"
15328 || test ! -s conftest.err'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try='test -s conftest$ac_exeext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 eval "$as_ac_var=yes"
15341 else
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 eval "$as_ac_var=no"
15347 rm -f conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15352 if test `eval echo '${'$as_ac_var'}'` = yes; then
15353 cat >>confdefs.h <<_ACEOF
15354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15355 _ACEOF
15357 else
15358 case $LIBOBJS in
15359 "getloadavg.$ac_objext" | \
15360 *" getloadavg.$ac_objext" | \
15361 "getloadavg.$ac_objext "* | \
15362 *" getloadavg.$ac_objext "* ) ;;
15363 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15364 esac
15367 cat >>confdefs.h <<\_ACEOF
15368 #define C_GETLOADAVG 1
15369 _ACEOF
15371 # Figure out what our getloadavg.c needs.
15372 ac_have_func=no
15373 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15374 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15375 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15376 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15380 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15381 else
15382 # Is the header compilable?
15383 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15384 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15386 /* confdefs.h. */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 $ac_includes_default
15392 #include <sys/dg_sys_info.h>
15393 _ACEOF
15394 rm -f conftest.$ac_objext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15396 (eval $ac_compile) 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -z "$ac_c_werror_flag"
15404 || test ! -s conftest.err'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try='test -s conftest.$ac_objext'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 ac_header_compiler=yes
15417 else
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15421 ac_header_compiler=no
15423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15425 echo "${ECHO_T}$ac_header_compiler" >&6
15427 # Is the header present?
15428 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15429 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15430 cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h. */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 #include <sys/dg_sys_info.h>
15437 _ACEOF
15438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } >/dev/null; then
15446 if test -s conftest.err; then
15447 ac_cpp_err=$ac_c_preproc_warn_flag
15448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15449 else
15450 ac_cpp_err=
15452 else
15453 ac_cpp_err=yes
15455 if test -z "$ac_cpp_err"; then
15456 ac_header_preproc=yes
15457 else
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_header_preproc=no
15463 rm -f conftest.err conftest.$ac_ext
15464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15465 echo "${ECHO_T}$ac_header_preproc" >&6
15467 # So? What about this header?
15468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15469 yes:no: )
15470 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15471 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15473 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15474 ac_header_preproc=yes
15476 no:yes:* )
15477 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15478 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15480 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15482 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15484 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15486 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15488 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15490 cat <<\_ASBOX
15491 ## ------------------------------------------ ##
15492 ## Report this to the AC_PACKAGE_NAME lists. ##
15493 ## ------------------------------------------ ##
15494 _ASBOX
15496 sed "s/^/$as_me: WARNING: /" >&2
15498 esac
15499 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15500 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15501 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 else
15504 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15506 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15507 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15510 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15511 ac_have_func=yes
15513 cat >>confdefs.h <<\_ACEOF
15514 #define DGUX 1
15515 _ACEOF
15518 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15519 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15520 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 else
15523 ac_check_lib_save_LIBS=$LIBS
15524 LIBS="-ldgc $LIBS"
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h. */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15532 /* Override any gcc2 internal prototype to avoid an error. */
15533 #ifdef __cplusplus
15534 extern "C"
15535 #endif
15536 /* We use char because int might match the return type of a gcc2
15537 builtin and then its argument prototype would still apply. */
15538 char dg_sys_info ();
15540 main ()
15542 dg_sys_info ();
15544 return 0;
15546 _ACEOF
15547 rm -f conftest.$ac_objext conftest$ac_exeext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549 (eval $ac_link) 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag"
15557 || test ! -s conftest.err'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
15563 { ac_try='test -s conftest$ac_exeext'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }; then
15569 ac_cv_lib_dgc_dg_sys_info=yes
15570 else
15571 echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15574 ac_cv_lib_dgc_dg_sys_info=no
15576 rm -f conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15578 LIBS=$ac_check_lib_save_LIBS
15580 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15581 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15582 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15583 cat >>confdefs.h <<_ACEOF
15584 #define HAVE_LIBDGC 1
15585 _ACEOF
15587 LIBS="-ldgc $LIBS"
15595 if test "${ac_cv_header_locale_h+set}" = set; then
15596 echo "$as_me:$LINENO: checking for locale.h" >&5
15597 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15598 if test "${ac_cv_header_locale_h+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15602 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15603 else
15604 # Is the header compilable?
15605 echo "$as_me:$LINENO: checking locale.h usability" >&5
15606 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15607 cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h. */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15613 $ac_includes_default
15614 #include <locale.h>
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag"
15626 || test ! -s conftest.err'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_header_compiler=yes
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_header_compiler=no
15645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15647 echo "${ECHO_T}$ac_header_compiler" >&6
15649 # Is the header present?
15650 echo "$as_me:$LINENO: checking locale.h presence" >&5
15651 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h. */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 #include <locale.h>
15659 _ACEOF
15660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } >/dev/null; then
15668 if test -s conftest.err; then
15669 ac_cpp_err=$ac_c_preproc_warn_flag
15670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15671 else
15672 ac_cpp_err=
15674 else
15675 ac_cpp_err=yes
15677 if test -z "$ac_cpp_err"; then
15678 ac_header_preproc=yes
15679 else
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_header_preproc=no
15685 rm -f conftest.err conftest.$ac_ext
15686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15687 echo "${ECHO_T}$ac_header_preproc" >&6
15689 # So? What about this header?
15690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15691 yes:no: )
15692 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15693 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15695 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15696 ac_header_preproc=yes
15698 no:yes:* )
15699 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15700 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15702 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15704 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15706 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15708 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15710 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15712 cat <<\_ASBOX
15713 ## ------------------------------------------ ##
15714 ## Report this to the AC_PACKAGE_NAME lists. ##
15715 ## ------------------------------------------ ##
15716 _ASBOX
15718 sed "s/^/$as_me: WARNING: /" >&2
15720 esac
15721 echo "$as_me:$LINENO: checking for locale.h" >&5
15722 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15723 if test "${ac_cv_header_locale_h+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726 ac_cv_header_locale_h=$ac_header_preproc
15728 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15729 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15735 for ac_func in setlocale
15737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15738 echo "$as_me:$LINENO: checking for $ac_func" >&5
15739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15740 if eval "test \"\${$as_ac_var+set}\" = set"; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15751 #define $ac_func innocuous_$ac_func
15753 /* System header to define __stub macros and hopefully few prototypes,
15754 which can conflict with char $ac_func (); below.
15755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15756 <limits.h> exists even on freestanding compilers. */
15758 #ifdef __STDC__
15759 # include <limits.h>
15760 #else
15761 # include <assert.h>
15762 #endif
15764 #undef $ac_func
15766 /* Override any gcc2 internal prototype to avoid an error. */
15767 #ifdef __cplusplus
15768 extern "C"
15770 #endif
15771 /* We use char because int might match the return type of a gcc2
15772 builtin and then its argument prototype would still apply. */
15773 char $ac_func ();
15774 /* The GNU C library defines this for functions which it implements
15775 to always fail with ENOSYS. Some functions are actually named
15776 something starting with __ and the normal name is an alias. */
15777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15778 choke me
15779 #else
15780 char (*f) () = $ac_func;
15781 #endif
15782 #ifdef __cplusplus
15784 #endif
15787 main ()
15789 return f != $ac_func;
15791 return 0;
15793 _ACEOF
15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15796 (eval $ac_link) 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try='test -z "$ac_c_werror_flag"
15804 || test ! -s conftest.err'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try='test -s conftest$ac_exeext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 eval "$as_ac_var=yes"
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 eval "$as_ac_var=no"
15823 rm -f conftest.err conftest.$ac_objext \
15824 conftest$ac_exeext conftest.$ac_ext
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15828 if test `eval echo '${'$as_ac_var'}'` = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15831 _ACEOF
15834 done
15837 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15838 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15839 # Irix 4.0.5F has the header but not the library.
15840 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15841 ac_have_func=yes
15843 cat >>confdefs.h <<\_ACEOF
15844 #define SVR4 1
15845 _ACEOF
15849 if test $ac_have_func = no; then
15850 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15851 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15852 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15853 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15857 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15858 else
15859 # Is the header compilable?
15860 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15861 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h. */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15868 $ac_includes_default
15869 #include <inq_stats/cpustats.h>
15870 _ACEOF
15871 rm -f conftest.$ac_objext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15873 (eval $ac_compile) 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try='test -z "$ac_c_werror_flag"
15881 || test ! -s conftest.err'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_header_compiler=yes
15894 else
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ac_header_compiler=no
15900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15902 echo "${ECHO_T}$ac_header_compiler" >&6
15904 # Is the header present?
15905 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15906 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15907 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h. */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 #include <inq_stats/cpustats.h>
15914 _ACEOF
15915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15917 ac_status=$?
15918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } >/dev/null; then
15923 if test -s conftest.err; then
15924 ac_cpp_err=$ac_c_preproc_warn_flag
15925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15926 else
15927 ac_cpp_err=
15929 else
15930 ac_cpp_err=yes
15932 if test -z "$ac_cpp_err"; then
15933 ac_header_preproc=yes
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ac_header_preproc=no
15940 rm -f conftest.err conftest.$ac_ext
15941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15942 echo "${ECHO_T}$ac_header_preproc" >&6
15944 # So? What about this header?
15945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15946 yes:no: )
15947 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15948 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15950 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15951 ac_header_preproc=yes
15953 no:yes:* )
15954 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15955 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15957 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15959 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15961 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15963 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15965 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15967 cat <<\_ASBOX
15968 ## ------------------------------------------ ##
15969 ## Report this to the AC_PACKAGE_NAME lists. ##
15970 ## ------------------------------------------ ##
15971 _ASBOX
15973 sed "s/^/$as_me: WARNING: /" >&2
15975 esac
15976 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15977 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15978 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 else
15981 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15983 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15984 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15987 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15988 ac_have_func=yes
15990 cat >>confdefs.h <<\_ACEOF
15991 #define UMAX 1
15992 _ACEOF
15995 cat >>confdefs.h <<\_ACEOF
15996 #define UMAX4_3 1
15997 _ACEOF
16004 if test $ac_have_func = no; then
16005 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16006 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16007 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16008 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16012 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16013 else
16014 # Is the header compilable?
16015 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16016 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16017 cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h. */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16023 $ac_includes_default
16024 #include <sys/cpustats.h>
16025 _ACEOF
16026 rm -f conftest.$ac_objext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028 (eval $ac_compile) 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag"
16036 || test ! -s conftest.err'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_header_compiler=yes
16049 else
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_header_compiler=no
16055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16057 echo "${ECHO_T}$ac_header_compiler" >&6
16059 # Is the header present?
16060 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16061 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h. */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16068 #include <sys/cpustats.h>
16069 _ACEOF
16070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } >/dev/null; then
16078 if test -s conftest.err; then
16079 ac_cpp_err=$ac_c_preproc_warn_flag
16080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16081 else
16082 ac_cpp_err=
16084 else
16085 ac_cpp_err=yes
16087 if test -z "$ac_cpp_err"; then
16088 ac_header_preproc=yes
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_header_preproc=no
16095 rm -f conftest.err conftest.$ac_ext
16096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097 echo "${ECHO_T}$ac_header_preproc" >&6
16099 # So? What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 yes:no: )
16102 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16103 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16105 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16106 ac_header_preproc=yes
16108 no:yes:* )
16109 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16110 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16112 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16114 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16116 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16118 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16120 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16122 cat <<\_ASBOX
16123 ## ------------------------------------------ ##
16124 ## Report this to the AC_PACKAGE_NAME lists. ##
16125 ## ------------------------------------------ ##
16126 _ASBOX
16128 sed "s/^/$as_me: WARNING: /" >&2
16130 esac
16131 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16132 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16133 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 else
16136 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16138 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16139 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16142 if test $ac_cv_header_sys_cpustats_h = yes; then
16143 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16144 #define UMAX 1
16145 _ACEOF
16152 if test $ac_have_func = no; then
16154 for ac_header in mach/mach.h
16156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16158 echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16165 else
16166 # Is the header compilable?
16167 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 $ac_includes_default
16176 #include <$ac_header>
16177 _ACEOF
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag"
16188 || test ! -s conftest.err'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; } &&
16194 { ac_try='test -s conftest.$ac_objext'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_header_compiler=yes
16201 else
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205 ac_header_compiler=no
16207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16209 echo "${ECHO_T}$ac_header_compiler" >&6
16211 # Is the header present?
16212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 #include <$ac_header>
16221 _ACEOF
16222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } >/dev/null; then
16230 if test -s conftest.err; then
16231 ac_cpp_err=$ac_c_preproc_warn_flag
16232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16233 else
16234 ac_cpp_err=
16236 else
16237 ac_cpp_err=yes
16239 if test -z "$ac_cpp_err"; then
16240 ac_header_preproc=yes
16241 else
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ac_header_preproc=no
16247 rm -f conftest.err conftest.$ac_ext
16248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249 echo "${ECHO_T}$ac_header_preproc" >&6
16251 # So? What about this header?
16252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16253 yes:no: )
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16258 ac_header_preproc=yes
16260 no:yes:* )
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16274 cat <<\_ASBOX
16275 ## ------------------------------------------ ##
16276 ## Report this to the AC_PACKAGE_NAME lists. ##
16277 ## ------------------------------------------ ##
16278 _ASBOX
16280 sed "s/^/$as_me: WARNING: /" >&2
16282 esac
16283 echo "$as_me:$LINENO: checking for $ac_header" >&5
16284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288 eval "$as_ac_Header=\$ac_header_preproc"
16290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16295 cat >>confdefs.h <<_ACEOF
16296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16297 _ACEOF
16301 done
16306 for ac_header in nlist.h
16308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16310 echo "$as_me:$LINENO: checking for $ac_header" >&5
16311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16317 else
16318 # Is the header compilable?
16319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h. */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 $ac_includes_default
16328 #include <$ac_header>
16329 _ACEOF
16330 rm -f conftest.$ac_objext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16332 (eval $ac_compile) 2>conftest.er1
16333 ac_status=$?
16334 grep -v '^ *+' conftest.er1 >conftest.err
16335 rm -f conftest.er1
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -z "$ac_c_werror_flag"
16340 || test ! -s conftest.err'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; } &&
16346 { ac_try='test -s conftest.$ac_objext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler=yes
16353 else
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 ac_header_compiler=no
16359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16361 echo "${ECHO_T}$ac_header_compiler" >&6
16363 # Is the header present?
16364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h. */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 #include <$ac_header>
16373 _ACEOF
16374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16376 ac_status=$?
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } >/dev/null; then
16382 if test -s conftest.err; then
16383 ac_cpp_err=$ac_c_preproc_warn_flag
16384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16385 else
16386 ac_cpp_err=
16388 else
16389 ac_cpp_err=yes
16391 if test -z "$ac_cpp_err"; then
16392 ac_header_preproc=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_preproc=no
16399 rm -f conftest.err conftest.$ac_ext
16400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16401 echo "${ECHO_T}$ac_header_preproc" >&6
16403 # So? What about this header?
16404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16405 yes:no: )
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16410 ac_header_preproc=yes
16412 no:yes:* )
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16426 cat <<\_ASBOX
16427 ## ------------------------------------------ ##
16428 ## Report this to the AC_PACKAGE_NAME lists. ##
16429 ## ------------------------------------------ ##
16430 _ASBOX
16432 sed "s/^/$as_me: WARNING: /" >&2
16434 esac
16435 echo "$as_me:$LINENO: checking for $ac_header" >&5
16436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440 eval "$as_ac_Header=\$ac_header_preproc"
16442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16447 cat >>confdefs.h <<_ACEOF
16448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16449 _ACEOF
16450 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16451 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16452 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h. */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 #include <nlist.h>
16464 main ()
16466 static struct nlist ac_aggr;
16467 if (ac_aggr.n_un.n_name)
16468 return 0;
16470 return 0;
16472 _ACEOF
16473 rm -f conftest.$ac_objext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16475 (eval $ac_compile) 2>conftest.er1
16476 ac_status=$?
16477 grep -v '^ *+' conftest.er1 >conftest.err
16478 rm -f conftest.er1
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } &&
16482 { ac_try='test -z "$ac_c_werror_flag"
16483 || test ! -s conftest.err'
16484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485 (eval $ac_try) 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; } &&
16489 { ac_try='test -s conftest.$ac_objext'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; }; then
16495 ac_cv_member_struct_nlist_n_un_n_name=yes
16496 else
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 cat >conftest.$ac_ext <<_ACEOF
16501 /* confdefs.h. */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16506 #include <nlist.h>
16509 main ()
16511 static struct nlist ac_aggr;
16512 if (sizeof ac_aggr.n_un.n_name)
16513 return 0;
16515 return 0;
16517 _ACEOF
16518 rm -f conftest.$ac_objext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16520 (eval $ac_compile) 2>conftest.er1
16521 ac_status=$?
16522 grep -v '^ *+' conftest.er1 >conftest.err
16523 rm -f conftest.er1
16524 cat conftest.err >&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } &&
16527 { ac_try='test -z "$ac_c_werror_flag"
16528 || test ! -s conftest.err'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; } &&
16534 { ac_try='test -s conftest.$ac_objext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_member_struct_nlist_n_un_n_name=yes
16541 else
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_cv_member_struct_nlist_n_un_n_name=no
16547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16551 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16552 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16553 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16555 cat >>confdefs.h <<_ACEOF
16556 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16557 _ACEOF
16560 cat >>confdefs.h <<\_ACEOF
16561 #define NLIST_NAME_UNION 1
16562 _ACEOF
16569 done
16572 done
16575 # Some definitions of getloadavg require that the program be installed setgid.
16576 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16577 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16578 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581 cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16588 #ifdef LDAV_PRIVILEGED
16589 Yowza Am I SETGID yet
16590 #endif
16591 _ACEOF
16592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16593 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16594 ac_cv_func_getloadavg_setgid=yes
16595 else
16596 ac_cv_func_getloadavg_setgid=no
16598 rm -f conftest*
16601 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16602 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16603 if test $ac_cv_func_getloadavg_setgid = yes; then
16604 NEED_SETGID=true
16606 cat >>confdefs.h <<\_ACEOF
16607 #define GETLOADAVG_PRIVILEGED 1
16608 _ACEOF
16610 else
16611 NEED_SETGID=false
16614 if test $ac_cv_func_getloadavg_setgid = yes; then
16615 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16616 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16617 if test "${ac_cv_group_kmem+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16621 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16622 # If we got an error (system does not support symlinks), try without -L.
16623 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16624 ac_cv_group_kmem=`echo $ac_ls_output \
16625 | sed -ne 's/[ ][ ]*/ /g;
16626 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16627 / /s/.* //;p;'`
16630 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16631 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16632 KMEM_GROUP=$ac_cv_group_kmem
16634 if test "x$ac_save_LIBS" = x; then
16635 GETLOADAVG_LIBS=$LIBS
16636 else
16637 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16639 LIBS=$ac_save_LIBS
16643 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16644 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16645 if test "${ac_cv_sys_largefile_source+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648 while :; do
16649 ac_cv_sys_largefile_source=no
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #include <stdio.h>
16658 main ()
16660 return !fseeko;
16662 return 0;
16664 _ACEOF
16665 rm -f conftest.$ac_objext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16667 (eval $ac_compile) 2>conftest.er1
16668 ac_status=$?
16669 grep -v '^ *+' conftest.er1 >conftest.err
16670 rm -f conftest.er1
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try='test -z "$ac_c_werror_flag"
16675 || test ! -s conftest.err'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest.$ac_objext'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 break
16688 else
16689 echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h. */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 #define _LARGEFILE_SOURCE 1
16701 #include <stdio.h>
16703 main ()
16705 return !fseeko;
16707 return 0;
16709 _ACEOF
16710 rm -f conftest.$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_sys_largefile_source=1; break
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739 break
16740 done
16742 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16743 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16744 if test "$ac_cv_sys_largefile_source" != no; then
16746 cat >>confdefs.h <<_ACEOF
16747 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16748 _ACEOF
16751 rm -f conftest*
16753 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16754 # in glibc 2.1.3, but that breaks too many other things.
16755 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16756 echo "$as_me:$LINENO: checking for fseeko" >&5
16757 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16758 if test "${ac_cv_func_fseeko+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h. */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 #include <stdio.h>
16769 main ()
16771 return fseeko && fseeko (stdin, 0, 0);
16773 return 0;
16775 _ACEOF
16776 rm -f conftest.$ac_objext conftest$ac_exeext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16778 (eval $ac_link) 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag"
16786 || test ! -s conftest.err'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest$ac_exeext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_func_fseeko=yes
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_cv_func_fseeko=no
16805 rm -f conftest.err conftest.$ac_objext \
16806 conftest$ac_exeext conftest.$ac_ext
16808 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16809 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16810 if test $ac_cv_func_fseeko = yes; then
16812 cat >>confdefs.h <<\_ACEOF
16813 #define HAVE_FSEEKO 1
16814 _ACEOF
16819 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16820 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16821 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824 # Use it with a single arg.
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 $ac_includes_default
16833 main ()
16835 getpgrp (0);
16837 return 0;
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16842 (eval $ac_compile) 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -z "$ac_c_werror_flag"
16850 || test ! -s conftest.err'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; } &&
16856 { ac_try='test -s conftest.$ac_objext'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_cv_func_getpgrp_void=no
16863 else
16864 echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16867 ac_cv_func_getpgrp_void=yes
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16873 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16874 if test $ac_cv_func_getpgrp_void = yes; then
16876 cat >>confdefs.h <<\_ACEOF
16877 #define GETPGRP_VOID 1
16878 _ACEOF
16884 for ac_func in strftime
16886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16887 echo "$as_me:$LINENO: checking for $ac_func" >&5
16888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16889 if eval "test \"\${$as_ac_var+set}\" = set"; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 else
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. */
16898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16900 #define $ac_func innocuous_$ac_func
16902 /* System header to define __stub macros and hopefully few prototypes,
16903 which can conflict with char $ac_func (); below.
16904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16905 <limits.h> exists even on freestanding compilers. */
16907 #ifdef __STDC__
16908 # include <limits.h>
16909 #else
16910 # include <assert.h>
16911 #endif
16913 #undef $ac_func
16915 /* Override any gcc2 internal prototype to avoid an error. */
16916 #ifdef __cplusplus
16917 extern "C"
16919 #endif
16920 /* We use char because int might match the return type of a gcc2
16921 builtin and then its argument prototype would still apply. */
16922 char $ac_func ();
16923 /* The GNU C library defines this for functions which it implements
16924 to always fail with ENOSYS. Some functions are actually named
16925 something starting with __ and the normal name is an alias. */
16926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16927 choke me
16928 #else
16929 char (*f) () = $ac_func;
16930 #endif
16931 #ifdef __cplusplus
16933 #endif
16936 main ()
16938 return f != $ac_func;
16940 return 0;
16942 _ACEOF
16943 rm -f conftest.$ac_objext conftest$ac_exeext
16944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16945 (eval $ac_link) 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
16952 { ac_try='test -z "$ac_c_werror_flag"
16953 || test ! -s conftest.err'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; } &&
16959 { ac_try='test -s conftest$ac_exeext'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 eval "$as_ac_var=yes"
16966 else
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 eval "$as_ac_var=no"
16972 rm -f conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16980 _ACEOF
16982 else
16983 # strftime is in -lintl on SCO UNIX.
16984 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16985 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16986 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989 ac_check_lib_save_LIBS=$LIBS
16990 LIBS="-lintl $LIBS"
16991 cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h. */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16998 /* Override any gcc2 internal prototype to avoid an error. */
16999 #ifdef __cplusplus
17000 extern "C"
17001 #endif
17002 /* We use char because int might match the return type of a gcc2
17003 builtin and then its argument prototype would still apply. */
17004 char strftime ();
17006 main ()
17008 strftime ();
17010 return 0;
17012 _ACEOF
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_lib_intl_strftime=yes
17036 else
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 ac_cv_lib_intl_strftime=no
17042 rm -f conftest.err conftest.$ac_objext \
17043 conftest$ac_exeext conftest.$ac_ext
17044 LIBS=$ac_check_lib_save_LIBS
17046 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17047 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17048 if test $ac_cv_lib_intl_strftime = yes; then
17049 cat >>confdefs.h <<\_ACEOF
17050 #define HAVE_STRFTIME 1
17051 _ACEOF
17053 LIBS="-lintl $LIBS"
17057 done
17060 # UNIX98 PTYs.
17062 for ac_func in grantpt
17064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17065 echo "$as_me:$LINENO: checking for $ac_func" >&5
17066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17067 if eval "test \"\${$as_ac_var+set}\" = set"; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17078 #define $ac_func innocuous_$ac_func
17080 /* System header to define __stub macros and hopefully few prototypes,
17081 which can conflict with char $ac_func (); below.
17082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083 <limits.h> exists even on freestanding compilers. */
17085 #ifdef __STDC__
17086 # include <limits.h>
17087 #else
17088 # include <assert.h>
17089 #endif
17091 #undef $ac_func
17093 /* Override any gcc2 internal prototype to avoid an error. */
17094 #ifdef __cplusplus
17095 extern "C"
17097 #endif
17098 /* We use char because int might match the return type of a gcc2
17099 builtin and then its argument prototype would still apply. */
17100 char $ac_func ();
17101 /* The GNU C library defines this for functions which it implements
17102 to always fail with ENOSYS. Some functions are actually named
17103 something starting with __ and the normal name is an alias. */
17104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17105 choke me
17106 #else
17107 char (*f) () = $ac_func;
17108 #endif
17109 #ifdef __cplusplus
17111 #endif
17114 main ()
17116 return f != $ac_func;
17118 return 0;
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123 (eval $ac_link) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 eval "$as_ac_var=yes"
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 eval "$as_ac_var=no"
17150 rm -f conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17155 if test `eval echo '${'$as_ac_var'}'` = yes; then
17156 cat >>confdefs.h <<_ACEOF
17157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17158 _ACEOF
17161 done
17164 # PTY-related GNU extensions.
17166 for ac_func in getpt
17168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17169 echo "$as_me:$LINENO: checking for $ac_func" >&5
17170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17171 if eval "test \"\${$as_ac_var+set}\" = set"; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174 cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h. */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17182 #define $ac_func innocuous_$ac_func
17184 /* System header to define __stub macros and hopefully few prototypes,
17185 which can conflict with char $ac_func (); below.
17186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17187 <limits.h> exists even on freestanding compilers. */
17189 #ifdef __STDC__
17190 # include <limits.h>
17191 #else
17192 # include <assert.h>
17193 #endif
17195 #undef $ac_func
17197 /* Override any gcc2 internal prototype to avoid an error. */
17198 #ifdef __cplusplus
17199 extern "C"
17201 #endif
17202 /* We use char because int might match the return type of a gcc2
17203 builtin and then its argument prototype would still apply. */
17204 char $ac_func ();
17205 /* The GNU C library defines this for functions which it implements
17206 to always fail with ENOSYS. Some functions are actually named
17207 something starting with __ and the normal name is an alias. */
17208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17209 choke me
17210 #else
17211 char (*f) () = $ac_func;
17212 #endif
17213 #ifdef __cplusplus
17215 #endif
17218 main ()
17220 return f != $ac_func;
17222 return 0;
17224 _ACEOF
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227 (eval $ac_link) 2>conftest.er1
17228 ac_status=$?
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } &&
17234 { ac_try='test -z "$ac_c_werror_flag"
17235 || test ! -s conftest.err'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; } &&
17241 { ac_try='test -s conftest$ac_exeext'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; }; then
17247 eval "$as_ac_var=yes"
17248 else
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 eval "$as_ac_var=no"
17254 rm -f conftest.err conftest.$ac_objext \
17255 conftest$ac_exeext conftest.$ac_ext
17257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17259 if test `eval echo '${'$as_ac_var'}'` = yes; then
17260 cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17262 _ACEOF
17265 done
17268 # Check this now, so that we will NOT find the above functions in ncurses.
17269 # That is because we have not set up to link ncurses in lib-src.
17270 # It's better to believe a function is not available
17271 # than to expect to find it in ncurses.
17273 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17274 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17275 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278 ac_check_lib_save_LIBS=$LIBS
17279 LIBS="-lncurses $LIBS"
17280 cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h. */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17287 /* Override any gcc2 internal prototype to avoid an error. */
17288 #ifdef __cplusplus
17289 extern "C"
17290 #endif
17291 /* We use char because int might match the return type of a gcc2
17292 builtin and then its argument prototype would still apply. */
17293 char tparm ();
17295 main ()
17297 tparm ();
17299 return 0;
17301 _ACEOF
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304 (eval $ac_link) 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -z "$ac_c_werror_flag"
17312 || test ! -s conftest.err'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest$ac_exeext'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 ac_cv_lib_ncurses_tparm=yes
17325 else
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 ac_cv_lib_ncurses_tparm=no
17331 rm -f conftest.err conftest.$ac_objext \
17332 conftest$ac_exeext conftest.$ac_ext
17333 LIBS=$ac_check_lib_save_LIBS
17335 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17336 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17337 if test $ac_cv_lib_ncurses_tparm = yes; then
17338 cat >>confdefs.h <<_ACEOF
17339 #define HAVE_LIBNCURSES 1
17340 _ACEOF
17342 LIBS="-lncurses $LIBS"
17347 # Do we need the Hesiod library to provide the support routines?
17348 if test "$with_hesiod" = yes ; then
17349 # Don't set $LIBS here -- see comments above.
17350 resolv=no
17351 echo "$as_me:$LINENO: checking for res_send" >&5
17352 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17353 if test "${ac_cv_func_res_send+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356 cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h. */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17362 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17364 #define res_send innocuous_res_send
17366 /* System header to define __stub macros and hopefully few prototypes,
17367 which can conflict with char res_send (); below.
17368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17369 <limits.h> exists even on freestanding compilers. */
17371 #ifdef __STDC__
17372 # include <limits.h>
17373 #else
17374 # include <assert.h>
17375 #endif
17377 #undef res_send
17379 /* Override any gcc2 internal prototype to avoid an error. */
17380 #ifdef __cplusplus
17381 extern "C"
17383 #endif
17384 /* We use char because int might match the return type of a gcc2
17385 builtin and then its argument prototype would still apply. */
17386 char res_send ();
17387 /* The GNU C library defines this for functions which it implements
17388 to always fail with ENOSYS. Some functions are actually named
17389 something starting with __ and the normal name is an alias. */
17390 #if defined (__stub_res_send) || defined (__stub___res_send)
17391 choke me
17392 #else
17393 char (*f) () = res_send;
17394 #endif
17395 #ifdef __cplusplus
17397 #endif
17400 main ()
17402 return f != res_send;
17404 return 0;
17406 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409 (eval $ac_link) 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_c_werror_flag"
17417 || test ! -s conftest.err'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest$ac_exeext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_func_res_send=yes
17430 else
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_cv_func_res_send=no
17436 rm -f conftest.err conftest.$ac_objext \
17437 conftest$ac_exeext conftest.$ac_ext
17439 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17440 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17441 if test $ac_cv_func_res_send = yes; then
17443 else
17444 echo "$as_me:$LINENO: checking for __res_send" >&5
17445 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17446 if test "${ac_cv_func___res_send+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17457 #define __res_send innocuous___res_send
17459 /* System header to define __stub macros and hopefully few prototypes,
17460 which can conflict with char __res_send (); below.
17461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17462 <limits.h> exists even on freestanding compilers. */
17464 #ifdef __STDC__
17465 # include <limits.h>
17466 #else
17467 # include <assert.h>
17468 #endif
17470 #undef __res_send
17472 /* Override any gcc2 internal prototype to avoid an error. */
17473 #ifdef __cplusplus
17474 extern "C"
17476 #endif
17477 /* We use char because int might match the return type of a gcc2
17478 builtin and then its argument prototype would still apply. */
17479 char __res_send ();
17480 /* The GNU C library defines this for functions which it implements
17481 to always fail with ENOSYS. Some functions are actually named
17482 something starting with __ and the normal name is an alias. */
17483 #if defined (__stub___res_send) || defined (__stub_____res_send)
17484 choke me
17485 #else
17486 char (*f) () = __res_send;
17487 #endif
17488 #ifdef __cplusplus
17490 #endif
17493 main ()
17495 return f != __res_send;
17497 return 0;
17499 _ACEOF
17500 rm -f conftest.$ac_objext conftest$ac_exeext
17501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17502 (eval $ac_link) 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; } &&
17516 { ac_try='test -s conftest$ac_exeext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_func___res_send=yes
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_cv_func___res_send=no
17529 rm -f conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17532 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17533 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17534 if test $ac_cv_func___res_send = yes; then
17536 else
17537 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17538 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17539 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542 ac_check_lib_save_LIBS=$LIBS
17543 LIBS="-lresolv $LIBS"
17544 cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17551 /* Override any gcc2 internal prototype to avoid an error. */
17552 #ifdef __cplusplus
17553 extern "C"
17554 #endif
17555 /* We use char because int might match the return type of a gcc2
17556 builtin and then its argument prototype would still apply. */
17557 char res_send ();
17559 main ()
17561 res_send ();
17563 return 0;
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568 (eval $ac_link) 2>conftest.er1
17569 ac_status=$?
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag"
17576 || test ! -s conftest.err'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest$ac_exeext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_lib_resolv_res_send=yes
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_cv_lib_resolv_res_send=no
17595 rm -f conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597 LIBS=$ac_check_lib_save_LIBS
17599 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17600 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17601 if test $ac_cv_lib_resolv_res_send = yes; then
17602 resolv=yes
17603 else
17604 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17605 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17606 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 else
17609 ac_check_lib_save_LIBS=$LIBS
17610 LIBS="-lresolv $LIBS"
17611 cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h. */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17618 /* Override any gcc2 internal prototype to avoid an error. */
17619 #ifdef __cplusplus
17620 extern "C"
17621 #endif
17622 /* We use char because int might match the return type of a gcc2
17623 builtin and then its argument prototype would still apply. */
17624 char __res_send ();
17626 main ()
17628 __res_send ();
17630 return 0;
17632 _ACEOF
17633 rm -f conftest.$ac_objext conftest$ac_exeext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17635 (eval $ac_link) 2>conftest.er1
17636 ac_status=$?
17637 grep -v '^ *+' conftest.er1 >conftest.err
17638 rm -f conftest.er1
17639 cat conftest.err >&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
17642 { ac_try='test -z "$ac_c_werror_flag"
17643 || test ! -s conftest.err'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest$ac_exeext'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_lib_resolv___res_send=yes
17656 else
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_lib_resolv___res_send=no
17662 rm -f conftest.err conftest.$ac_objext \
17663 conftest$ac_exeext conftest.$ac_ext
17664 LIBS=$ac_check_lib_save_LIBS
17666 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17667 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17668 if test $ac_cv_lib_resolv___res_send = yes; then
17669 resolv=yes
17678 if test "$resolv" = yes ; then
17679 RESOLVLIB=-lresolv
17681 cat >>confdefs.h <<\_ACEOF
17682 #define HAVE_LIBRESOLV 1
17683 _ACEOF
17685 else
17686 RESOLVLIB=
17688 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17689 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17690 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693 cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h. */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17699 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17701 #define hes_getmailhost innocuous_hes_getmailhost
17703 /* System header to define __stub macros and hopefully few prototypes,
17704 which can conflict with char hes_getmailhost (); below.
17705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706 <limits.h> exists even on freestanding compilers. */
17708 #ifdef __STDC__
17709 # include <limits.h>
17710 #else
17711 # include <assert.h>
17712 #endif
17714 #undef hes_getmailhost
17716 /* Override any gcc2 internal prototype to avoid an error. */
17717 #ifdef __cplusplus
17718 extern "C"
17720 #endif
17721 /* We use char because int might match the return type of a gcc2
17722 builtin and then its argument prototype would still apply. */
17723 char hes_getmailhost ();
17724 /* The GNU C library defines this for functions which it implements
17725 to always fail with ENOSYS. Some functions are actually named
17726 something starting with __ and the normal name is an alias. */
17727 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17728 choke me
17729 #else
17730 char (*f) () = hes_getmailhost;
17731 #endif
17732 #ifdef __cplusplus
17734 #endif
17737 main ()
17739 return f != hes_getmailhost;
17741 return 0;
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746 (eval $ac_link) 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag"
17754 || test ! -s conftest.err'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest$ac_exeext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_cv_func_hes_getmailhost=yes
17767 else
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ac_cv_func_hes_getmailhost=no
17773 rm -f conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17776 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17777 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17778 if test $ac_cv_func_hes_getmailhost = yes; then
17780 else
17781 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17782 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17783 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786 ac_check_lib_save_LIBS=$LIBS
17787 LIBS="-lhesiod $RESOLVLIB $LIBS"
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h. */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17795 /* Override any gcc2 internal prototype to avoid an error. */
17796 #ifdef __cplusplus
17797 extern "C"
17798 #endif
17799 /* We use char because int might match the return type of a gcc2
17800 builtin and then its argument prototype would still apply. */
17801 char hes_getmailhost ();
17803 main ()
17805 hes_getmailhost ();
17807 return 0;
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812 (eval $ac_link) 2>conftest.er1
17813 ac_status=$?
17814 grep -v '^ *+' conftest.er1 >conftest.err
17815 rm -f conftest.er1
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag"
17820 || test ! -s conftest.err'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest$ac_exeext'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_cv_lib_hesiod_hes_getmailhost=yes
17833 else
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_cv_lib_hesiod_hes_getmailhost=no
17839 rm -f conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17843 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17844 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17845 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17847 cat >>confdefs.h <<\_ACEOF
17848 #define HAVE_LIBHESIOD 1
17849 _ACEOF
17851 else
17859 # These tell us which Kerberos-related libraries to use.
17860 if test "${with_kerberos+set}" = set; then
17862 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17863 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17864 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867 ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-lcom_err $LIBS"
17869 cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h. */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17876 /* Override any gcc2 internal prototype to avoid an error. */
17877 #ifdef __cplusplus
17878 extern "C"
17879 #endif
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17882 char com_err ();
17884 main ()
17886 com_err ();
17888 return 0;
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest$ac_exeext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_cv_lib_com_err_com_err=yes
17914 else
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 ac_cv_lib_com_err_com_err=no
17920 rm -f conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922 LIBS=$ac_check_lib_save_LIBS
17924 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17925 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17926 if test $ac_cv_lib_com_err_com_err = yes; then
17927 cat >>confdefs.h <<_ACEOF
17928 #define HAVE_LIBCOM_ERR 1
17929 _ACEOF
17931 LIBS="-lcom_err $LIBS"
17936 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17937 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17938 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941 ac_check_lib_save_LIBS=$LIBS
17942 LIBS="-lk5crypto $LIBS"
17943 cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h. */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17950 /* Override any gcc2 internal prototype to avoid an error. */
17951 #ifdef __cplusplus
17952 extern "C"
17953 #endif
17954 /* We use char because int might match the return type of a gcc2
17955 builtin and then its argument prototype would still apply. */
17956 char mit_des_cbc_encrypt ();
17958 main ()
17960 mit_des_cbc_encrypt ();
17962 return 0;
17964 _ACEOF
17965 rm -f conftest.$ac_objext conftest$ac_exeext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17967 (eval $ac_link) 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } &&
17974 { ac_try='test -z "$ac_c_werror_flag"
17975 || test ! -s conftest.err'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; } &&
17981 { ac_try='test -s conftest$ac_exeext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17988 else
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17994 rm -f conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17996 LIBS=$ac_check_lib_save_LIBS
17998 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17999 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18000 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18001 cat >>confdefs.h <<_ACEOF
18002 #define HAVE_LIBK5CRYPTO 1
18003 _ACEOF
18005 LIBS="-lk5crypto $LIBS"
18010 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18011 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18012 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015 ac_check_lib_save_LIBS=$LIBS
18016 LIBS="-lcrypto $LIBS"
18017 cat >conftest.$ac_ext <<_ACEOF
18018 /* confdefs.h. */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18024 /* Override any gcc2 internal prototype to avoid an error. */
18025 #ifdef __cplusplus
18026 extern "C"
18027 #endif
18028 /* We use char because int might match the return type of a gcc2
18029 builtin and then its argument prototype would still apply. */
18030 char mit_des_cbc_encrypt ();
18032 main ()
18034 mit_des_cbc_encrypt ();
18036 return 0;
18038 _ACEOF
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18041 (eval $ac_link) 2>conftest.er1
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try='test -z "$ac_c_werror_flag"
18049 || test ! -s conftest.err'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18062 else
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18068 rm -f conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18070 LIBS=$ac_check_lib_save_LIBS
18072 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18073 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18074 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18075 cat >>confdefs.h <<_ACEOF
18076 #define HAVE_LIBCRYPTO 1
18077 _ACEOF
18079 LIBS="-lcrypto $LIBS"
18084 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18085 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18086 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089 ac_check_lib_save_LIBS=$LIBS
18090 LIBS="-lkrb5 $LIBS"
18091 cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h. */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18098 /* Override any gcc2 internal prototype to avoid an error. */
18099 #ifdef __cplusplus
18100 extern "C"
18101 #endif
18102 /* We use char because int might match the return type of a gcc2
18103 builtin and then its argument prototype would still apply. */
18104 char krb5_init_context ();
18106 main ()
18108 krb5_init_context ();
18110 return 0;
18112 _ACEOF
18113 rm -f conftest.$ac_objext conftest$ac_exeext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18115 (eval $ac_link) 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
18122 { ac_try='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest$ac_exeext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_cv_lib_krb5_krb5_init_context=yes
18136 else
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 ac_cv_lib_krb5_krb5_init_context=no
18142 rm -f conftest.err conftest.$ac_objext \
18143 conftest$ac_exeext conftest.$ac_ext
18144 LIBS=$ac_check_lib_save_LIBS
18146 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18147 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18148 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define HAVE_LIBKRB5 1
18151 _ACEOF
18153 LIBS="-lkrb5 $LIBS"
18157 if test "${with_kerberos5+set}" != set; then
18159 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18160 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18161 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 else
18164 ac_check_lib_save_LIBS=$LIBS
18165 LIBS="-ldes425 $LIBS"
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h. */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18173 /* Override any gcc2 internal prototype to avoid an error. */
18174 #ifdef __cplusplus
18175 extern "C"
18176 #endif
18177 /* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18179 char des_cbc_encrypt ();
18181 main ()
18183 des_cbc_encrypt ();
18185 return 0;
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_lib_des425_des_cbc_encrypt=yes
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ac_cv_lib_des425_des_cbc_encrypt=no
18217 rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219 LIBS=$ac_check_lib_save_LIBS
18221 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18222 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18223 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define HAVE_LIBDES425 1
18226 _ACEOF
18228 LIBS="-ldes425 $LIBS"
18230 else
18232 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18233 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18234 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237 ac_check_lib_save_LIBS=$LIBS
18238 LIBS="-ldes $LIBS"
18239 cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h. */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18246 /* Override any gcc2 internal prototype to avoid an error. */
18247 #ifdef __cplusplus
18248 extern "C"
18249 #endif
18250 /* We use char because int might match the return type of a gcc2
18251 builtin and then its argument prototype would still apply. */
18252 char des_cbc_encrypt ();
18254 main ()
18256 des_cbc_encrypt ();
18258 return 0;
18260 _ACEOF
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263 (eval $ac_link) 2>conftest.er1
18264 ac_status=$?
18265 grep -v '^ *+' conftest.er1 >conftest.err
18266 rm -f conftest.er1
18267 cat conftest.err >&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } &&
18270 { ac_try='test -z "$ac_c_werror_flag"
18271 || test ! -s conftest.err'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; } &&
18277 { ac_try='test -s conftest$ac_exeext'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 ac_cv_lib_des_des_cbc_encrypt=yes
18284 else
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_lib_des_des_cbc_encrypt=no
18290 rm -f conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
18292 LIBS=$ac_check_lib_save_LIBS
18294 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18295 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18296 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18297 cat >>confdefs.h <<_ACEOF
18298 #define HAVE_LIBDES 1
18299 _ACEOF
18301 LIBS="-ldes $LIBS"
18308 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18309 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18310 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313 ac_check_lib_save_LIBS=$LIBS
18314 LIBS="-lkrb4 $LIBS"
18315 cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h. */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18322 /* Override any gcc2 internal prototype to avoid an error. */
18323 #ifdef __cplusplus
18324 extern "C"
18325 #endif
18326 /* We use char because int might match the return type of a gcc2
18327 builtin and then its argument prototype would still apply. */
18328 char krb_get_cred ();
18330 main ()
18332 krb_get_cred ();
18334 return 0;
18336 _ACEOF
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18339 (eval $ac_link) 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
18346 { ac_try='test -z "$ac_c_werror_flag"
18347 || test ! -s conftest.err'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest$ac_exeext'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 ac_cv_lib_krb4_krb_get_cred=yes
18360 else
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 ac_cv_lib_krb4_krb_get_cred=no
18366 rm -f conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18370 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18371 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18372 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_LIBKRB4 1
18375 _ACEOF
18377 LIBS="-lkrb4 $LIBS"
18379 else
18381 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18382 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18383 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386 ac_check_lib_save_LIBS=$LIBS
18387 LIBS="-lkrb $LIBS"
18388 cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h. */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18395 /* Override any gcc2 internal prototype to avoid an error. */
18396 #ifdef __cplusplus
18397 extern "C"
18398 #endif
18399 /* We use char because int might match the return type of a gcc2
18400 builtin and then its argument prototype would still apply. */
18401 char krb_get_cred ();
18403 main ()
18405 krb_get_cred ();
18407 return 0;
18409 _ACEOF
18410 rm -f conftest.$ac_objext conftest$ac_exeext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18412 (eval $ac_link) 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_c_werror_flag"
18420 || test ! -s conftest.err'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest$ac_exeext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_cv_lib_krb_krb_get_cred=yes
18433 else
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 ac_cv_lib_krb_krb_get_cred=no
18439 rm -f conftest.err conftest.$ac_objext \
18440 conftest$ac_exeext conftest.$ac_ext
18441 LIBS=$ac_check_lib_save_LIBS
18443 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18444 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18445 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18446 cat >>confdefs.h <<_ACEOF
18447 #define HAVE_LIBKRB 1
18448 _ACEOF
18450 LIBS="-lkrb $LIBS"
18458 if test "${with_kerberos5+set}" = set; then
18460 for ac_header in krb5.h
18462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18464 echo "$as_me:$LINENO: checking for $ac_header" >&5
18465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18471 else
18472 # Is the header compilable?
18473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 $ac_includes_default
18482 #include <$ac_header>
18483 _ACEOF
18484 rm -f conftest.$ac_objext
18485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18486 (eval $ac_compile) 2>conftest.er1
18487 ac_status=$?
18488 grep -v '^ *+' conftest.er1 >conftest.err
18489 rm -f conftest.er1
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } &&
18493 { ac_try='test -z "$ac_c_werror_flag"
18494 || test ! -s conftest.err'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } &&
18500 { ac_try='test -s conftest.$ac_objext'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_header_compiler=yes
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_header_compiler=no
18513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18515 echo "${ECHO_T}$ac_header_compiler" >&6
18517 # Is the header present?
18518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526 #include <$ac_header>
18527 _ACEOF
18528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } >/dev/null; then
18536 if test -s conftest.err; then
18537 ac_cpp_err=$ac_c_preproc_warn_flag
18538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18539 else
18540 ac_cpp_err=
18542 else
18543 ac_cpp_err=yes
18545 if test -z "$ac_cpp_err"; then
18546 ac_header_preproc=yes
18547 else
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_header_preproc=no
18553 rm -f conftest.err conftest.$ac_ext
18554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18555 echo "${ECHO_T}$ac_header_preproc" >&6
18557 # So? What about this header?
18558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18559 yes:no: )
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18564 ac_header_preproc=yes
18566 no:yes:* )
18567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18580 cat <<\_ASBOX
18581 ## ------------------------------------------ ##
18582 ## Report this to the AC_PACKAGE_NAME lists. ##
18583 ## ------------------------------------------ ##
18584 _ASBOX
18586 sed "s/^/$as_me: WARNING: /" >&2
18588 esac
18589 echo "$as_me:$LINENO: checking for $ac_header" >&5
18590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594 eval "$as_ac_Header=\$ac_header_preproc"
18596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18603 _ACEOF
18607 done
18609 else
18611 for ac_header in des.h
18613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18615 echo "$as_me:$LINENO: checking for $ac_header" >&5
18616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18622 else
18623 # Is the header compilable?
18624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h. */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 $ac_includes_default
18633 #include <$ac_header>
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637 (eval $ac_compile) 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest.$ac_objext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 ac_header_compiler=yes
18658 else
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 ac_header_compiler=no
18664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18666 echo "${ECHO_T}$ac_header_compiler" >&6
18668 # Is the header present?
18669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h. */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 #include <$ac_header>
18678 _ACEOF
18679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18681 ac_status=$?
18682 grep -v '^ *+' conftest.er1 >conftest.err
18683 rm -f conftest.er1
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } >/dev/null; then
18687 if test -s conftest.err; then
18688 ac_cpp_err=$ac_c_preproc_warn_flag
18689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18690 else
18691 ac_cpp_err=
18693 else
18694 ac_cpp_err=yes
18696 if test -z "$ac_cpp_err"; then
18697 ac_header_preproc=yes
18698 else
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 ac_header_preproc=no
18704 rm -f conftest.err conftest.$ac_ext
18705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18706 echo "${ECHO_T}$ac_header_preproc" >&6
18708 # So? What about this header?
18709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18710 yes:no: )
18711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18715 ac_header_preproc=yes
18717 no:yes:* )
18718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18731 cat <<\_ASBOX
18732 ## ------------------------------------------ ##
18733 ## Report this to the AC_PACKAGE_NAME lists. ##
18734 ## ------------------------------------------ ##
18735 _ASBOX
18737 sed "s/^/$as_me: WARNING: /" >&2
18739 esac
18740 echo "$as_me:$LINENO: checking for $ac_header" >&5
18741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745 eval "$as_ac_Header=\$ac_header_preproc"
18747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18752 cat >>confdefs.h <<_ACEOF
18753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18754 _ACEOF
18756 else
18758 for ac_header in kerberosIV/des.h
18760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18762 echo "$as_me:$LINENO: checking for $ac_header" >&5
18763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18769 else
18770 # Is the header compilable?
18771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18773 cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h. */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779 $ac_includes_default
18780 #include <$ac_header>
18781 _ACEOF
18782 rm -f conftest.$ac_objext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18784 (eval $ac_compile) 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -z "$ac_c_werror_flag"
18792 || test ! -s conftest.err'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest.$ac_objext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 ac_header_compiler=yes
18805 else
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 ac_header_compiler=no
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18813 echo "${ECHO_T}$ac_header_compiler" >&6
18815 # Is the header present?
18816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18818 cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h. */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18824 #include <$ac_header>
18825 _ACEOF
18826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18828 ac_status=$?
18829 grep -v '^ *+' conftest.er1 >conftest.err
18830 rm -f conftest.er1
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } >/dev/null; then
18834 if test -s conftest.err; then
18835 ac_cpp_err=$ac_c_preproc_warn_flag
18836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18837 else
18838 ac_cpp_err=
18840 else
18841 ac_cpp_err=yes
18843 if test -z "$ac_cpp_err"; then
18844 ac_header_preproc=yes
18845 else
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 ac_header_preproc=no
18851 rm -f conftest.err conftest.$ac_ext
18852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18853 echo "${ECHO_T}$ac_header_preproc" >&6
18855 # So? What about this header?
18856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18857 yes:no: )
18858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18862 ac_header_preproc=yes
18864 no:yes:* )
18865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18878 cat <<\_ASBOX
18879 ## ------------------------------------------ ##
18880 ## Report this to the AC_PACKAGE_NAME lists. ##
18881 ## ------------------------------------------ ##
18882 _ASBOX
18884 sed "s/^/$as_me: WARNING: /" >&2
18886 esac
18887 echo "$as_me:$LINENO: checking for $ac_header" >&5
18888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892 eval "$as_ac_Header=\$ac_header_preproc"
18894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18899 cat >>confdefs.h <<_ACEOF
18900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18901 _ACEOF
18903 else
18905 for ac_header in kerberos/des.h
18907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18909 echo "$as_me:$LINENO: checking for $ac_header" >&5
18910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18916 else
18917 # Is the header compilable?
18918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18920 cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h. */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h. */
18926 $ac_includes_default
18927 #include <$ac_header>
18928 _ACEOF
18929 rm -f conftest.$ac_objext
18930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18931 (eval $ac_compile) 2>conftest.er1
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try='test -z "$ac_c_werror_flag"
18939 || test ! -s conftest.err'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } &&
18945 { ac_try='test -s conftest.$ac_objext'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
18951 ac_header_compiler=yes
18952 else
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18956 ac_header_compiler=no
18958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18960 echo "${ECHO_T}$ac_header_compiler" >&6
18962 # Is the header present?
18963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 #include <$ac_header>
18972 _ACEOF
18973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18975 ac_status=$?
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } >/dev/null; then
18981 if test -s conftest.err; then
18982 ac_cpp_err=$ac_c_preproc_warn_flag
18983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18984 else
18985 ac_cpp_err=
18987 else
18988 ac_cpp_err=yes
18990 if test -z "$ac_cpp_err"; then
18991 ac_header_preproc=yes
18992 else
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 ac_header_preproc=no
18998 rm -f conftest.err conftest.$ac_ext
18999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19000 echo "${ECHO_T}$ac_header_preproc" >&6
19002 # So? What about this header?
19003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19004 yes:no: )
19005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19009 ac_header_preproc=yes
19011 no:yes:* )
19012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19025 cat <<\_ASBOX
19026 ## ------------------------------------------ ##
19027 ## Report this to the AC_PACKAGE_NAME lists. ##
19028 ## ------------------------------------------ ##
19029 _ASBOX
19031 sed "s/^/$as_me: WARNING: /" >&2
19033 esac
19034 echo "$as_me:$LINENO: checking for $ac_header" >&5
19035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039 eval "$as_ac_Header=\$ac_header_preproc"
19041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19046 cat >>confdefs.h <<_ACEOF
19047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19048 _ACEOF
19052 done
19056 done
19060 done
19063 for ac_header in krb.h
19065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19067 echo "$as_me:$LINENO: checking for $ac_header" >&5
19068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19074 else
19075 # Is the header compilable?
19076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19078 cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h. */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 $ac_includes_default
19085 #include <$ac_header>
19086 _ACEOF
19087 rm -f conftest.$ac_objext
19088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19089 (eval $ac_compile) 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag"
19097 || test ! -s conftest.err'
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_header_compiler=yes
19110 else
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19114 ac_header_compiler=no
19116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19118 echo "${ECHO_T}$ac_header_compiler" >&6
19120 # Is the header present?
19121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h. */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <$ac_header>
19130 _ACEOF
19131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19133 ac_status=$?
19134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } >/dev/null; then
19139 if test -s conftest.err; then
19140 ac_cpp_err=$ac_c_preproc_warn_flag
19141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19142 else
19143 ac_cpp_err=
19145 else
19146 ac_cpp_err=yes
19148 if test -z "$ac_cpp_err"; then
19149 ac_header_preproc=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_header_preproc=no
19156 rm -f conftest.err conftest.$ac_ext
19157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19158 echo "${ECHO_T}$ac_header_preproc" >&6
19160 # So? What about this header?
19161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19162 yes:no: )
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19167 ac_header_preproc=yes
19169 no:yes:* )
19170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19183 cat <<\_ASBOX
19184 ## ------------------------------------------ ##
19185 ## Report this to the AC_PACKAGE_NAME lists. ##
19186 ## ------------------------------------------ ##
19187 _ASBOX
19189 sed "s/^/$as_me: WARNING: /" >&2
19191 esac
19192 echo "$as_me:$LINENO: checking for $ac_header" >&5
19193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 else
19197 eval "$as_ac_Header=\$ac_header_preproc"
19199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19204 cat >>confdefs.h <<_ACEOF
19205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19206 _ACEOF
19208 else
19210 for ac_header in kerberosIV/krb.h
19212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19214 echo "$as_me:$LINENO: checking for $ac_header" >&5
19215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19221 else
19222 # Is the header compilable?
19223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19225 cat >conftest.$ac_ext <<_ACEOF
19226 /* confdefs.h. */
19227 _ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19231 $ac_includes_default
19232 #include <$ac_header>
19233 _ACEOF
19234 rm -f conftest.$ac_objext
19235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236 (eval $ac_compile) 2>conftest.er1
19237 ac_status=$?
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
19243 { ac_try='test -z "$ac_c_werror_flag"
19244 || test ! -s conftest.err'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } &&
19250 { ac_try='test -s conftest.$ac_objext'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; }; then
19256 ac_header_compiler=yes
19257 else
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ac_header_compiler=no
19263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19265 echo "${ECHO_T}$ac_header_compiler" >&6
19267 # Is the header present?
19268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19270 cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h. */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19276 #include <$ac_header>
19277 _ACEOF
19278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19280 ac_status=$?
19281 grep -v '^ *+' conftest.er1 >conftest.err
19282 rm -f conftest.er1
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } >/dev/null; then
19286 if test -s conftest.err; then
19287 ac_cpp_err=$ac_c_preproc_warn_flag
19288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19289 else
19290 ac_cpp_err=
19292 else
19293 ac_cpp_err=yes
19295 if test -z "$ac_cpp_err"; then
19296 ac_header_preproc=yes
19297 else
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 ac_header_preproc=no
19303 rm -f conftest.err conftest.$ac_ext
19304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19305 echo "${ECHO_T}$ac_header_preproc" >&6
19307 # So? What about this header?
19308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19309 yes:no: )
19310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19314 ac_header_preproc=yes
19316 no:yes:* )
19317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19330 cat <<\_ASBOX
19331 ## ------------------------------------------ ##
19332 ## Report this to the AC_PACKAGE_NAME lists. ##
19333 ## ------------------------------------------ ##
19334 _ASBOX
19336 sed "s/^/$as_me: WARNING: /" >&2
19338 esac
19339 echo "$as_me:$LINENO: checking for $ac_header" >&5
19340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344 eval "$as_ac_Header=\$ac_header_preproc"
19346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19351 cat >>confdefs.h <<_ACEOF
19352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19353 _ACEOF
19355 else
19357 for ac_header in kerberos/krb.h
19359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19361 echo "$as_me:$LINENO: checking for $ac_header" >&5
19362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19368 else
19369 # Is the header compilable?
19370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19372 cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h. */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h. */
19378 $ac_includes_default
19379 #include <$ac_header>
19380 _ACEOF
19381 rm -f conftest.$ac_objext
19382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383 (eval $ac_compile) 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } &&
19390 { ac_try='test -z "$ac_c_werror_flag"
19391 || test ! -s conftest.err'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest.$ac_objext'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 ac_header_compiler=yes
19404 else
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 ac_header_compiler=no
19410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19412 echo "${ECHO_T}$ac_header_compiler" >&6
19414 # Is the header present?
19415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h. */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 #include <$ac_header>
19424 _ACEOF
19425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } >/dev/null; then
19433 if test -s conftest.err; then
19434 ac_cpp_err=$ac_c_preproc_warn_flag
19435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19436 else
19437 ac_cpp_err=
19439 else
19440 ac_cpp_err=yes
19442 if test -z "$ac_cpp_err"; then
19443 ac_header_preproc=yes
19444 else
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_header_preproc=no
19450 rm -f conftest.err conftest.$ac_ext
19451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19452 echo "${ECHO_T}$ac_header_preproc" >&6
19454 # So? What about this header?
19455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19456 yes:no: )
19457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19461 ac_header_preproc=yes
19463 no:yes:* )
19464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19477 cat <<\_ASBOX
19478 ## ------------------------------------------ ##
19479 ## Report this to the AC_PACKAGE_NAME lists. ##
19480 ## ------------------------------------------ ##
19481 _ASBOX
19483 sed "s/^/$as_me: WARNING: /" >&2
19485 esac
19486 echo "$as_me:$LINENO: checking for $ac_header" >&5
19487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 else
19491 eval "$as_ac_Header=\$ac_header_preproc"
19493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19500 _ACEOF
19504 done
19508 done
19512 done
19516 for ac_header in com_err.h
19518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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
19525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19527 else
19528 # Is the header compilable?
19529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19531 cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h. */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19537 $ac_includes_default
19538 #include <$ac_header>
19539 _ACEOF
19540 rm -f conftest.$ac_objext
19541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542 (eval $ac_compile) 2>conftest.er1
19543 ac_status=$?
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } &&
19549 { ac_try='test -z "$ac_c_werror_flag"
19550 || test ! -s conftest.err'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_header_compiler=yes
19563 else
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ac_header_compiler=no
19569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19571 echo "${ECHO_T}$ac_header_compiler" >&6
19573 # Is the header present?
19574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 #include <$ac_header>
19583 _ACEOF
19584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19586 ac_status=$?
19587 grep -v '^ *+' conftest.er1 >conftest.err
19588 rm -f conftest.er1
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } >/dev/null; then
19592 if test -s conftest.err; then
19593 ac_cpp_err=$ac_c_preproc_warn_flag
19594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19595 else
19596 ac_cpp_err=
19598 else
19599 ac_cpp_err=yes
19601 if test -z "$ac_cpp_err"; then
19602 ac_header_preproc=yes
19603 else
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19607 ac_header_preproc=no
19609 rm -f conftest.err conftest.$ac_ext
19610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19611 echo "${ECHO_T}$ac_header_preproc" >&6
19613 # So? What about this header?
19614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19615 yes:no: )
19616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19620 ac_header_preproc=yes
19622 no:yes:* )
19623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19636 cat <<\_ASBOX
19637 ## ------------------------------------------ ##
19638 ## Report this to the AC_PACKAGE_NAME lists. ##
19639 ## ------------------------------------------ ##
19640 _ASBOX
19642 sed "s/^/$as_me: WARNING: /" >&2
19644 esac
19645 echo "$as_me:$LINENO: checking for $ac_header" >&5
19646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650 eval "$as_ac_Header=\$ac_header_preproc"
19652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19657 cat >>confdefs.h <<_ACEOF
19658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19659 _ACEOF
19663 done
19667 # Solaris requires -lintl if you want strerror (which calls dgettext)
19668 # to return localized messages.
19670 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19671 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19672 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675 ac_check_lib_save_LIBS=$LIBS
19676 LIBS="-lintl $LIBS"
19677 cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h. */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19684 /* Override any gcc2 internal prototype to avoid an error. */
19685 #ifdef __cplusplus
19686 extern "C"
19687 #endif
19688 /* We use char because int might match the return type of a gcc2
19689 builtin and then its argument prototype would still apply. */
19690 char dgettext ();
19692 main ()
19694 dgettext ();
19696 return 0;
19698 _ACEOF
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19701 (eval $ac_link) 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
19708 { ac_try='test -z "$ac_c_werror_flag"
19709 || test ! -s conftest.err'
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; } &&
19715 { ac_try='test -s conftest$ac_exeext'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; }; then
19721 ac_cv_lib_intl_dgettext=yes
19722 else
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 ac_cv_lib_intl_dgettext=no
19728 rm -f conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19730 LIBS=$ac_check_lib_save_LIBS
19732 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19733 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19734 if test $ac_cv_lib_intl_dgettext = yes; then
19735 cat >>confdefs.h <<_ACEOF
19736 #define HAVE_LIBINTL 1
19737 _ACEOF
19739 LIBS="-lintl $LIBS"
19744 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19745 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19746 if test "${emacs_cv_localtime_cache+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749 if test x$ac_cv_func_tzset = xyes; then
19750 if test "$cross_compiling" = yes; then
19751 # If we have tzset, assume the worst when cross-compiling.
19752 emacs_cv_localtime_cache=yes
19753 else
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760 #include <time.h>
19761 extern char **environ;
19762 unset_TZ ()
19764 char **from, **to;
19765 for (to = from = environ; (*to = *from); from++)
19766 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19767 to++;
19769 char TZ_GMT0[] = "TZ=GMT0";
19770 char TZ_PST8[] = "TZ=PST8";
19771 main()
19773 time_t now = time ((time_t *) 0);
19774 int hour_GMT0, hour_unset;
19775 if (putenv (TZ_GMT0) != 0)
19776 exit (1);
19777 hour_GMT0 = localtime (&now)->tm_hour;
19778 unset_TZ ();
19779 hour_unset = localtime (&now)->tm_hour;
19780 if (putenv (TZ_PST8) != 0)
19781 exit (1);
19782 if (localtime (&now)->tm_hour == hour_GMT0)
19783 exit (1);
19784 unset_TZ ();
19785 if (localtime (&now)->tm_hour != hour_unset)
19786 exit (1);
19787 exit (0);
19789 _ACEOF
19790 rm -f conftest$ac_exeext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19792 (eval $ac_link) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 emacs_cv_localtime_cache=no
19802 else
19803 echo "$as_me: program exited with status $ac_status" >&5
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ( exit $ac_status )
19808 emacs_cv_localtime_cache=yes
19810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19812 else
19813 # If we lack tzset, report that localtime does not cache TZ,
19814 # since we can't invalidate the cache if we don't have tzset.
19815 emacs_cv_localtime_cache=no
19818 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19819 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19820 if test $emacs_cv_localtime_cache = yes; then
19822 cat >>confdefs.h <<\_ACEOF
19823 #define LOCALTIME_CACHE 1
19824 _ACEOF
19828 if test "x$HAVE_TIMEVAL" = xyes; then
19830 for ac_func in gettimeofday
19832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19833 echo "$as_me:$LINENO: checking for $ac_func" >&5
19834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19835 if eval "test \"\${$as_ac_var+set}\" = set"; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19846 #define $ac_func innocuous_$ac_func
19848 /* System header to define __stub macros and hopefully few prototypes,
19849 which can conflict with char $ac_func (); below.
19850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19851 <limits.h> exists even on freestanding compilers. */
19853 #ifdef __STDC__
19854 # include <limits.h>
19855 #else
19856 # include <assert.h>
19857 #endif
19859 #undef $ac_func
19861 /* Override any gcc2 internal prototype to avoid an error. */
19862 #ifdef __cplusplus
19863 extern "C"
19865 #endif
19866 /* We use char because int might match the return type of a gcc2
19867 builtin and then its argument prototype would still apply. */
19868 char $ac_func ();
19869 /* The GNU C library defines this for functions which it implements
19870 to always fail with ENOSYS. Some functions are actually named
19871 something starting with __ and the normal name is an alias. */
19872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19873 choke me
19874 #else
19875 char (*f) () = $ac_func;
19876 #endif
19877 #ifdef __cplusplus
19879 #endif
19882 main ()
19884 return f != $ac_func;
19886 return 0;
19888 _ACEOF
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19891 (eval $ac_link) 2>conftest.er1
19892 ac_status=$?
19893 grep -v '^ *+' conftest.er1 >conftest.err
19894 rm -f conftest.er1
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
19898 { ac_try='test -z "$ac_c_werror_flag"
19899 || test ! -s conftest.err'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; } &&
19905 { ac_try='test -s conftest$ac_exeext'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
19911 eval "$as_ac_var=yes"
19912 else
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19916 eval "$as_ac_var=no"
19918 rm -f conftest.err conftest.$ac_objext \
19919 conftest$ac_exeext conftest.$ac_ext
19921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19923 if test `eval echo '${'$as_ac_var'}'` = yes; then
19924 cat >>confdefs.h <<_ACEOF
19925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19926 _ACEOF
19929 done
19931 if test $ac_cv_func_gettimeofday = yes; then
19932 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19933 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19934 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h. */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19944 #ifdef TIME_WITH_SYS_TIME
19945 #include <sys/time.h>
19946 #include <time.h>
19947 #else
19948 #ifdef HAVE_SYS_TIME_H
19949 #include <sys/time.h>
19950 #else
19951 #include <time.h>
19952 #endif
19953 #endif
19955 main ()
19957 struct timeval time;
19958 gettimeofday (&time, 0);
19960 return 0;
19962 _ACEOF
19963 rm -f conftest.$ac_objext
19964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19965 (eval $ac_compile) 2>conftest.er1
19966 ac_status=$?
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } &&
19972 { ac_try='test -z "$ac_c_werror_flag"
19973 || test ! -s conftest.err'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; } &&
19979 { ac_try='test -s conftest.$ac_objext'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; }; then
19985 emacs_cv_gettimeofday_two_arguments=yes
19986 else
19987 echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19990 emacs_cv_gettimeofday_two_arguments=no
19992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19994 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19995 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19996 if test $emacs_cv_gettimeofday_two_arguments = no; then
19998 cat >>confdefs.h <<\_ACEOF
19999 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20000 _ACEOF
20006 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20007 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20008 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20009 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h. */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018 #include <sys/types.h>
20019 #include <$ac_cv_struct_tm>
20023 main ()
20025 static struct tm ac_aggr;
20026 if (ac_aggr.tm_zone)
20027 return 0;
20029 return 0;
20031 _ACEOF
20032 rm -f conftest.$ac_objext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20034 (eval $ac_compile) 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_member_struct_tm_tm_zone=yes
20055 else
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h. */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 #include <sys/types.h>
20066 #include <$ac_cv_struct_tm>
20070 main ()
20072 static struct tm ac_aggr;
20073 if (sizeof ac_aggr.tm_zone)
20074 return 0;
20076 return 0;
20078 _ACEOF
20079 rm -f conftest.$ac_objext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20081 (eval $ac_compile) 2>conftest.er1
20082 ac_status=$?
20083 grep -v '^ *+' conftest.er1 >conftest.err
20084 rm -f conftest.er1
20085 cat conftest.err >&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } &&
20088 { ac_try='test -z "$ac_c_werror_flag"
20089 || test ! -s conftest.err'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } &&
20095 { ac_try='test -s conftest.$ac_objext'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_cv_member_struct_tm_tm_zone=yes
20102 else
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20106 ac_cv_member_struct_tm_tm_zone=no
20108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20112 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20113 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20114 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20116 cat >>confdefs.h <<_ACEOF
20117 #define HAVE_STRUCT_TM_TM_ZONE 1
20118 _ACEOF
20123 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20125 cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_TM_ZONE 1
20127 _ACEOF
20129 else
20130 echo "$as_me:$LINENO: checking for tzname" >&5
20131 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20132 if test "${ac_cv_var_tzname+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135 cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h. */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 #include <time.h>
20142 #ifndef tzname /* For SGI. */
20143 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20144 #endif
20147 main ()
20149 atoi(*tzname);
20151 return 0;
20153 _ACEOF
20154 rm -f conftest.$ac_objext conftest$ac_exeext
20155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20156 (eval $ac_link) 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -z "$ac_c_werror_flag"
20164 || test ! -s conftest.err'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; } &&
20170 { ac_try='test -s conftest$ac_exeext'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20176 ac_cv_var_tzname=yes
20177 else
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20181 ac_cv_var_tzname=no
20183 rm -f conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20186 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20187 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20188 if test $ac_cv_var_tzname = yes; then
20190 cat >>confdefs.h <<\_ACEOF
20191 #define HAVE_TZNAME 1
20192 _ACEOF
20198 if test "$ac_cv_func_gettimeofday" = yes; then
20199 echo "$as_me:$LINENO: checking for struct timezone" >&5
20200 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20201 if test "${emacs_cv_struct_timezone+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h. */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 #include <sys/time.h>
20212 main ()
20214 struct timezone tz;
20216 return 0;
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221 (eval $ac_compile) 2>conftest.er1
20222 ac_status=$?
20223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -z "$ac_c_werror_flag"
20229 || test ! -s conftest.err'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; } &&
20235 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20241 if test "$cross_compiling" = yes; then
20242 emacs_cv_struct_timezone=yes
20243 else
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h. */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20251 #ifdef TIME_WITH_SYS_TIME
20252 #include <sys/time.h>
20253 #include <time.h>
20254 #else
20255 #ifdef HAVE_SYS_TIME_H
20256 #include <sys/time.h>
20257 #else
20258 #include <time.h>
20259 #endif
20260 #endif
20261 main () {
20262 struct timeval time;
20263 struct timezone dummy;
20264 exit (gettimeofday (&time, &dummy));
20266 _ACEOF
20267 rm -f conftest$ac_exeext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20269 (eval $ac_link) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20278 emacs_cv_struct_timezone=yes
20279 else
20280 echo "$as_me: program exited with status $ac_status" >&5
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ( exit $ac_status )
20285 emacs_cv_struct_timezone=no
20287 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20289 else
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 emacs_cv_struct_timezone=no
20295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20297 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20298 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20301 ok_so_far=yes
20302 echo "$as_me:$LINENO: checking for socket" >&5
20303 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20304 if test "${ac_cv_func_socket+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 else
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h. */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20315 #define socket innocuous_socket
20317 /* System header to define __stub macros and hopefully few prototypes,
20318 which can conflict with char socket (); below.
20319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20320 <limits.h> exists even on freestanding compilers. */
20322 #ifdef __STDC__
20323 # include <limits.h>
20324 #else
20325 # include <assert.h>
20326 #endif
20328 #undef socket
20330 /* Override any gcc2 internal prototype to avoid an error. */
20331 #ifdef __cplusplus
20332 extern "C"
20334 #endif
20335 /* We use char because int might match the return type of a gcc2
20336 builtin and then its argument prototype would still apply. */
20337 char socket ();
20338 /* The GNU C library defines this for functions which it implements
20339 to always fail with ENOSYS. Some functions are actually named
20340 something starting with __ and the normal name is an alias. */
20341 #if defined (__stub_socket) || defined (__stub___socket)
20342 choke me
20343 #else
20344 char (*f) () = socket;
20345 #endif
20346 #ifdef __cplusplus
20348 #endif
20351 main ()
20353 return f != socket;
20355 return 0;
20357 _ACEOF
20358 rm -f conftest.$ac_objext conftest$ac_exeext
20359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20360 (eval $ac_link) 2>conftest.er1
20361 ac_status=$?
20362 grep -v '^ *+' conftest.er1 >conftest.err
20363 rm -f conftest.er1
20364 cat conftest.err >&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); } &&
20367 { ac_try='test -z "$ac_c_werror_flag"
20368 || test ! -s conftest.err'
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; } &&
20374 { ac_try='test -s conftest$ac_exeext'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 ac_cv_func_socket=yes
20381 else
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 ac_cv_func_socket=no
20387 rm -f conftest.err conftest.$ac_objext \
20388 conftest$ac_exeext conftest.$ac_ext
20390 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20391 echo "${ECHO_T}$ac_cv_func_socket" >&6
20392 if test $ac_cv_func_socket = yes; then
20394 else
20395 ok_so_far=no
20398 if test $ok_so_far = yes; then
20399 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20400 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20401 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20402 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20406 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20407 else
20408 # Is the header compilable?
20409 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20410 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h. */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 $ac_includes_default
20418 #include <netinet/in.h>
20419 _ACEOF
20420 rm -f conftest.$ac_objext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_header_compiler=yes
20443 else
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_header_compiler=no
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20451 echo "${ECHO_T}$ac_header_compiler" >&6
20453 # Is the header present?
20454 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20455 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20456 cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h. */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20462 #include <netinet/in.h>
20463 _ACEOF
20464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20466 ac_status=$?
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -f conftest.er1
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } >/dev/null; then
20472 if test -s conftest.err; then
20473 ac_cpp_err=$ac_c_preproc_warn_flag
20474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20475 else
20476 ac_cpp_err=
20478 else
20479 ac_cpp_err=yes
20481 if test -z "$ac_cpp_err"; then
20482 ac_header_preproc=yes
20483 else
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 ac_header_preproc=no
20489 rm -f conftest.err conftest.$ac_ext
20490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20491 echo "${ECHO_T}$ac_header_preproc" >&6
20493 # So? What about this header?
20494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20495 yes:no: )
20496 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20497 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20499 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20500 ac_header_preproc=yes
20502 no:yes:* )
20503 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20504 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20506 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20508 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20510 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20511 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20512 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20513 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20514 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20516 cat <<\_ASBOX
20517 ## ------------------------------------------ ##
20518 ## Report this to the AC_PACKAGE_NAME lists. ##
20519 ## ------------------------------------------ ##
20520 _ASBOX
20522 sed "s/^/$as_me: WARNING: /" >&2
20524 esac
20525 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20526 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20527 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530 ac_cv_header_netinet_in_h=$ac_header_preproc
20532 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20533 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20536 if test $ac_cv_header_netinet_in_h = yes; then
20538 else
20539 ok_so_far=no
20544 if test $ok_so_far = yes; then
20545 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20546 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20547 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20548 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20552 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20553 else
20554 # Is the header compilable?
20555 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20556 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20557 cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h. */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 $ac_includes_default
20564 #include <arpa/inet.h>
20565 _ACEOF
20566 rm -f conftest.$ac_objext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20568 (eval $ac_compile) 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag"
20576 || test ! -s conftest.err'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; } &&
20582 { ac_try='test -s conftest.$ac_objext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_header_compiler=yes
20589 else
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_header_compiler=no
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20597 echo "${ECHO_T}$ac_header_compiler" >&6
20599 # Is the header present?
20600 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20601 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 #include <arpa/inet.h>
20609 _ACEOF
20610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20612 ac_status=$?
20613 grep -v '^ *+' conftest.er1 >conftest.err
20614 rm -f conftest.er1
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } >/dev/null; then
20618 if test -s conftest.err; then
20619 ac_cpp_err=$ac_c_preproc_warn_flag
20620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20621 else
20622 ac_cpp_err=
20624 else
20625 ac_cpp_err=yes
20627 if test -z "$ac_cpp_err"; then
20628 ac_header_preproc=yes
20629 else
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20633 ac_header_preproc=no
20635 rm -f conftest.err conftest.$ac_ext
20636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20637 echo "${ECHO_T}$ac_header_preproc" >&6
20639 # So? What about this header?
20640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20641 yes:no: )
20642 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20643 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20645 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20646 ac_header_preproc=yes
20648 no:yes:* )
20649 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20650 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20652 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20654 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20656 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20658 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20660 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20662 cat <<\_ASBOX
20663 ## ------------------------------------------ ##
20664 ## Report this to the AC_PACKAGE_NAME lists. ##
20665 ## ------------------------------------------ ##
20666 _ASBOX
20668 sed "s/^/$as_me: WARNING: /" >&2
20670 esac
20671 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20672 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20673 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 ac_cv_header_arpa_inet_h=$ac_header_preproc
20678 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20679 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20682 if test $ac_cv_header_arpa_inet_h = yes; then
20684 else
20685 ok_so_far=no
20690 if test $ok_so_far = yes; then
20692 cat >>confdefs.h <<\_ACEOF
20693 #define HAVE_INET_SOCKETS 1
20694 _ACEOF
20699 for ac_header in sys/ioctl.h
20701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20703 echo "$as_me:$LINENO: checking for $ac_header" >&5
20704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20710 else
20711 # Is the header compilable?
20712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h. */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 $ac_includes_default
20721 #include <$ac_header>
20722 _ACEOF
20723 rm -f conftest.$ac_objext
20724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20725 (eval $ac_compile) 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
20732 { ac_try='test -z "$ac_c_werror_flag"
20733 || test ! -s conftest.err'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; } &&
20739 { ac_try='test -s conftest.$ac_objext'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
20745 ac_header_compiler=yes
20746 else
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20750 ac_header_compiler=no
20752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20754 echo "${ECHO_T}$ac_header_compiler" >&6
20756 # Is the header present?
20757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20759 cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h. */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 #include <$ac_header>
20766 _ACEOF
20767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20769 ac_status=$?
20770 grep -v '^ *+' conftest.er1 >conftest.err
20771 rm -f conftest.er1
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } >/dev/null; then
20775 if test -s conftest.err; then
20776 ac_cpp_err=$ac_c_preproc_warn_flag
20777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20778 else
20779 ac_cpp_err=
20781 else
20782 ac_cpp_err=yes
20784 if test -z "$ac_cpp_err"; then
20785 ac_header_preproc=yes
20786 else
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20790 ac_header_preproc=no
20792 rm -f conftest.err conftest.$ac_ext
20793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20794 echo "${ECHO_T}$ac_header_preproc" >&6
20796 # So? What about this header?
20797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20798 yes:no: )
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20803 ac_header_preproc=yes
20805 no:yes:* )
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20819 cat <<\_ASBOX
20820 ## ------------------------------------------ ##
20821 ## Report this to the AC_PACKAGE_NAME lists. ##
20822 ## ------------------------------------------ ##
20823 _ASBOX
20825 sed "s/^/$as_me: WARNING: /" >&2
20827 esac
20828 echo "$as_me:$LINENO: checking for $ac_header" >&5
20829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833 eval "$as_ac_Header=\$ac_header_preproc"
20835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20840 cat >>confdefs.h <<_ACEOF
20841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20842 _ACEOF
20846 done
20849 if test -f /usr/lpp/X11/bin/smt.exp; then
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_AIX_SMT_EXP 1
20853 _ACEOF
20857 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20858 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20859 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20860 echo "$as_me:$LINENO: result: yes" >&5
20861 echo "${ECHO_T}yes" >&6
20863 cat >>confdefs.h <<\_ACEOF
20864 #define HAVE_DEV_PTMX 1
20865 _ACEOF
20867 else
20868 echo "$as_me:$LINENO: result: no" >&5
20869 echo "${ECHO_T}no" >&6
20872 echo "$as_me:$LINENO: checking for pid_t" >&5
20873 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20874 if test "${ac_cv_type_pid_t+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 $ac_includes_default
20885 main ()
20887 if ((pid_t *) 0)
20888 return 0;
20889 if (sizeof (pid_t))
20890 return 0;
20892 return 0;
20894 _ACEOF
20895 rm -f conftest.$ac_objext
20896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20897 (eval $ac_compile) 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
20904 { ac_try='test -z "$ac_c_werror_flag"
20905 || test ! -s conftest.err'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try='test -s conftest.$ac_objext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 ac_cv_type_pid_t=yes
20918 else
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_cv_type_pid_t=no
20924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20926 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20927 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20928 if test $ac_cv_type_pid_t = yes; then
20930 else
20932 cat >>confdefs.h <<_ACEOF
20933 #define pid_t int
20934 _ACEOF
20940 for ac_header in unistd.h vfork.h
20942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20944 echo "$as_me:$LINENO: checking for $ac_header" >&5
20945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20951 else
20952 # Is the header compilable?
20953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h. */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 #include <$ac_header>
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20966 (eval $ac_compile) 2>conftest.er1
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -z "$ac_c_werror_flag"
20974 || test ! -s conftest.err'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; } &&
20980 { ac_try='test -s conftest.$ac_objext'
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20983 ac_status=$?
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; }; then
20986 ac_header_compiler=yes
20987 else
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20991 ac_header_compiler=no
20993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20995 echo "${ECHO_T}$ac_header_compiler" >&6
20997 # Is the header present?
20998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21000 cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h. */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <$ac_header>
21007 _ACEOF
21008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21010 ac_status=$?
21011 grep -v '^ *+' conftest.er1 >conftest.err
21012 rm -f conftest.er1
21013 cat conftest.err >&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } >/dev/null; then
21016 if test -s conftest.err; then
21017 ac_cpp_err=$ac_c_preproc_warn_flag
21018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21019 else
21020 ac_cpp_err=
21022 else
21023 ac_cpp_err=yes
21025 if test -z "$ac_cpp_err"; then
21026 ac_header_preproc=yes
21027 else
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ac_header_preproc=no
21033 rm -f conftest.err conftest.$ac_ext
21034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21035 echo "${ECHO_T}$ac_header_preproc" >&6
21037 # So? What about this header?
21038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21039 yes:no: )
21040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21044 ac_header_preproc=yes
21046 no:yes:* )
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21060 cat <<\_ASBOX
21061 ## ------------------------------------------ ##
21062 ## Report this to the AC_PACKAGE_NAME lists. ##
21063 ## ------------------------------------------ ##
21064 _ASBOX
21066 sed "s/^/$as_me: WARNING: /" >&2
21068 esac
21069 echo "$as_me:$LINENO: checking for $ac_header" >&5
21070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074 eval "$as_ac_Header=\$ac_header_preproc"
21076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21081 cat >>confdefs.h <<_ACEOF
21082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21083 _ACEOF
21087 done
21091 for ac_func in fork vfork
21093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21094 echo "$as_me:$LINENO: checking for $ac_func" >&5
21095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21096 if eval "test \"\${$as_ac_var+set}\" = set"; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h. */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21107 #define $ac_func innocuous_$ac_func
21109 /* System header to define __stub macros and hopefully few prototypes,
21110 which can conflict with char $ac_func (); below.
21111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21112 <limits.h> exists even on freestanding compilers. */
21114 #ifdef __STDC__
21115 # include <limits.h>
21116 #else
21117 # include <assert.h>
21118 #endif
21120 #undef $ac_func
21122 /* Override any gcc2 internal prototype to avoid an error. */
21123 #ifdef __cplusplus
21124 extern "C"
21126 #endif
21127 /* We use char because int might match the return type of a gcc2
21128 builtin and then its argument prototype would still apply. */
21129 char $ac_func ();
21130 /* The GNU C library defines this for functions which it implements
21131 to always fail with ENOSYS. Some functions are actually named
21132 something starting with __ and the normal name is an alias. */
21133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21134 choke me
21135 #else
21136 char (*f) () = $ac_func;
21137 #endif
21138 #ifdef __cplusplus
21140 #endif
21143 main ()
21145 return f != $ac_func;
21147 return 0;
21149 _ACEOF
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152 (eval $ac_link) 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest$ac_exeext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 eval "$as_ac_var=yes"
21173 else
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 eval "$as_ac_var=no"
21179 rm -f conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
21182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21184 if test `eval echo '${'$as_ac_var'}'` = yes; then
21185 cat >>confdefs.h <<_ACEOF
21186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21187 _ACEOF
21190 done
21192 if test "x$ac_cv_func_fork" = xyes; then
21193 echo "$as_me:$LINENO: checking for working fork" >&5
21194 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21195 if test "${ac_cv_func_fork_works+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198 if test "$cross_compiling" = yes; then
21199 ac_cv_func_fork_works=cross
21200 else
21201 cat >conftest.$ac_ext <<_ACEOF
21202 /* By Ruediger Kuhlmann. */
21203 #include <sys/types.h>
21204 #if HAVE_UNISTD_H
21205 # include <unistd.h>
21206 #endif
21207 /* Some systems only have a dummy stub for fork() */
21208 int main ()
21210 if (fork() < 0)
21211 exit (1);
21212 exit (0);
21214 _ACEOF
21215 rm -f conftest$ac_exeext
21216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21217 (eval $ac_link) 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; }; then
21226 ac_cv_func_fork_works=yes
21227 else
21228 echo "$as_me: program exited with status $ac_status" >&5
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ( exit $ac_status )
21233 ac_cv_func_fork_works=no
21235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21238 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21239 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21241 else
21242 ac_cv_func_fork_works=$ac_cv_func_fork
21244 if test "x$ac_cv_func_fork_works" = xcross; then
21245 case $host in
21246 *-*-amigaos* | *-*-msdosdjgpp*)
21247 # Override, as these systems have only a dummy fork() stub
21248 ac_cv_func_fork_works=no
21251 ac_cv_func_fork_works=yes
21253 esac
21254 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21255 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21257 ac_cv_func_vfork_works=$ac_cv_func_vfork
21258 if test "x$ac_cv_func_vfork" = xyes; then
21259 echo "$as_me:$LINENO: checking for working vfork" >&5
21260 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21261 if test "${ac_cv_func_vfork_works+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264 if test "$cross_compiling" = yes; then
21265 ac_cv_func_vfork_works=cross
21266 else
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 /* Thanks to Paul Eggert for this test. */
21274 #include <stdio.h>
21275 #include <stdlib.h>
21276 #include <sys/types.h>
21277 #include <sys/stat.h>
21278 #include <sys/wait.h>
21279 #if HAVE_UNISTD_H
21280 # include <unistd.h>
21281 #endif
21282 #if HAVE_VFORK_H
21283 # include <vfork.h>
21284 #endif
21285 /* On some sparc systems, changes by the child to local and incoming
21286 argument registers are propagated back to the parent. The compiler
21287 is told about this with #include <vfork.h>, but some compilers
21288 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21289 static variable whose address is put into a register that is
21290 clobbered by the vfork. */
21291 static void
21292 #ifdef __cplusplus
21293 sparc_address_test (int arg)
21294 # else
21295 sparc_address_test (arg) int arg;
21296 #endif
21298 static pid_t child;
21299 if (!child) {
21300 child = vfork ();
21301 if (child < 0) {
21302 perror ("vfork");
21303 _exit(2);
21305 if (!child) {
21306 arg = getpid();
21307 write(-1, "", 0);
21308 _exit (arg);
21314 main ()
21316 pid_t parent = getpid ();
21317 pid_t child;
21319 sparc_address_test (0);
21321 child = vfork ();
21323 if (child == 0) {
21324 /* Here is another test for sparc vfork register problems. This
21325 test uses lots of local variables, at least as many local
21326 variables as main has allocated so far including compiler
21327 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21328 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21329 reuse the register of parent for one of the local variables,
21330 since it will think that parent can't possibly be used any more
21331 in this routine. Assigning to the local variable will thus
21332 munge parent in the parent process. */
21333 pid_t
21334 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21335 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21336 /* Convince the compiler that p..p7 are live; otherwise, it might
21337 use the same hardware register for all 8 local variables. */
21338 if (p != p1 || p != p2 || p != p3 || p != p4
21339 || p != p5 || p != p6 || p != p7)
21340 _exit(1);
21342 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21343 from child file descriptors. If the child closes a descriptor
21344 before it execs or exits, this munges the parent's descriptor
21345 as well. Test for this by closing stdout in the child. */
21346 _exit(close(fileno(stdout)) != 0);
21347 } else {
21348 int status;
21349 struct stat st;
21351 while (wait(&status) != child)
21353 exit(
21354 /* Was there some problem with vforking? */
21355 child < 0
21357 /* Did the child fail? (This shouldn't happen.) */
21358 || status
21360 /* Did the vfork/compiler bug occur? */
21361 || parent != getpid()
21363 /* Did the file descriptor bug occur? */
21364 || fstat(fileno(stdout), &st) != 0
21368 _ACEOF
21369 rm -f conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_cv_func_vfork_works=yes
21381 else
21382 echo "$as_me: program exited with status $ac_status" >&5
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ( exit $ac_status )
21387 ac_cv_func_vfork_works=no
21389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21392 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21393 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21396 if test "x$ac_cv_func_fork_works" = xcross; then
21397 ac_cv_func_vfork_works=$ac_cv_func_vfork
21398 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21399 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21402 if test "x$ac_cv_func_vfork_works" = xyes; then
21404 cat >>confdefs.h <<\_ACEOF
21405 #define HAVE_WORKING_VFORK 1
21406 _ACEOF
21408 else
21410 cat >>confdefs.h <<\_ACEOF
21411 #define vfork fork
21412 _ACEOF
21415 if test "x$ac_cv_func_fork_works" = xyes; then
21417 cat >>confdefs.h <<\_ACEOF
21418 #define HAVE_WORKING_FORK 1
21419 _ACEOF
21424 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21425 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21426 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h. */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21435 #include <langinfo.h>
21437 main ()
21439 char* cs = nl_langinfo(CODESET);
21441 return 0;
21443 _ACEOF
21444 rm -f conftest.$ac_objext conftest$ac_exeext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446 (eval $ac_link) 2>conftest.er1
21447 ac_status=$?
21448 grep -v '^ *+' conftest.er1 >conftest.err
21449 rm -f conftest.er1
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } &&
21453 { ac_try='test -z "$ac_c_werror_flag"
21454 || test ! -s conftest.err'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; } &&
21460 { ac_try='test -s conftest$ac_exeext'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21463 ac_status=$?
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; }; then
21466 emacs_cv_langinfo_codeset=yes
21467 else
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 emacs_cv_langinfo_codeset=no
21473 rm -f conftest.err conftest.$ac_objext \
21474 conftest$ac_exeext conftest.$ac_ext
21477 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21478 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21479 if test $emacs_cv_langinfo_codeset = yes; then
21481 cat >>confdefs.h <<\_ACEOF
21482 #define HAVE_LANGINFO_CODESET 1
21483 _ACEOF
21487 echo "$as_me:$LINENO: checking for size_t" >&5
21488 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21489 if test "${ac_cv_type_size_t+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h. */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21498 $ac_includes_default
21500 main ()
21502 if ((size_t *) 0)
21503 return 0;
21504 if (sizeof (size_t))
21505 return 0;
21507 return 0;
21509 _ACEOF
21510 rm -f conftest.$ac_objext
21511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21512 (eval $ac_compile) 2>conftest.er1
21513 ac_status=$?
21514 grep -v '^ *+' conftest.er1 >conftest.err
21515 rm -f conftest.er1
21516 cat conftest.err >&5
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } &&
21519 { ac_try='test -z "$ac_c_werror_flag"
21520 || test ! -s conftest.err'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; } &&
21526 { ac_try='test -s conftest.$ac_objext'
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21529 ac_status=$?
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; }; then
21532 ac_cv_type_size_t=yes
21533 else
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 ac_cv_type_size_t=no
21539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21541 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21542 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21543 if test $ac_cv_type_size_t = yes; then
21545 cat >>confdefs.h <<_ACEOF
21546 #define HAVE_SIZE_T 1
21547 _ACEOF
21553 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21554 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21555 if test "${ac_cv_type_mbstate_t+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h. */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 $ac_includes_default
21565 # include <wchar.h>
21567 main ()
21569 mbstate_t x; return sizeof x;
21571 return 0;
21573 _ACEOF
21574 rm -f conftest.$ac_objext
21575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21576 (eval $ac_compile) 2>conftest.er1
21577 ac_status=$?
21578 grep -v '^ *+' conftest.er1 >conftest.err
21579 rm -f conftest.er1
21580 cat conftest.err >&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -z "$ac_c_werror_flag"
21584 || test ! -s conftest.err'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; } &&
21590 { ac_try='test -s conftest.$ac_objext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_cv_type_mbstate_t=yes
21597 else
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ac_cv_type_mbstate_t=no
21603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21605 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21606 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21607 if test $ac_cv_type_mbstate_t = yes; then
21609 cat >>confdefs.h <<\_ACEOF
21610 #define HAVE_MBSTATE_T 1
21611 _ACEOF
21613 else
21615 cat >>confdefs.h <<\_ACEOF
21616 #define mbstate_t int
21617 _ACEOF
21621 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21622 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21623 if test "${emacs_cv_c_restrict+set}" = set; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 else
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h. */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 void fred (int *restrict x);
21634 main ()
21638 return 0;
21640 _ACEOF
21641 rm -f conftest.$ac_objext
21642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21643 (eval $ac_compile) 2>conftest.er1
21644 ac_status=$?
21645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
21650 { ac_try='test -z "$ac_c_werror_flag"
21651 || test ! -s conftest.err'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest.$ac_objext'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 emacs_cv_c_restrict=yes
21664 else
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h. */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 void fred (int *__restrict x);
21676 main ()
21680 return 0;
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21685 (eval $ac_compile) 2>conftest.er1
21686 ac_status=$?
21687 grep -v '^ *+' conftest.er1 >conftest.err
21688 rm -f conftest.er1
21689 cat conftest.err >&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } &&
21692 { ac_try='test -z "$ac_c_werror_flag"
21693 || test ! -s conftest.err'
21694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest.$ac_objext'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21705 emacs_cv_c_restrict=__restrict
21706 else
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 emacs_cv_c_restrict=no
21712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21716 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21717 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21718 case "$emacs_cv_c_restrict" in
21719 yes) emacs_restrict=restrict;;
21720 no) emacs_restrict="";;
21721 *) emacs_restrict="$emacs_cv_c_restrict";;
21722 esac
21723 if test "$emacs_restrict" != __restrict; then
21725 cat >>confdefs.h <<_ACEOF
21726 #define __restrict $emacs_restrict
21727 _ACEOF
21731 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21732 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21733 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736 cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h. */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 void fred (int x[__restrict]);
21744 main ()
21748 return 0;
21750 _ACEOF
21751 rm -f conftest.$ac_objext
21752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21753 (eval $ac_compile) 2>conftest.er1
21754 ac_status=$?
21755 grep -v '^ *+' conftest.er1 >conftest.err
21756 rm -f conftest.er1
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } &&
21760 { ac_try='test -z "$ac_c_werror_flag"
21761 || test ! -s conftest.err'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; } &&
21767 { ac_try='test -s conftest.$ac_objext'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 emacs_cv_c_restrict_arr=yes
21774 else
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 emacs_cv_c_restrict_arr=no
21780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21782 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21783 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21784 if test "$emacs_cv_c_restrict_arr" = yes; then
21786 cat >>confdefs.h <<\_ACEOF
21787 #define __restrict_arr __restrict
21788 _ACEOF
21794 # Set up the CFLAGS for real compilation, so we can substitute it.
21795 CFLAGS="$REAL_CFLAGS"
21796 CPPFLAGS="$REAL_CPPFLAGS"
21798 #### Find out which version of Emacs this is.
21799 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21800 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21801 if test x"${version}" = x; then
21802 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21803 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21804 { (exit 1); exit 1; }; }
21807 ### Specify what sort of things we'll be editing into Makefile and config.h.
21808 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21844 cat >>confdefs.h <<_ACEOF
21845 #define EMACS_CONFIGURATION "${canonical}"
21846 _ACEOF
21849 cat >>confdefs.h <<_ACEOF
21850 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21851 _ACEOF
21854 cat >>confdefs.h <<_ACEOF
21855 #define config_machfile "${machfile}"
21856 _ACEOF
21859 cat >>confdefs.h <<_ACEOF
21860 #define config_opsysfile "${opsysfile}"
21861 _ACEOF
21864 cat >>confdefs.h <<_ACEOF
21865 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21866 _ACEOF
21869 cat >>confdefs.h <<_ACEOF
21870 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21871 _ACEOF
21874 cat >>confdefs.h <<_ACEOF
21875 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21876 _ACEOF
21879 cat >>confdefs.h <<_ACEOF
21880 #define UNEXEC_SRC ${UNEXEC_SRC}
21881 _ACEOF
21884 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21886 cat >>confdefs.h <<\_ACEOF
21887 #define HAVE_X_WINDOWS 1
21888 _ACEOF
21891 if test "${USE_X_TOOLKIT}" != "none" ; then
21893 cat >>confdefs.h <<\_ACEOF
21894 #define USE_X_TOOLKIT 1
21895 _ACEOF
21898 if test "${HAVE_X11}" = "yes" ; then
21900 cat >>confdefs.h <<\_ACEOF
21901 #define HAVE_X11 1
21902 _ACEOF
21905 if test "${HAVE_XFREE386}" = "yes" ; then
21907 cat >>confdefs.h <<\_ACEOF
21908 #define HAVE_XFREE386 1
21909 _ACEOF
21912 if test "${HAVE_MENUS}" = "yes" ; then
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_MENUS 1
21916 _ACEOF
21919 if test "${GNU_MALLOC}" = "yes" ; then
21921 cat >>confdefs.h <<\_ACEOF
21922 #define GNU_MALLOC 1
21923 _ACEOF
21926 if test "${REL_ALLOC}" = "yes" ; then
21928 cat >>confdefs.h <<\_ACEOF
21929 #define REL_ALLOC 1
21930 _ACEOF
21938 #### Report on what we decided to do.
21939 #### Report GTK as a toolkit, even if it doesn't use Xt.
21940 #### It makes printing result more understandable as using GTK sets
21941 #### toolkit_scroll_bars to yes by default.
21942 if test "${HAVE_GTK}" = "yes"; then
21943 USE_X_TOOLKIT=GTK
21946 echo "
21947 Configured for \`${canonical}'.
21949 Where should the build process find the source code? ${srcdir}
21950 What operating system and machine description files should Emacs use?
21951 \`${opsysfile}' and \`${machfile}'
21952 What compiler should emacs be built with? ${CC} ${CFLAGS}
21953 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21954 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21955 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21956 What window system should Emacs use? ${window_system}
21957 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21959 if test -n "${x_includes}"; then
21960 echo " Where do we find X Windows header files? ${x_includes}"
21961 else
21962 echo " Where do we find X Windows header files? Standard dirs"
21964 if test -n "${x_libraries}"; then
21965 echo " Where do we find X Windows libraries? ${x_libraries}"
21966 else
21967 echo " Where do we find X Windows libraries? Standard dirs"
21970 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21971 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21972 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21973 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21974 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21975 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21976 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21977 echo
21979 if test "$emacs_cv_randomheap" = warn; then
21980 { echo "$as_me:$LINENO: WARNING:
21981 **********************************************************************
21983 Heap start address is randomized and no workaround is known.
21984 Emacs will probably dump core when temacs is run in the build phase.
21985 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21986 for further information.
21988 **********************************************************************
21989 " >&5
21990 echo "$as_me: WARNING:
21991 **********************************************************************
21993 Heap start address is randomized and no workaround is known.
21994 Emacs will probably dump core when temacs is run in the build phase.
21995 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21996 for further information.
21998 **********************************************************************
21999 " >&2;}
22002 # Remove any trailing slashes in these variables.
22003 test "${prefix}" != NONE &&
22004 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22005 test "${exec_prefix}" != NONE &&
22006 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22008 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22009 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22010 ## from Makefile.c can correctly provide the arg `-traditional' to the
22011 ## C preprocessor.
22013 cat >conftest.$ac_ext <<_ACEOF
22014 /* confdefs.h. */
22015 _ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 yes..yes
22020 _ACEOF
22021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22022 $EGREP "yes..yes" >/dev/null 2>&1; then
22023 CPP_NEED_TRADITIONAL=no
22024 else
22025 CPP_NEED_TRADITIONAL=yes
22027 rm -f conftest*
22030 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"
22031 ac_config_commands="$ac_config_commands default"
22032 cat >confcache <<\_ACEOF
22033 # This file is a shell script that caches the results of configure
22034 # tests run on this system so they can be shared between configure
22035 # scripts and configure runs, see configure's option --config-cache.
22036 # It is not useful on other systems. If it contains results you don't
22037 # want to keep, you may remove or edit it.
22039 # config.status only pays attention to the cache file if you give it
22040 # the --recheck option to rerun configure.
22042 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22043 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22044 # following values.
22046 _ACEOF
22048 # The following way of writing the cache mishandles newlines in values,
22049 # but we know of no workaround that is simple, portable, and efficient.
22050 # So, don't put newlines in cache variables' values.
22051 # Ultrix sh set writes to stderr and can't be redirected directly,
22052 # and sets the high bit in the cache file unless we assign to the vars.
22054 (set) 2>&1 |
22055 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22056 *ac_space=\ *)
22057 # `set' does not quote correctly, so add quotes (double-quote
22058 # substitution turns \\\\ into \\, and sed turns \\ into \).
22059 sed -n \
22060 "s/'/'\\\\''/g;
22061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22064 # `set' quotes correctly as required by POSIX, so do not add quotes.
22065 sed -n \
22066 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22068 esac;
22070 sed '
22071 t clear
22072 : clear
22073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22074 t end
22075 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22076 : end' >>confcache
22077 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22078 if test -w $cache_file; then
22079 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22080 cat confcache >$cache_file
22081 else
22082 echo "not updating unwritable cache $cache_file"
22085 rm -f confcache
22087 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22088 # Let make expand exec_prefix.
22089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22091 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22092 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22093 # trailing colons and then remove the whole line if VPATH becomes empty
22094 # (actually we leave an empty line to preserve line numbers).
22095 if test "x$srcdir" = x.; then
22096 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22097 s/:*\$(srcdir):*/:/;
22098 s/:*\${srcdir}:*/:/;
22099 s/:*@srcdir@:*/:/;
22100 s/^\([^=]*=[ ]*\):*/\1/;
22101 s/:*$//;
22102 s/^[^=]*=[ ]*$//;
22106 DEFS=-DHAVE_CONFIG_H
22108 ac_libobjs=
22109 ac_ltlibobjs=
22110 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22111 # 1. Remove the extension, and $U if already installed.
22112 ac_i=`echo "$ac_i" |
22113 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22114 # 2. Add them.
22115 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22116 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22117 done
22118 LIBOBJS=$ac_libobjs
22120 LTLIBOBJS=$ac_ltlibobjs
22124 : ${CONFIG_STATUS=./config.status}
22125 ac_clean_files_save=$ac_clean_files
22126 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22127 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22128 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22129 cat >$CONFIG_STATUS <<_ACEOF
22130 #! $SHELL
22131 # Generated by $as_me.
22132 # Run this file to recreate the current configuration.
22133 # Compiler output produced by configure, useful for debugging
22134 # configure, is in config.log if it exists.
22136 debug=false
22137 ac_cs_recheck=false
22138 ac_cs_silent=false
22139 SHELL=\${CONFIG_SHELL-$SHELL}
22140 _ACEOF
22142 cat >>$CONFIG_STATUS <<\_ACEOF
22143 ## --------------------- ##
22144 ## M4sh Initialization. ##
22145 ## --------------------- ##
22147 # Be Bourne compatible
22148 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22149 emulate sh
22150 NULLCMD=:
22151 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22152 # is contrary to our usage. Disable this feature.
22153 alias -g '${1+"$@"}'='"$@"'
22154 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22155 set -o posix
22157 DUALCASE=1; export DUALCASE # for MKS sh
22159 # Support unset when possible.
22160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22161 as_unset=unset
22162 else
22163 as_unset=false
22167 # Work around bugs in pre-3.0 UWIN ksh.
22168 $as_unset ENV MAIL MAILPATH
22169 PS1='$ '
22170 PS2='> '
22171 PS4='+ '
22173 # NLS nuisances.
22174 for as_var in \
22175 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22176 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22177 LC_TELEPHONE LC_TIME
22179 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22180 eval $as_var=C; export $as_var
22181 else
22182 $as_unset $as_var
22184 done
22186 # Required to use basename.
22187 if expr a : '\(a\)' >/dev/null 2>&1; then
22188 as_expr=expr
22189 else
22190 as_expr=false
22193 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22194 as_basename=basename
22195 else
22196 as_basename=false
22200 # Name of the executable.
22201 as_me=`$as_basename "$0" ||
22202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22203 X"$0" : 'X\(//\)$' \| \
22204 X"$0" : 'X\(/\)$' \| \
22205 . : '\(.\)' 2>/dev/null ||
22206 echo X/"$0" |
22207 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22208 /^X\/\(\/\/\)$/{ s//\1/; q; }
22209 /^X\/\(\/\).*/{ s//\1/; q; }
22210 s/.*/./; q'`
22213 # PATH needs CR, and LINENO needs CR and PATH.
22214 # Avoid depending upon Character Ranges.
22215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22218 as_cr_digits='0123456789'
22219 as_cr_alnum=$as_cr_Letters$as_cr_digits
22221 # The user is always right.
22222 if test "${PATH_SEPARATOR+set}" != set; then
22223 echo "#! /bin/sh" >conf$$.sh
22224 echo "exit 0" >>conf$$.sh
22225 chmod +x conf$$.sh
22226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22227 PATH_SEPARATOR=';'
22228 else
22229 PATH_SEPARATOR=:
22231 rm -f conf$$.sh
22235 as_lineno_1=$LINENO
22236 as_lineno_2=$LINENO
22237 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22238 test "x$as_lineno_1" != "x$as_lineno_2" &&
22239 test "x$as_lineno_3" = "x$as_lineno_2" || {
22240 # Find who we are. Look in the path if we contain no path at all
22241 # relative or not.
22242 case $0 in
22243 *[\\/]* ) as_myself=$0 ;;
22244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22245 for as_dir in $PATH
22247 IFS=$as_save_IFS
22248 test -z "$as_dir" && as_dir=.
22249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22250 done
22253 esac
22254 # We did not find ourselves, most probably we were run as `sh COMMAND'
22255 # in which case we are not to be found in the path.
22256 if test "x$as_myself" = x; then
22257 as_myself=$0
22259 if test ! -f "$as_myself"; then
22260 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22261 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22262 { (exit 1); exit 1; }; }
22264 case $CONFIG_SHELL in
22266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22267 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22269 IFS=$as_save_IFS
22270 test -z "$as_dir" && as_dir=.
22271 for as_base in sh bash ksh sh5; do
22272 case $as_dir in
22274 if ("$as_dir/$as_base" -c '
22275 as_lineno_1=$LINENO
22276 as_lineno_2=$LINENO
22277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22278 test "x$as_lineno_1" != "x$as_lineno_2" &&
22279 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22280 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22281 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22282 CONFIG_SHELL=$as_dir/$as_base
22283 export CONFIG_SHELL
22284 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22285 fi;;
22286 esac
22287 done
22288 done
22290 esac
22292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22293 # uniformly replaced by the line number. The first 'sed' inserts a
22294 # line-number line before each line; the second 'sed' does the real
22295 # work. The second script uses 'N' to pair each line-number line
22296 # with the numbered line, and appends trailing '-' during
22297 # substitution so that $LINENO is not a special case at line end.
22298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22299 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22300 sed '=' <$as_myself |
22301 sed '
22303 s,$,-,
22304 : loop
22305 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22306 t loop
22307 s,-$,,
22308 s,^['$as_cr_digits']*\n,,
22309 ' >$as_me.lineno &&
22310 chmod +x $as_me.lineno ||
22311 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22312 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22313 { (exit 1); exit 1; }; }
22315 # Don't try to exec as it changes $[0], causing all sort of problems
22316 # (the dirname of $[0] is not the place where we might find the
22317 # original and so on. Autoconf is especially sensible to this).
22318 . ./$as_me.lineno
22319 # Exit status is that of the last command.
22320 exit
22324 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22325 *c*,-n*) ECHO_N= ECHO_C='
22326 ' ECHO_T=' ' ;;
22327 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22328 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22329 esac
22331 if expr a : '\(a\)' >/dev/null 2>&1; then
22332 as_expr=expr
22333 else
22334 as_expr=false
22337 rm -f conf$$ conf$$.exe conf$$.file
22338 echo >conf$$.file
22339 if ln -s conf$$.file conf$$ 2>/dev/null; then
22340 # We could just check for DJGPP; but this test a) works b) is more generic
22341 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22342 if test -f conf$$.exe; then
22343 # Don't use ln at all; we don't have any links
22344 as_ln_s='cp -p'
22345 else
22346 as_ln_s='ln -s'
22348 elif ln conf$$.file conf$$ 2>/dev/null; then
22349 as_ln_s=ln
22350 else
22351 as_ln_s='cp -p'
22353 rm -f conf$$ conf$$.exe conf$$.file
22355 if mkdir -p . 2>/dev/null; then
22356 as_mkdir_p=:
22357 else
22358 test -d ./-p && rmdir ./-p
22359 as_mkdir_p=false
22362 as_executable_p="test -f"
22364 # Sed expression to map a string onto a valid CPP name.
22365 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22367 # Sed expression to map a string onto a valid variable name.
22368 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22371 # IFS
22372 # We need space, tab and new line, in precisely that order.
22373 as_nl='
22375 IFS=" $as_nl"
22377 # CDPATH.
22378 $as_unset CDPATH
22380 exec 6>&1
22382 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22383 # report actual input values of CONFIG_FILES etc. instead of their
22384 # values after options handling. Logging --version etc. is OK.
22385 exec 5>>config.log
22387 echo
22388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22389 ## Running $as_me. ##
22390 _ASBOX
22391 } >&5
22392 cat >&5 <<_CSEOF
22394 This file was extended by $as_me, which was
22395 generated by GNU Autoconf 2.59. Invocation command line was
22397 CONFIG_FILES = $CONFIG_FILES
22398 CONFIG_HEADERS = $CONFIG_HEADERS
22399 CONFIG_LINKS = $CONFIG_LINKS
22400 CONFIG_COMMANDS = $CONFIG_COMMANDS
22401 $ $0 $@
22403 _CSEOF
22404 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22405 echo >&5
22406 _ACEOF
22408 # Files that config.status was made for.
22409 if test -n "$ac_config_files"; then
22410 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22413 if test -n "$ac_config_headers"; then
22414 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22417 if test -n "$ac_config_links"; then
22418 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22421 if test -n "$ac_config_commands"; then
22422 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22425 cat >>$CONFIG_STATUS <<\_ACEOF
22427 ac_cs_usage="\
22428 \`$as_me' instantiates files from templates according to the
22429 current configuration.
22431 Usage: $0 [OPTIONS] [FILE]...
22433 -h, --help print this help, then exit
22434 -V, --version print version number, then exit
22435 -q, --quiet do not print progress messages
22436 -d, --debug don't remove temporary files
22437 --recheck update $as_me by reconfiguring in the same conditions
22438 --file=FILE[:TEMPLATE]
22439 instantiate the configuration file FILE
22440 --header=FILE[:TEMPLATE]
22441 instantiate the configuration header FILE
22443 Configuration files:
22444 $config_files
22446 Configuration headers:
22447 $config_headers
22449 Configuration commands:
22450 $config_commands
22452 Report bugs to <bug-autoconf@gnu.org>."
22453 _ACEOF
22455 cat >>$CONFIG_STATUS <<_ACEOF
22456 ac_cs_version="\\
22457 config.status
22458 configured by $0, generated by GNU Autoconf 2.59,
22459 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22461 Copyright (C) 2003 Free Software Foundation, Inc.
22462 This config.status script is free software; the Free Software Foundation
22463 gives unlimited permission to copy, distribute and modify it."
22464 srcdir=$srcdir
22465 INSTALL="$INSTALL"
22466 _ACEOF
22468 cat >>$CONFIG_STATUS <<\_ACEOF
22469 # If no file are specified by the user, then we need to provide default
22470 # value. By we need to know if files were specified by the user.
22471 ac_need_defaults=:
22472 while test $# != 0
22474 case $1 in
22475 --*=*)
22476 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22477 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22478 ac_shift=:
22481 ac_option=$1
22482 ac_optarg=$2
22483 ac_shift=shift
22485 *) # This is not an option, so the user has probably given explicit
22486 # arguments.
22487 ac_option=$1
22488 ac_need_defaults=false;;
22489 esac
22491 case $ac_option in
22492 # Handling of the options.
22493 _ACEOF
22494 cat >>$CONFIG_STATUS <<\_ACEOF
22495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22496 ac_cs_recheck=: ;;
22497 --version | --vers* | -V )
22498 echo "$ac_cs_version"; exit 0 ;;
22499 --he | --h)
22500 # Conflict between --help and --header
22501 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22502 Try \`$0 --help' for more information." >&5
22503 echo "$as_me: error: ambiguous option: $1
22504 Try \`$0 --help' for more information." >&2;}
22505 { (exit 1); exit 1; }; };;
22506 --help | --hel | -h )
22507 echo "$ac_cs_usage"; exit 0 ;;
22508 --debug | --d* | -d )
22509 debug=: ;;
22510 --file | --fil | --fi | --f )
22511 $ac_shift
22512 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22513 ac_need_defaults=false;;
22514 --header | --heade | --head | --hea )
22515 $ac_shift
22516 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22517 ac_need_defaults=false;;
22518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22520 ac_cs_silent=: ;;
22522 # This is an error.
22523 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22524 Try \`$0 --help' for more information." >&5
22525 echo "$as_me: error: unrecognized option: $1
22526 Try \`$0 --help' for more information." >&2;}
22527 { (exit 1); exit 1; }; } ;;
22529 *) ac_config_targets="$ac_config_targets $1" ;;
22531 esac
22532 shift
22533 done
22535 ac_configure_extra_args=
22537 if $ac_cs_silent; then
22538 exec 6>/dev/null
22539 ac_configure_extra_args="$ac_configure_extra_args --silent"
22542 _ACEOF
22543 cat >>$CONFIG_STATUS <<_ACEOF
22544 if \$ac_cs_recheck; then
22545 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22546 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22549 _ACEOF
22551 cat >>$CONFIG_STATUS <<_ACEOF
22553 # INIT-COMMANDS section.
22556 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22558 _ACEOF
22562 cat >>$CONFIG_STATUS <<\_ACEOF
22563 for ac_config_target in $ac_config_targets
22565 case "$ac_config_target" in
22566 # Handling of arguments.
22567 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22568 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22569 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22570 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22571 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22572 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22573 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22574 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22575 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22576 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22577 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22578 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22579 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22580 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22581 { (exit 1); exit 1; }; };;
22582 esac
22583 done
22585 # If the user did not use the arguments to specify the items to instantiate,
22586 # then the envvar interface is used. Set only those that are not.
22587 # We use the long form for the default assignment because of an extremely
22588 # bizarre bug on SunOS 4.1.3.
22589 if $ac_need_defaults; then
22590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22595 # Have a temporary directory for convenience. Make it in the build tree
22596 # simply because there is no reason to put it here, and in addition,
22597 # creating and moving files from /tmp can sometimes cause problems.
22598 # Create a temporary directory, and hook for its removal unless debugging.
22599 $debug ||
22601 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22602 trap '{ (exit 1); exit 1; }' 1 2 13 15
22605 # Create a (secure) tmp directory for tmp files.
22608 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22609 test -n "$tmp" && test -d "$tmp"
22610 } ||
22612 tmp=./confstat$$-$RANDOM
22613 (umask 077 && mkdir $tmp)
22614 } ||
22616 echo "$me: cannot create a temporary directory in ." >&2
22617 { (exit 1); exit 1; }
22620 _ACEOF
22622 cat >>$CONFIG_STATUS <<_ACEOF
22625 # CONFIG_FILES section.
22628 # No need to generate the scripts if there are no CONFIG_FILES.
22629 # This happens for instance when ./config.status config.h
22630 if test -n "\$CONFIG_FILES"; then
22631 # Protect against being on the right side of a sed subst in config.status.
22632 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22633 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22634 s,@SHELL@,$SHELL,;t t
22635 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22636 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22637 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22638 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22639 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22640 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22641 s,@exec_prefix@,$exec_prefix,;t t
22642 s,@prefix@,$prefix,;t t
22643 s,@program_transform_name@,$program_transform_name,;t t
22644 s,@bindir@,$bindir,;t t
22645 s,@sbindir@,$sbindir,;t t
22646 s,@libexecdir@,$libexecdir,;t t
22647 s,@datadir@,$datadir,;t t
22648 s,@sysconfdir@,$sysconfdir,;t t
22649 s,@sharedstatedir@,$sharedstatedir,;t t
22650 s,@localstatedir@,$localstatedir,;t t
22651 s,@libdir@,$libdir,;t t
22652 s,@includedir@,$includedir,;t t
22653 s,@oldincludedir@,$oldincludedir,;t t
22654 s,@infodir@,$infodir,;t t
22655 s,@mandir@,$mandir,;t t
22656 s,@build_alias@,$build_alias,;t t
22657 s,@host_alias@,$host_alias,;t t
22658 s,@target_alias@,$target_alias,;t t
22659 s,@DEFS@,$DEFS,;t t
22660 s,@ECHO_C@,$ECHO_C,;t t
22661 s,@ECHO_N@,$ECHO_N,;t t
22662 s,@ECHO_T@,$ECHO_T,;t t
22663 s,@LIBS@,$LIBS,;t t
22664 s,@MAINT@,$MAINT,;t t
22665 s,@build@,$build,;t t
22666 s,@build_cpu@,$build_cpu,;t t
22667 s,@build_vendor@,$build_vendor,;t t
22668 s,@build_os@,$build_os,;t t
22669 s,@host@,$host,;t t
22670 s,@host_cpu@,$host_cpu,;t t
22671 s,@host_vendor@,$host_vendor,;t t
22672 s,@host_os@,$host_os,;t t
22673 s,@CC@,$CC,;t t
22674 s,@CFLAGS@,$CFLAGS,;t t
22675 s,@LDFLAGS@,$LDFLAGS,;t t
22676 s,@CPPFLAGS@,$CPPFLAGS,;t t
22677 s,@ac_ct_CC@,$ac_ct_CC,;t t
22678 s,@EXEEXT@,$EXEEXT,;t t
22679 s,@OBJEXT@,$OBJEXT,;t t
22680 s,@LN_S@,$LN_S,;t t
22681 s,@CPP@,$CPP,;t t
22682 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22683 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22684 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22685 s,@RANLIB@,$RANLIB,;t t
22686 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22687 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22688 s,@EGREP@,$EGREP,;t t
22689 s,@LIBSOUND@,$LIBSOUND,;t t
22690 s,@SET_MAKE@,$SET_MAKE,;t t
22691 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22692 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22693 s,@GTK_LIBS@,$GTK_LIBS,;t t
22694 s,@ALLOCA@,$ALLOCA,;t t
22695 s,@liblockfile@,$liblockfile,;t t
22696 s,@LIBOBJS@,$LIBOBJS,;t t
22697 s,@NEED_SETGID@,$NEED_SETGID,;t t
22698 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22699 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22700 s,@version@,$version,;t t
22701 s,@configuration@,$configuration,;t t
22702 s,@canonical@,$canonical,;t t
22703 s,@srcdir@,$srcdir,;t t
22704 s,@lispdir@,$lispdir,;t t
22705 s,@locallisppath@,$locallisppath,;t t
22706 s,@lisppath@,$lisppath,;t t
22707 s,@x_default_search_path@,$x_default_search_path,;t t
22708 s,@etcdir@,$etcdir,;t t
22709 s,@archlibdir@,$archlibdir,;t t
22710 s,@docdir@,$docdir,;t t
22711 s,@bitmapdir@,$bitmapdir,;t t
22712 s,@gamedir@,$gamedir,;t t
22713 s,@gameuser@,$gameuser,;t t
22714 s,@c_switch_system@,$c_switch_system,;t t
22715 s,@c_switch_machine@,$c_switch_machine,;t t
22716 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22717 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22718 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22719 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22720 s,@machfile@,$machfile,;t t
22721 s,@opsysfile@,$opsysfile,;t t
22722 s,@carbon_appdir@,$carbon_appdir,;t t
22723 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22724 CEOF
22726 _ACEOF
22728 cat >>$CONFIG_STATUS <<\_ACEOF
22729 # Split the substitutions into bite-sized pieces for seds with
22730 # small command number limits, like on Digital OSF/1 and HP-UX.
22731 ac_max_sed_lines=48
22732 ac_sed_frag=1 # Number of current file.
22733 ac_beg=1 # First line for current file.
22734 ac_end=$ac_max_sed_lines # Line after last line for current file.
22735 ac_more_lines=:
22736 ac_sed_cmds=
22737 while $ac_more_lines; do
22738 if test $ac_beg -gt 1; then
22739 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22740 else
22741 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22743 if test ! -s $tmp/subs.frag; then
22744 ac_more_lines=false
22745 else
22746 # The purpose of the label and of the branching condition is to
22747 # speed up the sed processing (if there are no `@' at all, there
22748 # is no need to browse any of the substitutions).
22749 # These are the two extra sed commands mentioned above.
22750 (echo ':t
22751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22752 if test -z "$ac_sed_cmds"; then
22753 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22754 else
22755 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22757 ac_sed_frag=`expr $ac_sed_frag + 1`
22758 ac_beg=$ac_end
22759 ac_end=`expr $ac_end + $ac_max_sed_lines`
22761 done
22762 if test -z "$ac_sed_cmds"; then
22763 ac_sed_cmds=cat
22765 fi # test -n "$CONFIG_FILES"
22767 _ACEOF
22768 cat >>$CONFIG_STATUS <<\_ACEOF
22769 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22771 case $ac_file in
22772 - | *:- | *:-:* ) # input from stdin
22773 cat >$tmp/stdin
22774 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22776 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22778 * ) ac_file_in=$ac_file.in ;;
22779 esac
22781 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22782 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22784 X"$ac_file" : 'X\(//\)[^/]' \| \
22785 X"$ac_file" : 'X\(//\)$' \| \
22786 X"$ac_file" : 'X\(/\)' \| \
22787 . : '\(.\)' 2>/dev/null ||
22788 echo X"$ac_file" |
22789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22791 /^X\(\/\/\)$/{ s//\1/; q; }
22792 /^X\(\/\).*/{ s//\1/; q; }
22793 s/.*/./; q'`
22794 { if $as_mkdir_p; then
22795 mkdir -p "$ac_dir"
22796 else
22797 as_dir="$ac_dir"
22798 as_dirs=
22799 while test ! -d "$as_dir"; do
22800 as_dirs="$as_dir $as_dirs"
22801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22803 X"$as_dir" : 'X\(//\)[^/]' \| \
22804 X"$as_dir" : 'X\(//\)$' \| \
22805 X"$as_dir" : 'X\(/\)' \| \
22806 . : '\(.\)' 2>/dev/null ||
22807 echo X"$as_dir" |
22808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22810 /^X\(\/\/\)$/{ s//\1/; q; }
22811 /^X\(\/\).*/{ s//\1/; q; }
22812 s/.*/./; q'`
22813 done
22814 test ! -n "$as_dirs" || mkdir $as_dirs
22815 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22817 { (exit 1); exit 1; }; }; }
22819 ac_builddir=.
22821 if test "$ac_dir" != .; then
22822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22823 # A "../" for each directory in $ac_dir_suffix.
22824 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22825 else
22826 ac_dir_suffix= ac_top_builddir=
22829 case $srcdir in
22830 .) # No --srcdir option. We are building in place.
22831 ac_srcdir=.
22832 if test -z "$ac_top_builddir"; then
22833 ac_top_srcdir=.
22834 else
22835 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22836 fi ;;
22837 [\\/]* | ?:[\\/]* ) # Absolute path.
22838 ac_srcdir=$srcdir$ac_dir_suffix;
22839 ac_top_srcdir=$srcdir ;;
22840 *) # Relative path.
22841 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22842 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22843 esac
22845 # Do not use `cd foo && pwd` to compute absolute paths, because
22846 # the directories may not exist.
22847 case `pwd` in
22848 .) ac_abs_builddir="$ac_dir";;
22850 case "$ac_dir" in
22851 .) ac_abs_builddir=`pwd`;;
22852 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22853 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22854 esac;;
22855 esac
22856 case $ac_abs_builddir in
22857 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22859 case ${ac_top_builddir}. in
22860 .) ac_abs_top_builddir=$ac_abs_builddir;;
22861 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22862 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22863 esac;;
22864 esac
22865 case $ac_abs_builddir in
22866 .) ac_abs_srcdir=$ac_srcdir;;
22868 case $ac_srcdir in
22869 .) ac_abs_srcdir=$ac_abs_builddir;;
22870 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22871 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22872 esac;;
22873 esac
22874 case $ac_abs_builddir in
22875 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22877 case $ac_top_srcdir in
22878 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22879 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22880 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22881 esac;;
22882 esac
22885 case $INSTALL in
22886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22887 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22888 esac
22890 if test x"$ac_file" != x-; then
22891 { echo "$as_me:$LINENO: creating $ac_file" >&5
22892 echo "$as_me: creating $ac_file" >&6;}
22893 rm -f "$ac_file"
22895 # Let's still pretend it is `configure' which instantiates (i.e., don't
22896 # use $as_me), people would be surprised to read:
22897 # /* config.h. Generated by config.status. */
22898 if test x"$ac_file" = x-; then
22899 configure_input=
22900 else
22901 configure_input="$ac_file. "
22903 configure_input=$configure_input"Generated from `echo $ac_file_in |
22904 sed 's,.*/,,'` by configure."
22906 # First look for the input files in the build tree, otherwise in the
22907 # src tree.
22908 ac_file_inputs=`IFS=:
22909 for f in $ac_file_in; do
22910 case $f in
22911 -) echo $tmp/stdin ;;
22912 [\\/$]*)
22913 # Absolute (can't be DOS-style, as IFS=:)
22914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22915 echo "$as_me: error: cannot find input file: $f" >&2;}
22916 { (exit 1); exit 1; }; }
22917 echo "$f";;
22918 *) # Relative
22919 if test -f "$f"; then
22920 # Build tree
22921 echo "$f"
22922 elif test -f "$srcdir/$f"; then
22923 # Source tree
22924 echo "$srcdir/$f"
22925 else
22926 # /dev/null tree
22927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22928 echo "$as_me: error: cannot find input file: $f" >&2;}
22929 { (exit 1); exit 1; }; }
22930 fi;;
22931 esac
22932 done` || { (exit 1); exit 1; }
22933 _ACEOF
22934 cat >>$CONFIG_STATUS <<_ACEOF
22935 sed "$ac_vpsub
22936 $extrasub
22937 _ACEOF
22938 cat >>$CONFIG_STATUS <<\_ACEOF
22940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22941 s,@configure_input@,$configure_input,;t t
22942 s,@srcdir@,$ac_srcdir,;t t
22943 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22944 s,@top_srcdir@,$ac_top_srcdir,;t t
22945 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22946 s,@builddir@,$ac_builddir,;t t
22947 s,@abs_builddir@,$ac_abs_builddir,;t t
22948 s,@top_builddir@,$ac_top_builddir,;t t
22949 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22950 s,@INSTALL@,$ac_INSTALL,;t t
22951 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22952 rm -f $tmp/stdin
22953 if test x"$ac_file" != x-; then
22954 mv $tmp/out $ac_file
22955 else
22956 cat $tmp/out
22957 rm -f $tmp/out
22960 done
22961 _ACEOF
22962 cat >>$CONFIG_STATUS <<\_ACEOF
22965 # CONFIG_HEADER section.
22968 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22969 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22971 # ac_d sets the value in "#define NAME VALUE" lines.
22972 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22973 ac_dB='[ ].*$,\1#\2'
22974 ac_dC=' '
22975 ac_dD=',;t'
22976 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22977 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22978 ac_uB='$,\1#\2define\3'
22979 ac_uC=' '
22980 ac_uD=',;t'
22982 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22984 case $ac_file in
22985 - | *:- | *:-:* ) # input from stdin
22986 cat >$tmp/stdin
22987 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22989 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22991 * ) ac_file_in=$ac_file.in ;;
22992 esac
22994 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22995 echo "$as_me: creating $ac_file" >&6;}
22997 # First look for the input files in the build tree, otherwise in the
22998 # src tree.
22999 ac_file_inputs=`IFS=:
23000 for f in $ac_file_in; do
23001 case $f in
23002 -) echo $tmp/stdin ;;
23003 [\\/$]*)
23004 # Absolute (can't be DOS-style, as IFS=:)
23005 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23006 echo "$as_me: error: cannot find input file: $f" >&2;}
23007 { (exit 1); exit 1; }; }
23008 # Do quote $f, to prevent DOS paths from being IFS'd.
23009 echo "$f";;
23010 *) # Relative
23011 if test -f "$f"; then
23012 # Build tree
23013 echo "$f"
23014 elif test -f "$srcdir/$f"; then
23015 # Source tree
23016 echo "$srcdir/$f"
23017 else
23018 # /dev/null tree
23019 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23020 echo "$as_me: error: cannot find input file: $f" >&2;}
23021 { (exit 1); exit 1; }; }
23022 fi;;
23023 esac
23024 done` || { (exit 1); exit 1; }
23025 # Remove the trailing spaces.
23026 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23028 _ACEOF
23030 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23031 # `conftest.undefs', that substitutes the proper values into
23032 # config.h.in to produce config.h. The first handles `#define'
23033 # templates, and the second `#undef' templates.
23034 # And first: Protect against being on the right side of a sed subst in
23035 # config.status. Protect against being in an unquoted here document
23036 # in config.status.
23037 rm -f conftest.defines conftest.undefs
23038 # Using a here document instead of a string reduces the quoting nightmare.
23039 # Putting comments in sed scripts is not portable.
23041 # `end' is used to avoid that the second main sed command (meant for
23042 # 0-ary CPP macros) applies to n-ary macro definitions.
23043 # See the Autoconf documentation for `clear'.
23044 cat >confdef2sed.sed <<\_ACEOF
23045 s/[\\&,]/\\&/g
23046 s,[\\$`],\\&,g
23047 t clear
23048 : clear
23049 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23050 t end
23051 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23052 : end
23053 _ACEOF
23054 # If some macros were called several times there might be several times
23055 # the same #defines, which is useless. Nevertheless, we may not want to
23056 # sort them, since we want the *last* AC-DEFINE to be honored.
23057 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23058 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23059 rm -f confdef2sed.sed
23061 # This sed command replaces #undef with comments. This is necessary, for
23062 # example, in the case of _POSIX_SOURCE, which is predefined and required
23063 # on some systems where configure will not decide to define it.
23064 cat >>conftest.undefs <<\_ACEOF
23065 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23066 _ACEOF
23068 # Break up conftest.defines because some shells have a limit on the size
23069 # of here documents, and old seds have small limits too (100 cmds).
23070 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23071 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23072 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23073 echo ' :' >>$CONFIG_STATUS
23074 rm -f conftest.tail
23075 while grep . conftest.defines >/dev/null
23077 # Write a limited-size here document to $tmp/defines.sed.
23078 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23079 # Speed up: don't consider the non `#define' lines.
23080 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23081 # Work around the forget-to-reset-the-flag bug.
23082 echo 't clr' >>$CONFIG_STATUS
23083 echo ': clr' >>$CONFIG_STATUS
23084 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23085 echo 'CEOF
23086 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23087 rm -f $tmp/in
23088 mv $tmp/out $tmp/in
23089 ' >>$CONFIG_STATUS
23090 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23091 rm -f conftest.defines
23092 mv conftest.tail conftest.defines
23093 done
23094 rm -f conftest.defines
23095 echo ' fi # grep' >>$CONFIG_STATUS
23096 echo >>$CONFIG_STATUS
23098 # Break up conftest.undefs because some shells have a limit on the size
23099 # of here documents, and old seds have small limits too (100 cmds).
23100 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23101 rm -f conftest.tail
23102 while grep . conftest.undefs >/dev/null
23104 # Write a limited-size here document to $tmp/undefs.sed.
23105 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23106 # Speed up: don't consider the non `#undef'
23107 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23108 # Work around the forget-to-reset-the-flag bug.
23109 echo 't clr' >>$CONFIG_STATUS
23110 echo ': clr' >>$CONFIG_STATUS
23111 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23112 echo 'CEOF
23113 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23114 rm -f $tmp/in
23115 mv $tmp/out $tmp/in
23116 ' >>$CONFIG_STATUS
23117 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23118 rm -f conftest.undefs
23119 mv conftest.tail conftest.undefs
23120 done
23121 rm -f conftest.undefs
23123 cat >>$CONFIG_STATUS <<\_ACEOF
23124 # Let's still pretend it is `configure' which instantiates (i.e., don't
23125 # use $as_me), people would be surprised to read:
23126 # /* config.h. Generated by config.status. */
23127 if test x"$ac_file" = x-; then
23128 echo "/* Generated by configure. */" >$tmp/config.h
23129 else
23130 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23132 cat $tmp/in >>$tmp/config.h
23133 rm -f $tmp/in
23134 if test x"$ac_file" != x-; then
23135 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23136 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23137 echo "$as_me: $ac_file is unchanged" >&6;}
23138 else
23139 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23141 X"$ac_file" : 'X\(//\)[^/]' \| \
23142 X"$ac_file" : 'X\(//\)$' \| \
23143 X"$ac_file" : 'X\(/\)' \| \
23144 . : '\(.\)' 2>/dev/null ||
23145 echo X"$ac_file" |
23146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23148 /^X\(\/\/\)$/{ s//\1/; q; }
23149 /^X\(\/\).*/{ s//\1/; q; }
23150 s/.*/./; q'`
23151 { if $as_mkdir_p; then
23152 mkdir -p "$ac_dir"
23153 else
23154 as_dir="$ac_dir"
23155 as_dirs=
23156 while test ! -d "$as_dir"; do
23157 as_dirs="$as_dir $as_dirs"
23158 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23160 X"$as_dir" : 'X\(//\)[^/]' \| \
23161 X"$as_dir" : 'X\(//\)$' \| \
23162 X"$as_dir" : 'X\(/\)' \| \
23163 . : '\(.\)' 2>/dev/null ||
23164 echo X"$as_dir" |
23165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23167 /^X\(\/\/\)$/{ s//\1/; q; }
23168 /^X\(\/\).*/{ s//\1/; q; }
23169 s/.*/./; q'`
23170 done
23171 test ! -n "$as_dirs" || mkdir $as_dirs
23172 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23173 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23174 { (exit 1); exit 1; }; }; }
23176 rm -f $ac_file
23177 mv $tmp/config.h $ac_file
23179 else
23180 cat $tmp/config.h
23181 rm -f $tmp/config.h
23183 done
23184 _ACEOF
23185 cat >>$CONFIG_STATUS <<\_ACEOF
23188 # CONFIG_COMMANDS section.
23190 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23191 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23192 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23193 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23194 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23195 X"$ac_dest" : 'X\(//\)[^/]' \| \
23196 X"$ac_dest" : 'X\(//\)$' \| \
23197 X"$ac_dest" : 'X\(/\)' \| \
23198 . : '\(.\)' 2>/dev/null ||
23199 echo X"$ac_dest" |
23200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23202 /^X\(\/\/\)$/{ s//\1/; q; }
23203 /^X\(\/\).*/{ s//\1/; q; }
23204 s/.*/./; q'`
23205 { if $as_mkdir_p; then
23206 mkdir -p "$ac_dir"
23207 else
23208 as_dir="$ac_dir"
23209 as_dirs=
23210 while test ! -d "$as_dir"; do
23211 as_dirs="$as_dir $as_dirs"
23212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23214 X"$as_dir" : 'X\(//\)[^/]' \| \
23215 X"$as_dir" : 'X\(//\)$' \| \
23216 X"$as_dir" : 'X\(/\)' \| \
23217 . : '\(.\)' 2>/dev/null ||
23218 echo X"$as_dir" |
23219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23221 /^X\(\/\/\)$/{ s//\1/; q; }
23222 /^X\(\/\).*/{ s//\1/; q; }
23223 s/.*/./; q'`
23224 done
23225 test ! -n "$as_dirs" || mkdir $as_dirs
23226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23228 { (exit 1); exit 1; }; }; }
23230 ac_builddir=.
23232 if test "$ac_dir" != .; then
23233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23234 # A "../" for each directory in $ac_dir_suffix.
23235 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23236 else
23237 ac_dir_suffix= ac_top_builddir=
23240 case $srcdir in
23241 .) # No --srcdir option. We are building in place.
23242 ac_srcdir=.
23243 if test -z "$ac_top_builddir"; then
23244 ac_top_srcdir=.
23245 else
23246 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23247 fi ;;
23248 [\\/]* | ?:[\\/]* ) # Absolute path.
23249 ac_srcdir=$srcdir$ac_dir_suffix;
23250 ac_top_srcdir=$srcdir ;;
23251 *) # Relative path.
23252 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23253 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23254 esac
23256 # Do not use `cd foo && pwd` to compute absolute paths, because
23257 # the directories may not exist.
23258 case `pwd` in
23259 .) ac_abs_builddir="$ac_dir";;
23261 case "$ac_dir" in
23262 .) ac_abs_builddir=`pwd`;;
23263 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23264 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23265 esac;;
23266 esac
23267 case $ac_abs_builddir in
23268 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23270 case ${ac_top_builddir}. in
23271 .) ac_abs_top_builddir=$ac_abs_builddir;;
23272 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23273 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23274 esac;;
23275 esac
23276 case $ac_abs_builddir in
23277 .) ac_abs_srcdir=$ac_srcdir;;
23279 case $ac_srcdir in
23280 .) ac_abs_srcdir=$ac_abs_builddir;;
23281 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23282 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23283 esac;;
23284 esac
23285 case $ac_abs_builddir in
23286 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23288 case $ac_top_srcdir in
23289 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23290 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23291 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23292 esac;;
23293 esac
23296 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23297 echo "$as_me: executing $ac_dest commands" >&6;}
23298 case $ac_dest in
23299 default )
23301 ### Make the necessary directories, if they don't exist.
23302 for dir in etc lisp ; do
23303 test -d ${dir} || mkdir ${dir}
23304 done
23306 # Build src/Makefile from ${srcdir}/src/Makefile.c
23307 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23308 # This must be done after src/config.h is built, since we rely on that file.
23310 # Now get this: Some word that is part of the ${srcdir} directory name
23311 # or the ${configuration} value might, just might, happen to be an
23312 # identifier like `sun4' or `i386' or something, and be predefined by
23313 # the C preprocessor to some helpful value like 1, or maybe the empty
23314 # string. Needless to say consequent macro substitutions are less
23315 # than conducive to the makefile finding the correct directory.
23316 undefs="`echo $top_srcdir $configuration $canonical |
23317 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23318 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23321 echo creating src/epaths.h
23322 ${MAKE-make} epaths-force
23324 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23325 # `..' to `. .' unless invoked with -traditional
23327 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23328 CPPFLAGS="$CPPFLAGS -traditional"
23331 echo creating lib-src/Makefile
23332 ( cd lib-src
23333 rm -f junk.c junk1.c junk2.c
23334 sed -e '/start of cpp stuff/q' \
23335 < Makefile.c > junk1.c
23336 sed -e '1,/start of cpp stuff/d'\
23337 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23338 < Makefile.c > junk.c
23339 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23340 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23341 cat junk1.c junk2.c > Makefile.new
23342 rm -f junk.c junk1.c junk2.c
23343 chmod 444 Makefile.new
23344 mv -f Makefile.new Makefile
23347 echo creating src/Makefile
23348 ( cd src
23349 rm -f junk.c junk1.c junk2.c
23350 sed -e '/start of cpp stuff/q' \
23351 < Makefile.c > junk1.c
23352 sed -e '1,/start of cpp stuff/d'\
23353 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23354 < Makefile.c > junk.c
23355 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23356 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23357 cat junk1.c junk2.c > Makefile.new
23358 rm -f junk.c junk1.c junk2.c
23359 chmod 444 Makefile.new
23360 mv -f Makefile.new Makefile
23363 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23364 echo creating src/.gdbinit
23365 echo source $srcdir/src/.gdbinit > src/.gdbinit
23368 # This is how we know whether to re-run configure in certain cases.
23369 touch src/config.stamp
23372 esac
23373 done
23374 _ACEOF
23376 cat >>$CONFIG_STATUS <<\_ACEOF
23378 { (exit 0); exit 0; }
23379 _ACEOF
23380 chmod +x $CONFIG_STATUS
23381 ac_clean_files=$ac_clean_files_save
23384 # configure is writing to config.log, and then calls config.status.
23385 # config.status does its own redirection, appending to config.log.
23386 # Unfortunately, on DOS this fails, as config.log is still kept open
23387 # by configure, so config.status won't be able to write to it; its
23388 # output is simply discarded. So we exec the FD to /dev/null,
23389 # effectively closing config.log, so it can be properly (re)opened and
23390 # appended to by config.status. When coming back to configure, we
23391 # need to make the FD available again.
23392 if test "$no_create" != yes; then
23393 ac_cs_success=:
23394 ac_config_status_args=
23395 test "$silent" = yes &&
23396 ac_config_status_args="$ac_config_status_args --quiet"
23397 exec 5>/dev/null
23398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23399 exec 5>>config.log
23400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23401 # would make configure fail if this is the last instruction.
23402 $ac_cs_success || { (exit 1); exit 1; }