Merge from upstream, upto version 5.22.
[emacs.git] / configure
blob18fd27ec3b5d994638fd13276cc7d600c11f5ac3
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 CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 _ACEOF
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 cd $ac_popdir
992 done
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1013 $ $0 $@
1015 _ACEOF
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 _ASUNAME
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1049 } >&5
1051 cat >&5 <<_ACEOF
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1058 _ACEOF
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1073 for ac_arg
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1120 echo
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 esac;
1143 echo
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1244 done
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp'
1358 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1364 gameuser=games
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1381 else :
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1457 esac
1458 with_x_toolkit=$val
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 canonical=$host
1685 configuration=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1722 esac
1725 ## NetBSD ports
1726 *-*-netbsd* )
1727 opsys=netbsd
1728 if test -f /usr/lib/crti.o; then
1730 cat >>confdefs.h <<\_ACEOF
1731 #define HAVE_CRTIN
1732 _ACEOF
1736 case "${canonical}" in
1737 alpha*-*-netbsd*) machine=alpha ;;
1738 i[3456]86-*-netbsd*) machine=intel386 ;;
1739 m68k-*-netbsd*)
1740 # This is somewhat bogus.
1741 machine=hp9000s300 ;;
1742 powerpc-apple-netbsd*) machine=macppc ;;
1743 mips-*-netbsd*) machine=pmax ;;
1744 mipsel-*-netbsd*) machine=pmax ;;
1745 mipseb-*-netbsd*) machine=pmax ;;
1746 ns32k-*-netbsd*) machine=ns32000 ;;
1747 powerpc-*-netbsd*) machine=macppc ;;
1748 sparc*-*-netbsd*) machine=sparc ;;
1749 vax-*-netbsd*) machine=vax ;;
1750 arm-*-netbsd*) machine=arm ;;
1751 esac
1754 ## OpenBSD ports
1755 *-*-openbsd* )
1756 opsys=openbsd
1757 case "${canonical}" in
1758 alpha*-*-openbsd*) machine=alpha ;;
1759 i386-*-openbsd*) machine=intel386 ;;
1760 m68k-*-openbsd*) machine=hp9000s300 ;;
1761 mipsel-*-openbsd*) machine=pmax ;;
1762 ns32k-*-openbsd*) machine=ns32000 ;;
1763 sparc-*-openbsd*) machine=sparc ;;
1764 vax-*-openbsd*) machine=vax ;;
1765 esac
1768 ## LynxOS ports
1769 *-*-lynxos* )
1770 opsys=lynxos
1771 case "${canonical}" in
1772 i[3456]86-*-lynxos*) machine=intel386 ;;
1773 powerpc-*-lynxos*) machine=powerpc ;;
1774 esac
1777 ## Acorn RISCiX:
1778 arm-acorn-riscix1.1* )
1779 machine=acorn opsys=riscix1-1
1781 arm-acorn-riscix1.2* | arm-acorn-riscix )
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine=acorn opsys=riscix12
1787 ## BSDI ports
1788 *-*-bsdi* )
1789 opsys=bsdi
1790 case "${canonical}" in
1791 i[345]86-*-bsdi*) machine=intel386 ;;
1792 sparc-*-bsdi*) machine=sparc ;;
1793 powerpc-*-bsdi*) machine=macppc ;;
1794 esac
1795 case "${canonical}" in
1796 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1797 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1798 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1799 *-*-bsdi3* ) opsys=bsdos3 ;;
1800 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1801 esac
1804 ## Alliant machines
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1810 fx80-alliant-* )
1811 machine=alliant4 opsys=bsd4-2
1813 i860-alliant-* )
1814 machine=alliant-2800 opsys=bsd4-3
1817 ## Alpha (DEC) machines.
1818 alpha*-dec-osf* )
1819 machine=alpha opsys=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP=/usr/bin/cpp
1828 case "${canonical}" in
1829 alpha*-dec-osf[5-9]*)
1830 opsys=osf5-0 ;;
1831 esac
1834 alpha*-*-linux-gnu* )
1835 machine=alpha opsys=gnu-linux
1838 arm*-*-linux-gnu* )
1839 machine=arm opsys=gnu-linux
1842 ## Altos 3068
1843 m68*-altos-sysv* )
1844 machine=altos opsys=usg5-2
1847 ## Amdahl UTS
1848 580-amdahl-sysv* )
1849 machine=amdahl opsys=usg5-2-2
1852 ## Apollo, Domain/OS
1853 m68*-apollo-* )
1854 machine=apollo opsys=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 we32k-att-sysv* )
1859 machine=att3b opsys=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1863 m68*-att-sysv* )
1864 machine=7300 opsys=usg5-2-2
1867 ## Bull dpx20
1868 rs6000-bull-bosx* )
1869 machine=ibmrs6000 opsys=aix3-2
1872 ## Bull dpx2
1873 m68*-bull-sysv3* )
1874 machine=dpx2 opsys=usg5-3
1877 ## Bull sps7
1878 m68*-bull-sysv2* )
1879 machine=sps7 opsys=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1884 ## Celerity
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd* )
1889 machine=celerity opsys=bsd4-2
1892 ## Clipper
1893 ## What operating systems does this chip run that Emacs has been
1894 ## tested on?
1895 clipper-* )
1896 machine=clipper
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1901 ## Compaq Nonstop
1902 mips-compaq-nonstopux* )
1903 machine=nonstopux opsys=nonstopux
1906 ## Convex
1907 *-convex-bsd* | *-convex-convexos* )
1908 machine=convex opsys=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP="cc -E -P"
1913 ## Cubix QBx/386
1914 i[3456]86-cubix-sysv* )
1915 machine=intel386 opsys=usg5-3
1918 ## Cydra 5
1919 cydra*-cydrome-sysv* )
1920 machine=cydra5 opsys=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1930 machine=aviion opsys=dgux4
1932 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine=aviion opsys=dgux5-4-3
1937 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1938 machine=aviion opsys=dgux5-4r2
1940 m88k-dg-dgux* )
1941 machine=aviion opsys=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i[345]86-dg-dguxR4* )
1948 machine=aviion-intel opsys=dgux4
1951 ## DECstations
1952 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1953 machine=pmax opsys=bsd4-2
1955 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1956 machine=pmax opsys=bsd4-3
1958 mips-dec-ultrix* )
1959 machine=pmax opsys=ultrix4-3
1961 mips-dec-osf* )
1962 machine=pmax opsys=osf1
1964 mips-dec-mach_bsd4.3* )
1965 machine=pmax opsys=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv* | m68000-motorola-sysv* )
1970 machine=delta opsys=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1972 then
1973 if test -s /etc/167config
1974 then CC="gnucc -m68040"
1975 else CC="gnucc -m68881"
1977 else
1978 if test -z "`type gcc | grep 'not found'`"
1979 then CC=gcc
1980 else CC=cc
1984 m88k-motorola-sysv4* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine=delta88k opsys=usg5-4-2
1991 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1992 machine=delta88k opsys=usg5-3
1995 ## Dual machines
1996 m68*-dual-sysv* )
1997 machine=dual opsys=usg5-2
1999 m68*-dual-uniplus* )
2000 machine=dual opsys=unipl5-2
2003 ## Elxsi 6400
2004 elxsi-elxsi-sysv* )
2005 machine=elxsi opsys=usg5-2
2008 ## Encore machines
2009 ns16k-encore-bsd* )
2010 machine=ns16000 opsys=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2017 pn-gould-bsd4.2* )
2018 machine=gould opsys=bsd4-2
2020 pn-gould-bsd4.3* )
2021 machine=gould opsys=bsd4-3
2023 np1-gould-bsd* )
2024 machine=gould-np1 opsys=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2029 m88k-harris-cxux* )
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2033 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2034 esac
2035 NON_GNU_CPP="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 m68k-harris-cxux* )
2039 machine=nh3000 opsys=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix )
2043 machine=nh6000 opsys=powerunix
2044 NON_GNU_CPP="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1-hitachi-hiuxmpp* )
2048 machine=sr2k opsys=hiuxmpp
2050 hppa1.1-hitachi-hiuxwe2* )
2051 machine=sr2k opsys=hiuxwe2
2053 ## Honeywell XPS100
2054 xps*-honeywell-sysv* )
2055 machine=xps100 opsys=usg5-2
2058 ## HP 9000 series 200 or 300
2059 m68*-hp-bsd* )
2060 machine=hp9000s300 opsys=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 m68*-hp-hpux* )
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2069 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2070 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2071 *) machine=hp9000s300 opsys=hpux ;;
2072 esac
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux7* )
2077 machine=hp800 opsys=hpux
2079 hppa*-hp-hpux8* )
2080 machine=hp800 opsys=hpux8
2082 hppa*-hp-hpux9shr* )
2083 machine=hp800 opsys=hpux9shr
2085 hppa*-hp-hpux9* )
2086 machine=hp800 opsys=hpux9
2088 hppa*-hp-hpux10.2* )
2089 machine=hp800 opsys=hpux10-20
2091 hppa*-hp-hpux10* )
2092 machine=hp800 opsys=hpux10
2094 hppa*-hp-hpux1[1-9]* )
2095 machine=hp800 opsys=hpux11
2096 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2099 hppa*-*-linux-gnu* )
2100 machine=hp800 opsys=gnu-linux
2103 ## HP 9000 series 700 and 800, running HP/UX
2104 hppa*-hp-hpux* )
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2110 *.08.* ) machine=hp800 opsys=hpux8 ;;
2111 *.09.* ) machine=hp800 opsys=hpux9 ;;
2112 *) machine=hp800 opsys=hpux10 ;;
2113 esac
2115 hppa*-*-nextstep* )
2116 machine=hp800 opsys=nextstep
2119 ## Orion machines
2120 orion-orion-bsd* )
2121 machine=orion opsys=bsd4-2
2123 clipper-orion-bsd* )
2124 machine=orion105 opsys=bsd4-2
2127 ## IBM machines
2128 i[3456]86-ibm-aix1.1* )
2129 machine=ibmps2-aix opsys=usg5-2-2
2131 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2132 machine=ibmps2-aix opsys=usg5-3
2134 i370-ibm-aix*)
2135 machine=ibm370aix opsys=usg5-3
2137 s390-*-linux-gnu* )
2138 machine=ibms390 opsys=gnu-linux
2140 s390x-*-linux-gnu* )
2141 machine=ibms390x opsys=gnu-linux
2143 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2144 machine=ibmrs6000 opsys=aix3-1
2146 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2147 machine=ibmrs6000 opsys=aix3-2-5
2149 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2150 machine=ibmrs6000 opsys=aix4-1
2152 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2153 machine=ibmrs6000 opsys=aix4-2
2155 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2156 machine=ibmrs6000 opsys=aix4-2
2158 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2159 machine=ibmrs6000 opsys=aix4
2161 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2162 machine=ibmrs6000 opsys=aix4-1
2164 rs6000-ibm-aix* | powerpc-ibm-aix* )
2165 machine=ibmrs6000 opsys=aix3-2
2167 romp-ibm-bsd4.3* )
2168 machine=ibmrt opsys=bsd4-3
2170 romp-ibm-bsd4.2* )
2171 machine=ibmrt opsys=bsd4-2
2173 romp-ibm-aos4.3* )
2174 machine=ibmrt opsys=bsd4-3
2176 romp-ibm-aos4.2* )
2177 machine=ibmrt opsys=bsd4-2
2179 romp-ibm-aos* )
2180 machine=ibmrt opsys=bsd4-3
2182 romp-ibm-bsd* )
2183 machine=ibmrt opsys=bsd4-3
2185 romp-ibm-aix* )
2186 machine=ibmrt-aix opsys=usg5-2-2
2189 ## Integrated Solutions `Optimum V'
2190 m68*-isi-bsd4.2* )
2191 machine=isi-ov opsys=bsd4-2
2193 m68*-isi-bsd4.3* )
2194 machine=isi-ov opsys=bsd4-3
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i[3456]86-intsys-sysv* )
2199 machine=is386 opsys=usg5-2-2
2202 ## Prime EXL
2203 i[3456]86-prime-sysv* )
2204 machine=i386 opsys=usg5-3
2207 ## Sequent Symmetry running Dynix
2208 i[3456]86-sequent-bsd* )
2209 machine=symmetry opsys=bsd4-3
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2214 machine=sequent-ptx opsys=ptx4
2215 NON_GNU_CPP=/lib/cpp
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i[3456]86-sequent-ptx* )
2221 machine=sequent-ptx opsys=ptx
2222 NON_GNU_CPP="/lib/cpp"
2225 ## ncr machine running svr4.3.
2226 i[3456]86-ncr-sysv4.3 )
2227 machine=ncr386 opsys=usg5-4-3
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i[3456]86-ncr-sysv* )
2233 machine=ncr386 opsys=usg5-4-2
2236 ## Intel Paragon OSF/1
2237 i860-intel-osf1* )
2238 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2241 ## Intel 860
2242 i860-*-sysv4* )
2243 machine=i860 opsys=usg5-4
2244 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2248 ## Macintosh PowerPC
2249 powerpc*-*-linux-gnu* )
2250 machine=macppc opsys=gnu-linux
2253 ## Masscomp machines
2254 m68*-masscomp-rtu* )
2255 machine=masscomp opsys=rtu
2258 ## Megatest machines
2259 m68*-megatest-bsd* )
2260 machine=mega68 opsys=bsd4-2
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2274 mips-mips-usg* )
2275 machine=mips4
2276 ## Fall through to the general code at the bottom to decide on the OS.
2278 mips-mips-riscos4* )
2279 machine=mips4 opsys=bsd4-3
2280 NON_GNU_CC="cc -systype bsd43"
2281 NON_GNU_CPP="cc -systype bsd43 -E"
2283 mips-mips-riscos5* )
2284 machine=mips4 opsys=riscos5
2285 NON_GNU_CC="cc -systype bsd43"
2286 NON_GNU_CPP="cc -systype bsd43 -E"
2288 mips-mips-bsd* )
2289 machine=mips opsys=bsd4-3
2291 mips-mips-* )
2292 machine=mips opsys=usg5-2-2
2295 ## NeXT
2296 m68*-next-* | m68k-*-nextstep* )
2297 machine=m68k opsys=nextstep
2300 ## The complete machine from National Semiconductor
2301 ns32k-ns-genix* )
2302 machine=ns32000 opsys=usg5-2
2305 ## NCR machines
2306 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2307 machine=tower32 opsys=usg5-2-2
2309 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2310 machine=tower32v3 opsys=usg5-3
2313 ## NEC EWS4800
2314 mips-nec-sysv4*)
2315 machine=ews4800 opsys=ux4800
2318 ## Nixdorf Targon 31
2319 m68*-nixdorf-sysv* )
2320 machine=targon31 opsys=usg5-2-2
2323 ## Nu (TI or LMI)
2324 m68*-nu-sysv* )
2325 machine=nu opsys=usg5-2
2328 ## Plexus
2329 m68*-plexus-sysv* )
2330 machine=plexus opsys=usg5-2
2333 ## Pyramid machines
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd* )
2337 machine=pyramid opsys=bsd4-2
2340 ## Sequent Balance
2341 ns32k-sequent-bsd4.2* )
2342 machine=sequent opsys=bsd4-2
2344 ns32k-sequent-bsd4.3* )
2345 machine=sequent opsys=bsd4-3
2348 ## Siemens Nixdorf
2349 mips-siemens-sysv* | mips-sni-sysv*)
2350 machine=mips-siemens opsys=usg5-4
2351 NON_GNU_CC=/usr/ccs/bin/cc
2352 NON_GNU_CPP=/usr/ccs/lib/cpp
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2357 m68*-sgi-iris3.5* )
2358 machine=irist opsys=iris3-5
2360 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2361 machine=irist opsys=iris3-6
2363 ## Iris 4D
2364 mips-sgi-irix3* )
2365 machine=iris4d opsys=irix3-3
2367 mips-sgi-irix4* )
2368 machine=iris4d opsys=irix4-0
2370 mips-sgi-irix6.5 )
2371 machine=iris4d opsys=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2378 mips-sgi-irix6* )
2379 machine=iris4d opsys=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS=-32
2386 mips-sgi-irix5.[01]* )
2387 machine=iris4d opsys=irix5-0
2389 mips-sgi-irix5* | mips-sgi-irix* )
2390 machine=iris4d opsys=irix5-2
2393 ## SONY machines
2394 m68*-sony-bsd4.2* )
2395 machine=news opsys=bsd4-2
2397 m68*-sony-bsd4.3* )
2398 machine=news opsys=bsd4-3
2400 m68*-sony-newsos3* | m68*-sony-news3*)
2401 machine=news opsys=bsd4-3
2403 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2404 machine=news-risc opsys=bsd4-3
2406 mips-sony-newsos6* )
2407 machine=news-r6 opsys=newsos6
2409 mips-sony-news* )
2410 machine=news-risc opsys=newsos5
2413 ## Stride
2414 m68*-stride-sysv* )
2415 machine=stride opsys=usg5-2
2418 ## Suns
2419 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2420 machine=sparc opsys=gnu-linux
2423 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2424 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2425 | rs6000-*-solaris2*)
2426 case "${canonical}" in
2427 m68*-sunos1* ) machine=sun1 ;;
2428 m68*-sunos2* ) machine=sun2 ;;
2429 m68* ) machine=sun3 ;;
2430 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2431 i[3456]86-*-* ) machine=intel386 ;;
2432 powerpcle* ) machine=powerpcle ;;
2433 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2434 sparc* ) machine=sparc ;;
2435 * ) unported=yes ;;
2436 esac
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2440 *-sunos4.0* ) opsys=sunos4-0 ;;
2441 *-sunos4.1.[3-9]*noshare )
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2444 opsys=sunos413
2445 NON_GNU_CPP=/usr/lib/cpp
2446 NON_GCC_TEST_OPTIONS=-Bstatic
2447 GCC_TEST_OPTIONS=-static
2449 *-sunos4.1.[3-9]* | *-sunos4shr*)
2450 opsys=sunos4shr
2451 NON_GNU_CPP=/usr/lib/cpp
2453 *-sunos4* | *-sunos )
2454 opsys=sunos4-1
2455 NON_GCC_TEST_OPTIONS=-Bstatic
2456 GCC_TEST_OPTIONS=-static
2458 *-sunos5.3* | *-solaris2.3* )
2459 opsys=sol2-3
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2462 *-sunos5.4* | *-solaris2.4* )
2463 opsys=sol2-4
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2467 *-sunos5.5* | *-solaris2.5* )
2468 opsys=sol2-5
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2472 *-sunos5.6* | *-solaris2.6* )
2473 opsys=sol2-6
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2475 RANLIB="ar -ts"
2477 *-sunos5* | *-solaris* )
2478 opsys=sol2-6
2479 NON_GNU_CPP=/usr/ccs/lib/cpp
2481 * ) opsys=bsd4-2 ;;
2482 esac
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* | *-sunos5* )
2486 if [ "x$CC" = x/usr/ucb/cc ]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2489 unset CC
2492 *) ;;
2493 esac
2495 sparc-*-nextstep* )
2496 machine=sparc opsys=nextstep
2499 ## Tadpole 68k
2500 m68*-tadpole-sysv* )
2501 machine=tad68k opsys=usg5-3
2504 ## Tahoe machines
2505 tahoe-tahoe-bsd4.2* )
2506 machine=tahoe opsys=bsd4-2
2508 tahoe-tahoe-bsd4.3* )
2509 machine=tahoe opsys=bsd4-3
2512 ## Tandem Integrity S2
2513 mips-tandem-sysv* )
2514 machine=tandem-s2 opsys=usg5-3
2517 ## Tektronix XD88
2518 m88k-tektronix-sysv3* )
2519 machine=tekxd88 opsys=usg5-3
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd* )
2524 machine=ns16000 opsys=bsd4-2
2526 ## Tektronix 4300
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68*-tektronix-bsd* )
2529 machine=tek4300 opsys=bsd4-3
2532 ## Titan P2 or P3
2533 ## We seem to have lost the machine-description file titan.h!
2534 titan-titan-sysv* )
2535 machine=titan opsys=usg5-3
2538 ## Ustation E30 (SS5E)
2539 m68*-unisys-uniplus* )
2540 machine=ustation opsystem=unipl5-2
2543 ## Vaxen.
2544 vax-dec-* )
2545 machine=vax
2546 case "${canonical}" in
2547 *-bsd4.1* ) opsys=bsd4-1 ;;
2548 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2549 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2550 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2551 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2552 *-vms* ) opsys=vms ;;
2553 * ) unported=yes
2554 esac
2557 ## Whitechapel MG1
2558 ns16k-whitechapel-* )
2559 machine=mg1
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2564 ## Wicat
2565 m68*-wicat-sysv* )
2566 machine=wicat opsys=usg5-2
2569 ## IA-64
2570 ia64*-*-linux* )
2571 machine=ia64 opsys=gnu-linux
2574 ## Intel 386 machines where we don't care about the manufacturer
2575 i[3456]86-*-* )
2576 machine=intel386
2577 case "${canonical}" in
2578 *-cygwin ) opsys=cygwin ;;
2579 *-darwin* ) opsys=darwin
2580 CPP="${CC-cc} -E -no-cpp-precomp"
2582 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2583 *-isc2.2* ) opsys=isc2-2 ;;
2584 *-isc4.0* ) opsys=isc4-0 ;;
2585 *-isc4.* ) opsys=isc4-1
2586 GCC_TEST_OPTIONS=-posix
2587 NON_GCC_TEST_OPTIONS=-Xp
2589 *-isc* ) opsys=isc3-0 ;;
2590 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2591 *-esix* ) opsys=esix ;;
2592 *-xenix* ) opsys=xenix ;;
2593 *-linux-gnu* ) opsys=gnu-linux ;;
2594 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2595 *-sco3.2v5* ) opsys=sco5
2596 NON_GNU_CPP=/lib/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS=" "
2601 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2602 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2603 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2604 *-386bsd* ) opsys=386bsd ;;
2605 *-nextstep* ) opsys=nextstep ;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2607 esac
2610 ## m68k Linux-based GNU system
2611 m68k-*-linux-gnu* )
2612 machine=m68k opsys=gnu-linux
2615 ## Mips Linux-based GNU system
2616 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2617 machine=mips opsys=gnu-linux
2620 ## UXP/DS
2621 sparc-fujitsu-sysv4* )
2622 machine=sparc opsys=uxpds
2623 NON_GNU_CPP=/usr/ccs/lib/cpp
2624 RANLIB="ar -ts"
2627 ## UXP/V
2628 f301-fujitsu-uxpv4.1)
2629 machine=f301 opsys=uxpv
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin* )
2634 machine=powermac opsys=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw/include && test -d /sw/lib; then
2639 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2640 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-*-linux-gnu* )
2647 machine=amdx86-64 opsys=gnu-linux
2651 unported=yes
2653 esac
2655 ### If the code above didn't choose an operating system, just choose
2656 ### an operating system based on the configuration name. You really
2657 ### only want to use this when you have no idea what the right
2658 ### operating system is; if you know what operating systems a machine
2659 ### runs, it's cleaner to make it explicit in the case statement
2660 ### above.
2661 if test x"${opsys}" = x; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys=gnu ;;
2664 *-bsd4.[01] ) opsys=bsd4-1 ;;
2665 *-bsd4.2 ) opsys=bsd4-2 ;;
2666 *-bsd4.3 ) opsys=bsd4-3 ;;
2667 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2668 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2669 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2670 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2671 *-sysv4.2uw* ) opsys=unixware ;;
2672 *-sysv5uw* ) opsys=unixware ;;
2673 *-sysv5OpenUNIX* ) opsys=unixware ;;
2674 *-sysv4.1* | *-sysvr4.1* )
2675 NON_GNU_CPP=/usr/lib/cpp
2676 opsys=usg5-4 ;;
2677 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2678 if [ x$NON_GNU_CPP = x ]; then
2679 if [ -f /usr/ccs/lib/cpp ]; then
2680 NON_GNU_CPP=/usr/ccs/lib/cpp
2681 else
2682 NON_GNU_CPP=/lib/cpp
2685 opsys=usg5-4-2 ;;
2686 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2688 unported=yes
2690 esac
2695 if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697 Check \`etc/MACHINES' for recognized configuration names." >&5
2698 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2703 machfile="m/${machine}.h"
2704 opsysfile="s/${opsys}.h"
2707 #### Choose a compiler.
2708 test -n "$CC" && cc_specified=yes
2710 # Save the value of CFLAGS that the user specified.
2711 SPECIFIED_CFLAGS="$CFLAGS"
2713 case ${with_gcc} in
2714 "yes" ) CC="gcc" GCC=yes ;;
2715 "no" ) : ${CC=cc} ;;
2717 esac
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2760 if test -z "$ac_cv_prog_CC"; then
2761 ac_ct_CC=$CC
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2783 done
2784 done
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6
2792 else
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2797 CC=$ac_ct_CC
2798 else
2799 CC="$ac_cv_prog_CC"
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}cc; ac_word=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2834 else
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2840 if test -z "$ac_cv_prog_CC"; then
2841 ac_ct_CC=$CC
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2863 done
2864 done
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2872 else
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2877 CC=$ac_ct_CC
2878 else
2879 CC="$ac_cv_prog_CC"
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 ac_prog_rejected=no
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected=yes
2904 continue
2906 ac_cv_prog_CC="cc"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2910 done
2911 done
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 for ac_prog in cl
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2962 done
2963 done
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6
2971 else
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$CC" && break
2977 done
2979 if test -z "$CC"; then
2980 ac_ct_CC=$CC
2981 for ac_prog in cl
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3004 done
3005 done
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$ac_ct_CC" && break
3019 done
3021 CC=$ac_ct_CC
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036 ac_compiler=`set X $ac_compile; echo $2`
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </dev/null >&5) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3043 (eval $ac_compiler -v </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev/null >&5) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3061 main ()
3065 return 0;
3067 _ACEOF
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3072 # of exeext.
3073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3083 # resort.
3085 # Be careful to initialize this variable, since it used to be cached.
3086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3087 ac_cv_exeext=
3088 # b.out is created by i960 compilers.
3089 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3095 conftest.$ac_ext )
3096 # This is the source file.
3098 [ab].out )
3099 # We found the default executable, but exeext='' is most
3100 # certainly right.
3101 break;;
3102 *.* )
3103 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3107 export ac_cv_exeext
3108 break;;
3110 break;;
3111 esac
3112 done
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3124 ac_exeext=$ac_cv_exeext
3125 echo "$as_me:$LINENO: result: $ac_file" >&5
3126 echo "${ECHO_T}$ac_file" >&6
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 the C compiler works" >&5
3131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133 # If not cross compiling, check that we can run a simple program.
3134 if test "$cross_compiling" != yes; then
3135 if { ac_try='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 cross_compiling=no
3142 else
3143 if test "$cross_compiling" = maybe; then
3144 cross_compiling=yes
3145 else
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3159 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3160 ac_clean_files=$ac_clean_files_save
3161 # Check the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166 echo "${ECHO_T}$cross_compiling" >&6
3168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 # `rm'.
3179 for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 export ac_cv_exeext
3185 break;;
3186 * ) break;;
3187 esac
3188 done
3189 else
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3197 rm -f conftest$ac_cv_exeext
3198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199 echo "${ECHO_T}$ac_cv_exeext" >&6
3201 rm -f conftest.$ac_ext
3202 EXEEXT=$ac_cv_exeext
3203 ac_exeext=$EXEEXT
3204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206 if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.o conftest.obj
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234 break;;
3235 esac
3236 done
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251 echo "${ECHO_T}$ac_cv_objext" >&6
3252 OBJEXT=$ac_cv_objext
3253 ac_objext=$OBJEXT
3254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3267 main ()
3269 #ifndef __GNUC__
3270 choke me
3271 #endif
3274 return 0;
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_compiler_gnu=yes
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 ac_compiler_gnu=no
3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312 GCC=`test $ac_compiler_gnu = yes && echo yes`
3313 ac_test_CFLAGS=${CFLAGS+set}
3314 ac_save_CFLAGS=$CFLAGS
3315 CFLAGS="-g"
3316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3329 main ()
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_prog_cc_g=yes
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_cv_prog_cc_g=no
3365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3373 CFLAGS="-g -O2"
3374 else
3375 CFLAGS="-g"
3377 else
3378 if test "$GCC" = yes; then
3379 CFLAGS="-O2"
3380 else
3381 CFLAGS=
3384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 ac_cv_prog_cc_stdc=no
3390 ac_save_CC=$CC
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <stdarg.h>
3398 #include <stdio.h>
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3405 char **p;
3406 int i;
3408 return p[i];
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3412 char *s;
3413 va_list v;
3414 va_start (v,p);
3415 s = g (p, va_arg (v,int));
3416 va_end (v);
3417 return s;
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std1 is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std1. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 int argc;
3434 char **argv;
3436 main ()
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3440 return 0;
3442 _ACEOF
3443 # Don't try gcc -ansi; that turns off useful extensions and
3444 # breaks some systems' header files.
3445 # AIX -qlanglvl=ansi
3446 # Ultrix and OSF/1 -std1
3447 # HP-UX 10.20 and later -Ae
3448 # HP-UX older versions -Aa -D_HPUX_SOURCE
3449 # SVR4 -Xc -D__EXTENSIONS__
3450 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 CC="$ac_save_CC $ac_arg"
3453 rm -f conftest.$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_prog_cc_stdc=$ac_arg
3476 break
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3482 rm -f conftest.err conftest.$ac_objext
3483 done
3484 rm -f conftest.$ac_ext conftest.$ac_objext
3485 CC=$ac_save_CC
3489 case "x$ac_cv_prog_cc_stdc" in
3490 x|xno)
3491 echo "$as_me:$LINENO: result: none needed" >&5
3492 echo "${ECHO_T}none needed" >&6 ;;
3494 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3496 CC="$CC $ac_cv_prog_cc_stdc" ;;
3497 esac
3499 # Some people use a C++ compiler to compile C. Since we use `exit',
3500 # in C++ we need to declare it. In case someone uses the same compiler
3501 # for both compiling C and C++ we need to have the C++ compiler decide
3502 # the declaration of exit, since it's the most demanding environment.
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #ifndef __cplusplus
3505 choke me
3506 #endif
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 for ac_declaration in \
3531 '' \
3532 'extern "C" void std::exit (int) throw (); using std::exit;' \
3533 'extern "C" void std::exit (int); using std::exit;' \
3534 'extern "C" void exit (int) throw ();' \
3535 'extern "C" void exit (int);' \
3536 'void exit (int);'
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_declaration
3545 #include <stdlib.h>
3547 main ()
3549 exit (42);
3551 return 0;
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 continue
3583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 $ac_declaration
3592 main ()
3594 exit (42);
3596 return 0;
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 break
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628 done
3629 rm -f conftest*
3630 if test -n "$ac_declaration"; then
3631 echo '#ifdef __cplusplus' >>confdefs.h
3632 echo $ac_declaration >>confdefs.h
3633 echo '#endif' >>confdefs.h
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642 ac_ext=c
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 # On Suns, sometimes $CPP names a directory.
3650 if test -n "$CPP" && test -d "$CPP"; then
3651 CPP=
3654 #### Some systems specify a CPP to use unless we are using GCC.
3655 #### Now that we know whether we are using GCC, we can decide whether
3656 #### to use that one.
3657 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3658 then
3659 CPP="$NON_GNU_CPP"
3662 #### Some systems specify a CC to use unless we are using GCC.
3663 #### Now that we know whether we are using GCC, we can decide whether
3664 #### to use that one.
3665 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3666 test x$cc_specified != xyes
3667 then
3668 CC="$NON_GNU_CC"
3671 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3672 then
3673 CC="$CC $GCC_TEST_OPTIONS"
3676 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3677 then
3678 CC="$CC $NON_GCC_TEST_OPTIONS"
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3688 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3689 # On Suns, sometimes $CPP names a directory.
3690 if test -n "$CPP" && test -d "$CPP"; then
3691 CPP=
3693 if test -z "$CPP"; then
3694 if test "${ac_cv_prog_CPP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 # Double quotes because CPP needs to be expanded
3698 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3700 ac_preproc_ok=false
3701 for ac_c_preproc_warn_flag in '' yes
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #ifdef __STDC__
3716 # include <limits.h>
3717 #else
3718 # include <assert.h>
3719 #endif
3720 Syntax error
3721 _ACEOF
3722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null; then
3730 if test -s conftest.err; then
3731 ac_cpp_err=$ac_c_preproc_warn_flag
3732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3733 else
3734 ac_cpp_err=
3736 else
3737 ac_cpp_err=yes
3739 if test -z "$ac_cpp_err"; then
3741 else
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 # Broken: fails on valid input.
3746 continue
3748 rm -f conftest.err conftest.$ac_ext
3750 # OK, works on sane cases. Now check whether non-existent headers
3751 # can be detected and how.
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3759 _ACEOF
3760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev/null; then
3768 if test -s conftest.err; then
3769 ac_cpp_err=$ac_c_preproc_warn_flag
3770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3771 else
3772 ac_cpp_err=
3774 else
3775 ac_cpp_err=yes
3777 if test -z "$ac_cpp_err"; then
3778 # Broken: success on invalid input.
3779 continue
3780 else
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3784 # Passes both tests.
3785 ac_preproc_ok=:
3786 break
3788 rm -f conftest.err conftest.$ac_ext
3790 done
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.$ac_ext
3793 if $ac_preproc_ok; then
3794 break
3797 done
3798 ac_cv_prog_CPP=$CPP
3801 CPP=$ac_cv_prog_CPP
3802 else
3803 ac_cv_prog_CPP=$CPP
3805 echo "$as_me:$LINENO: result: $CPP" >&5
3806 echo "${ECHO_T}$CPP" >&6
3807 ac_preproc_ok=false
3808 for ac_c_preproc_warn_flag in '' yes
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 #ifdef __STDC__
3823 # include <limits.h>
3824 #else
3825 # include <assert.h>
3826 #endif
3827 Syntax error
3828 _ACEOF
3829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev/null; then
3837 if test -s conftest.err; then
3838 ac_cpp_err=$ac_c_preproc_warn_flag
3839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3840 else
3841 ac_cpp_err=
3843 else
3844 ac_cpp_err=yes
3846 if test -z "$ac_cpp_err"; then
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 # Broken: fails on valid input.
3853 continue
3855 rm -f conftest.err conftest.$ac_ext
3857 # OK, works on sane cases. Now check whether non-existent headers
3858 # can be detected and how.
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <ac_nonexistent.h>
3866 _ACEOF
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null; then
3875 if test -s conftest.err; then
3876 ac_cpp_err=$ac_c_preproc_warn_flag
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878 else
3879 ac_cpp_err=
3881 else
3882 ac_cpp_err=yes
3884 if test -z "$ac_cpp_err"; then
3885 # Broken: success on invalid input.
3886 continue
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 # Passes both tests.
3892 ac_preproc_ok=:
3893 break
3895 rm -f conftest.err conftest.$ac_ext
3897 done
3898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899 rm -f conftest.err conftest.$ac_ext
3900 if $ac_preproc_ok; then
3902 else
3903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3904 See \`config.log' for more details." >&5
3905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3906 See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 echo "$as_me:$LINENO: checking for egrep" >&5
3918 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3919 if test "${ac_cv_prog_egrep+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3923 then ac_cv_prog_egrep='grep -E'
3924 else ac_cv_prog_egrep='egrep'
3927 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3928 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3929 EGREP=$ac_cv_prog_egrep
3933 echo "$as_me:$LINENO: checking for AIX" >&5
3934 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #ifdef _AIX
3943 #endif
3945 _ACEOF
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev/null 2>&1; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 cat >>confdefs.h <<\_ACEOF
3951 #define _ALL_SOURCE 1
3952 _ACEOF
3954 else
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3958 rm -f conftest*
3962 cat >>confdefs.h <<\_ACEOF
3963 #define _GNU_SOURCE 1
3964 _ACEOF
3968 ### Use -Wno-pointer-sign if the compiler supports it
3969 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3970 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3971 SAVE_CFLAGS="$CFLAGS"
3972 CFLAGS="$CFLAGS -Wno-pointer-sign"
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3981 main ()
3985 return 0;
3987 _ACEOF
3988 rm -f conftest.$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 has_option=yes
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 has_option=no
4017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018 if test $has_option = yes; then
4019 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4021 echo "$as_me:$LINENO: result: $has_option" >&5
4022 echo "${ECHO_T}$has_option" >&6
4023 CFLAGS="$SAVE_CFLAGS"
4024 unset has_option
4025 unset SAVE_CFLAGS
4027 #### Some other nice autoconf tests.
4029 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4030 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4031 LN_S=$as_ln_s
4032 if test "$LN_S" = "ln -s"; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034 echo "${ECHO_T}yes" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4037 echo "${ECHO_T}no, using $LN_S" >&6
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4047 # On Suns, sometimes $CPP names a directory.
4048 if test -n "$CPP" && test -d "$CPP"; then
4049 CPP=
4051 if test -z "$CPP"; then
4052 if test "${ac_cv_prog_CPP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 # Double quotes because CPP needs to be expanded
4056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4058 ac_preproc_ok=false
4059 for ac_c_preproc_warn_flag in '' yes
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #ifdef __STDC__
4074 # include <limits.h>
4075 #else
4076 # include <assert.h>
4077 #endif
4078 Syntax error
4079 _ACEOF
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4091 else
4092 ac_cpp_err=
4094 else
4095 ac_cpp_err=yes
4097 if test -z "$ac_cpp_err"; then
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 # Broken: fails on valid input.
4104 continue
4106 rm -f conftest.err conftest.$ac_ext
4108 # OK, works on sane cases. Now check whether non-existent headers
4109 # can be detected and how.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4117 _ACEOF
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev/null; then
4126 if test -s conftest.err; then
4127 ac_cpp_err=$ac_c_preproc_warn_flag
4128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4129 else
4130 ac_cpp_err=
4132 else
4133 ac_cpp_err=yes
4135 if test -z "$ac_cpp_err"; then
4136 # Broken: success on invalid input.
4137 continue
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 # Passes both tests.
4143 ac_preproc_ok=:
4144 break
4146 rm -f conftest.err conftest.$ac_ext
4148 done
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.err conftest.$ac_ext
4151 if $ac_preproc_ok; then
4152 break
4155 done
4156 ac_cv_prog_CPP=$CPP
4159 CPP=$ac_cv_prog_CPP
4160 else
4161 ac_cv_prog_CPP=$CPP
4163 echo "$as_me:$LINENO: result: $CPP" >&5
4164 echo "${ECHO_T}$CPP" >&6
4165 ac_preproc_ok=false
4166 for ac_c_preproc_warn_flag in '' yes
4168 # Use a header file that comes with gcc, so configuring glibc
4169 # with a fresh cross-compiler works.
4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4171 # <limits.h> exists even on freestanding compilers.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 #ifdef __STDC__
4181 # include <limits.h>
4182 #else
4183 # include <assert.h>
4184 #endif
4185 Syntax error
4186 _ACEOF
4187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev/null; then
4195 if test -s conftest.err; then
4196 ac_cpp_err=$ac_c_preproc_warn_flag
4197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4198 else
4199 ac_cpp_err=
4201 else
4202 ac_cpp_err=yes
4204 if test -z "$ac_cpp_err"; then
4206 else
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 # Broken: fails on valid input.
4211 continue
4213 rm -f conftest.err conftest.$ac_ext
4215 # OK, works on sane cases. Now check whether non-existent headers
4216 # can be detected and how.
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4224 _ACEOF
4225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev/null; then
4233 if test -s conftest.err; then
4234 ac_cpp_err=$ac_c_preproc_warn_flag
4235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4236 else
4237 ac_cpp_err=
4239 else
4240 ac_cpp_err=yes
4242 if test -z "$ac_cpp_err"; then
4243 # Broken: success on invalid input.
4244 continue
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 # Passes both tests.
4250 ac_preproc_ok=:
4251 break
4253 rm -f conftest.err conftest.$ac_ext
4255 done
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.$ac_ext
4258 if $ac_preproc_ok; then
4260 else
4261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details." >&5
4263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264 See \`config.log' for more details." >&2;}
4265 { (exit 1); exit 1; }; }
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 # Find a good install program. We prefer a C program (faster),
4275 # so one script is as good as another. But avoid the broken or
4276 # incompatible versions:
4277 # SysV /etc/install, /usr/sbin/install
4278 # SunOS /usr/etc/install
4279 # IRIX /sbin/install
4280 # AIX /bin/install
4281 # AmigaOS /C/install, which installs bootblocks on floppy discs
4282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4285 # OS/2's system install, which has a completely different semantic
4286 # ./install, which can be erroneously created by make from ./install.sh.
4287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4289 if test -z "$INSTALL"; then
4290 if test "${ac_cv_path_install+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 # Account for people who put trailing slashes in PATH elements.
4299 case $as_dir/ in
4300 ./ | .// | /cC/* | \
4301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4302 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4303 /usr/ucb/* ) ;;
4305 # OSF1 and SCO ODT 3.0 have their own names for install.
4306 # Don't use installbsd from OSF since it installs stuff as root
4307 # by default.
4308 for ac_prog in ginstall scoinst install; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4311 if test $ac_prog = install &&
4312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4313 # AIX install. It has an incompatible calling convention.
4315 elif test $ac_prog = install &&
4316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4317 # program-specific install script used by HP pwplus--don't use.
4319 else
4320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4321 break 3
4324 done
4325 done
4327 esac
4328 done
4332 if test "${ac_cv_path_install+set}" = set; then
4333 INSTALL=$ac_cv_path_install
4334 else
4335 # As a last resort, use the slow shell script. We don't cache a
4336 # path for INSTALL within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the path is relative.
4339 INSTALL=$ac_install_sh
4342 echo "$as_me:$LINENO: result: $INSTALL" >&5
4343 echo "${ECHO_T}$INSTALL" >&6
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4353 if test "x$RANLIB" = x; then
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4357 echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359 if test "${ac_cv_prog_RANLIB+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362 if test -n "$RANLIB"; then
4363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4381 RANLIB=$ac_cv_prog_RANLIB
4382 if test -n "$RANLIB"; then
4383 echo "$as_me:$LINENO: result: $RANLIB" >&5
4384 echo "${ECHO_T}$RANLIB" >&6
4385 else
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -z "$ac_cv_prog_RANLIB"; then
4392 ac_ct_RANLIB=$RANLIB
4393 # Extract the first word of "ranlib", so it can be a program name with args.
4394 set dummy ranlib; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 if test -n "$ac_ct_RANLIB"; then
4401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_RANLIB="ranlib"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4414 done
4415 done
4417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4421 if test -n "$ac_ct_RANLIB"; then
4422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4424 else
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4429 RANLIB=$ac_ct_RANLIB
4430 else
4431 RANLIB="$ac_cv_prog_RANLIB"
4435 # Extract the first word of "install-info", so it can be a program name with args.
4436 set dummy install-info; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 case $INSTALL_INFO in
4443 [\\/]* | ?:[\\/]*)
4444 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4458 done
4459 done
4462 esac
4464 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4466 if test -n "$INSTALL_INFO"; then
4467 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4468 echo "${ECHO_T}$INSTALL_INFO" >&6
4469 else
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4474 # Extract the first word of "install-info", so it can be a program name with args.
4475 set dummy install-info; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 case $INSTALL_INFO in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in /usr/sbin
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4501 esac
4503 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4505 if test -n "$INSTALL_INFO"; then
4506 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4507 echo "${ECHO_T}$INSTALL_INFO" >&6
4508 else
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4513 # Extract the first word of "install-info", so it can be a program name with args.
4514 set dummy install-info; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 case $INSTALL_INFO in
4521 [\\/]* | ?:[\\/]*)
4522 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in /sbin
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4541 esac
4543 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4545 if test -n "$INSTALL_INFO"; then
4546 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4547 echo "${ECHO_T}$INSTALL_INFO" >&6
4548 else
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4553 # Extract the first word of "gzip", so it can be a program name with args.
4554 set dummy gzip; ac_word=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560 case $GZIP_PROG in
4561 [\\/]* | ?:[\\/]*)
4562 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4580 esac
4582 GZIP_PROG=$ac_cv_path_GZIP_PROG
4584 if test -n "$GZIP_PROG"; then
4585 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4586 echo "${ECHO_T}$GZIP_PROG" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4594 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4595 then
4596 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4599 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4600 then
4601 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4605 late_LDFLAGS=$LDFLAGS
4606 if test "$GCC" = yes; then
4607 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4608 else
4609 LDFLAGS="$LDFLAGS -znocombreloc"
4612 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4613 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4614 cat >conftest.$ac_ext <<_ACEOF
4615 main(){return 0;}
4616 _ACEOF
4617 rm -f conftest.$ac_objext conftest$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 LDFLAGS=$late_LDFLAGS
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4649 rm -f conftest.err conftest.$ac_objext \
4650 conftest$ac_exeext conftest.$ac_ext
4652 #### Extract some information from the operating system and machine files.
4654 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4655 - which libraries the lib-src programs will want, and
4656 - whether the GNU malloc routines are usable..." >&5
4657 echo "$as_me: checking the machine- and system-dependent files to find out
4658 - which libraries the lib-src programs will want, and
4659 - whether the GNU malloc routines are usable..." >&6;}
4661 ### First figure out CFLAGS (which we use for running the compiler here)
4662 ### and REAL_CFLAGS (which we use for real compilation).
4663 ### The two are the same except on a few systems, where they are made
4664 ### different to work around various lossages. For example,
4665 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4666 ### as implying static linking.
4668 ### If the CFLAGS env var is specified, we use that value
4669 ### instead of the default.
4671 ### It's not important that this name contain the PID; you can't run
4672 ### two configures in the same directory and have anything work
4673 ### anyway.
4674 tempcname="conftest.c"
4676 echo '
4677 #include "'${srcdir}'/src/'${opsysfile}'"
4678 #include "'${srcdir}'/src/'${machfile}'"
4679 #ifndef LIBS_MACHINE
4680 #define LIBS_MACHINE
4681 #endif
4682 #ifndef LIBS_SYSTEM
4683 #define LIBS_SYSTEM
4684 #endif
4685 #ifndef C_SWITCH_SYSTEM
4686 #define C_SWITCH_SYSTEM
4687 #endif
4688 #ifndef C_SWITCH_MACHINE
4689 #define C_SWITCH_MACHINE
4690 #endif
4691 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4692 configure___ c_switch_system=C_SWITCH_SYSTEM
4693 configure___ c_switch_machine=C_SWITCH_MACHINE
4695 #ifndef LIB_X11_LIB
4696 #define LIB_X11_LIB -lX11
4697 #endif
4699 #ifndef LIBX11_MACHINE
4700 #define LIBX11_MACHINE
4701 #endif
4703 #ifndef LIBX11_SYSTEM
4704 #define LIBX11_SYSTEM
4705 #endif
4706 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4708 #ifdef UNEXEC
4709 configure___ unexec=UNEXEC
4710 #else
4711 configure___ unexec=unexec.o
4712 #endif
4714 #ifdef SYSTEM_MALLOC
4715 configure___ system_malloc=yes
4716 #else
4717 configure___ system_malloc=no
4718 #endif
4720 #ifdef USE_MMAP_FOR_BUFFERS
4721 configure___ use_mmap_for_buffers=yes
4722 #else
4723 configure___ use_mmap_for_buffers=no
4724 #endif
4726 #ifndef C_DEBUG_SWITCH
4727 #define C_DEBUG_SWITCH -g
4728 #endif
4730 #ifndef C_OPTIMIZE_SWITCH
4731 #ifdef __GNUC__
4732 #define C_OPTIMIZE_SWITCH -O2
4733 #else
4734 #define C_OPTIMIZE_SWITCH -O
4735 #endif
4736 #endif
4738 #ifndef C_WARNINGS_SWITCH
4739 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4740 #endif
4742 #ifndef LD_SWITCH_MACHINE
4743 #define LD_SWITCH_MACHINE
4744 #endif
4746 #ifndef LD_SWITCH_SYSTEM
4747 #define LD_SWITCH_SYSTEM
4748 #endif
4750 #ifndef LD_SWITCH_X_SITE_AUX
4751 #define LD_SWITCH_X_SITE_AUX
4752 #endif
4754 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4755 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4757 #ifdef THIS_IS_CONFIGURE
4759 /* Get the CFLAGS for tests in configure. */
4760 #ifdef __GNUC__
4761 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4762 #else
4763 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4764 #endif
4766 #else /* not THIS_IS_CONFIGURE */
4768 /* Get the CFLAGS for real compilation. */
4769 #ifdef __GNUC__
4770 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4771 #else
4772 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4773 #endif
4775 #endif /* not THIS_IS_CONFIGURE */
4776 ' > ${tempcname}
4778 # The value of CPP is a quoted variable reference, so we need to do this
4779 # to get its actual value...
4780 CPP=`eval "echo $CPP"`
4781 eval `${CPP} -Isrc ${tempcname} \
4782 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4783 if test "x$SPECIFIED_CFLAGS" = x; then
4784 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4785 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4786 else
4787 REAL_CFLAGS="$CFLAGS"
4789 rm ${tempcname}
4791 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4793 ### Make sure subsequent tests use flags consistent with the build flags.
4795 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4796 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4797 else
4798 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4803 # Check whether --enable-largefile or --disable-largefile was given.
4804 if test "${enable_largefile+set}" = set; then
4805 enableval="$enable_largefile"
4808 if test "$enable_largefile" != no; then
4810 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4811 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4812 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 ac_cv_sys_largefile_CC=no
4816 if test "$GCC" != yes; then
4817 ac_save_CC=$CC
4818 while :; do
4819 # IRIX 6.2 and later do not support large files by default,
4820 # so use the C compiler's -n32 option if that helps.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <sys/types.h>
4828 /* Check that off_t can represent 2**63 - 1 correctly.
4829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4830 since some C++ compilers masquerading as C compilers
4831 incorrectly reject 9223372036854775807. */
4832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4834 && LARGE_OFF_T % 2147483647 == 1)
4835 ? 1 : -1];
4837 main ()
4841 return 0;
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 break
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4872 rm -f conftest.err conftest.$ac_objext
4873 CC="$CC -n32"
4874 rm -f conftest.$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_sys_largefile_CC=' -n32'; break
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4902 rm -f conftest.err conftest.$ac_objext
4903 break
4904 done
4905 CC=$ac_save_CC
4906 rm -f conftest.$ac_ext
4909 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4910 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4911 if test "$ac_cv_sys_largefile_CC" != no; then
4912 CC=$CC$ac_cv_sys_largefile_CC
4915 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4916 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4917 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 while :; do
4921 ac_cv_sys_file_offset_bits=no
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931 since some C++ compilers masquerading as C compilers
4932 incorrectly reject 9223372036854775807. */
4933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935 && LARGE_OFF_T % 2147483647 == 1)
4936 ? 1 : -1];
4938 main ()
4942 return 0;
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 break
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #define _FILE_OFFSET_BITS 64
4981 #include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984 since some C++ compilers masquerading as C compilers
4985 incorrectly reject 9223372036854775807. */
4986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988 && LARGE_OFF_T % 2147483647 == 1)
4989 ? 1 : -1];
4991 main ()
4995 return 0;
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 ac_cv_sys_file_offset_bits=64; break
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 break
5028 done
5030 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5031 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5032 if test "$ac_cv_sys_file_offset_bits" != no; then
5034 cat >>confdefs.h <<_ACEOF
5035 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5036 _ACEOF
5039 rm -f conftest*
5040 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5041 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5042 if test "${ac_cv_sys_large_files+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 while :; do
5046 ac_cv_sys_large_files=no
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 /* Check that off_t can represent 2**63 - 1 correctly.
5055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5056 since some C++ compilers masquerading as C compilers
5057 incorrectly reject 9223372036854775807. */
5058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5060 && LARGE_OFF_T % 2147483647 == 1)
5061 ? 1 : -1];
5063 main ()
5067 return 0;
5069 _ACEOF
5070 rm -f conftest.$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 break
5093 else
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #define _LARGE_FILES 1
5106 #include <sys/types.h>
5107 /* Check that off_t can represent 2**63 - 1 correctly.
5108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5109 since some C++ compilers masquerading as C compilers
5110 incorrectly reject 9223372036854775807. */
5111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5113 && LARGE_OFF_T % 2147483647 == 1)
5114 ? 1 : -1];
5116 main ()
5120 return 0;
5122 _ACEOF
5123 rm -f conftest.$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_sys_large_files=1; break
5146 else
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5152 break
5153 done
5155 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5156 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5157 if test "$ac_cv_sys_large_files" != no; then
5159 cat >>confdefs.h <<_ACEOF
5160 #define _LARGE_FILES $ac_cv_sys_large_files
5161 _ACEOF
5164 rm -f conftest*
5172 if test "${with_sound}" != "no"; then
5173 # Sound support for GNU/Linux and the free BSDs.
5174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5176 if test "${ac_cv_header_stdc+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 #include <stdlib.h>
5186 #include <stdarg.h>
5187 #include <string.h>
5188 #include <float.h>
5191 main ()
5195 return 0;
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 (eval $ac_try) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 ac_cv_header_stdc=yes
5221 else
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5225 ac_cv_header_stdc=no
5227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229 if test $ac_cv_header_stdc = yes; then
5230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #include <string.h>
5239 _ACEOF
5240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 $EGREP "memchr" >/dev/null 2>&1; then
5243 else
5244 ac_cv_header_stdc=no
5246 rm -f conftest*
5250 if test $ac_cv_header_stdc = yes; then
5251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 #include <stdlib.h>
5260 _ACEOF
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "free" >/dev/null 2>&1; then
5264 else
5265 ac_cv_header_stdc=no
5267 rm -f conftest*
5271 if test $ac_cv_header_stdc = yes; then
5272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5273 if test "$cross_compiling" = yes; then
5275 else
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <ctype.h>
5283 #if ((' ' & 0x0FF) == 0x020)
5284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5286 #else
5287 # define ISLOWER(c) \
5288 (('a' <= (c) && (c) <= 'i') \
5289 || ('j' <= (c) && (c) <= 'r') \
5290 || ('s' <= (c) && (c) <= 'z'))
5291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5292 #endif
5294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5296 main ()
5298 int i;
5299 for (i = 0; i < 256; i++)
5300 if (XOR (islower (i), ISLOWER (i))
5301 || toupper (i) != TOUPPER (i))
5302 exit(2);
5303 exit (0);
5305 _ACEOF
5306 rm -f conftest$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308 (eval $ac_link) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5318 else
5319 echo "$as_me: program exited with status $ac_status" >&5
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ( exit $ac_status )
5324 ac_cv_header_stdc=no
5326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5330 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5331 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5332 if test $ac_cv_header_stdc = yes; then
5334 cat >>confdefs.h <<\_ACEOF
5335 #define STDC_HEADERS 1
5336 _ACEOF
5340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5351 inttypes.h stdint.h unistd.h
5353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_header" >&5
5355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5367 #include <$ac_header>
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -z "$ac_c_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 eval "$as_ac_Header=yes"
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 eval "$as_ac_Header=no"
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5403 cat >>confdefs.h <<_ACEOF
5404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405 _ACEOF
5409 done
5415 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for $ac_header" >&5
5420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5426 else
5427 # Is the header compilable?
5428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_header_compiler=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 ac_header_compiler=no
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5470 echo "${ECHO_T}$ac_header_compiler" >&6
5472 # Is the header present?
5473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <$ac_header>
5482 _ACEOF
5483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } >/dev/null; then
5491 if test -s conftest.err; then
5492 ac_cpp_err=$ac_c_preproc_warn_flag
5493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5494 else
5495 ac_cpp_err=
5497 else
5498 ac_cpp_err=yes
5500 if test -z "$ac_cpp_err"; then
5501 ac_header_preproc=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_header_preproc=no
5508 rm -f conftest.err conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5510 echo "${ECHO_T}$ac_header_preproc" >&6
5512 # So? What about this header?
5513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5514 yes:no: )
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5519 ac_header_preproc=yes
5521 no:yes:* )
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5535 cat <<\_ASBOX
5536 ## ------------------------------------------ ##
5537 ## Report this to the AC_PACKAGE_NAME lists. ##
5538 ## ------------------------------------------ ##
5539 _ASBOX
5541 sed "s/^/$as_me: WARNING: /" >&2
5543 esac
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549 eval "$as_ac_Header=\$ac_header_preproc"
5551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556 cat >>confdefs.h <<_ACEOF
5557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 _ACEOF
5562 done
5564 # Emulation library used on NetBSD.
5565 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5566 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5567 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lossaudio $LIBS"
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 #ifdef __cplusplus
5581 extern "C"
5582 #endif
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5585 char _oss_ioctl ();
5587 main ()
5589 _oss_ioctl ();
5591 return 0;
5593 _ACEOF
5594 rm -f conftest.$ac_objext conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_ossaudio__oss_ioctl=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_cv_lib_ossaudio__oss_ioctl=no
5623 rm -f conftest.err conftest.$ac_objext \
5624 conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_check_lib_save_LIBS
5627 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5628 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5629 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5630 LIBSOUND=-lossaudio
5631 else
5632 LIBSOUND=
5637 ALSA_REQUIRED=1.0.0
5638 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5639 if test "X${with_pkg_config_prog}" != X; then
5640 PKG_CONFIG="${with_pkg_config_prog}"
5643 succeeded=no
5645 if test -z "$PKG_CONFIG"; then
5646 # Extract the first word of "pkg-config", so it can be a program name with args.
5647 set dummy pkg-config; ac_word=$2
5648 echo "$as_me:$LINENO: checking for $ac_word" >&5
5649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5650 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 case $PKG_CONFIG in
5654 [\\/]* | ?:[\\/]*)
5655 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5669 done
5670 done
5672 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5674 esac
5676 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5678 if test -n "$PKG_CONFIG"; then
5679 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5680 echo "${ECHO_T}$PKG_CONFIG" >&6
5681 else
5682 echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6
5688 if test "$PKG_CONFIG" = "no" ; then
5689 HAVE_ALSA=no
5690 else
5691 PKG_CONFIG_MIN_VERSION=0.9.0
5692 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5693 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5694 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5696 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698 echo "${ECHO_T}yes" >&6
5699 succeeded=yes
5701 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5702 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5703 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5704 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5705 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5707 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5708 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5709 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5710 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5711 echo "${ECHO_T}$ALSA_LIBS" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5715 ALSA_CFLAGS=""
5716 ALSA_LIBS=""
5717 ## If we have a custom action on failure, don't print errors, but
5718 ## do set a variable so people can do so.
5719 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5725 else
5726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5731 if test $succeeded = yes; then
5732 HAVE_ALSA=yes
5733 else
5734 HAVE_ALSA=no
5737 if test $HAVE_ALSA = yes; then
5738 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5739 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5741 cat >>confdefs.h <<\_ACEOF
5742 #define HAVE_ALSA 1
5743 _ACEOF
5774 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5775 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5776 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5777 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5778 sys/utsname.h pwd.h
5780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5782 echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5789 else
5790 # Is the header compilable?
5791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5800 #include <$ac_header>
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_header_compiler=yes
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 ac_header_compiler=no
5831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6
5835 # Is the header present?
5836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <$ac_header>
5845 _ACEOF
5846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev/null; then
5854 if test -s conftest.err; then
5855 ac_cpp_err=$ac_c_preproc_warn_flag
5856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5857 else
5858 ac_cpp_err=
5860 else
5861 ac_cpp_err=yes
5863 if test -z "$ac_cpp_err"; then
5864 ac_header_preproc=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_header_preproc=no
5871 rm -f conftest.err conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5873 echo "${ECHO_T}$ac_header_preproc" >&6
5875 # So? What about this header?
5876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5877 yes:no: )
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5882 ac_header_preproc=yes
5884 no:yes:* )
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5898 cat <<\_ASBOX
5899 ## ------------------------------------------ ##
5900 ## Report this to the AC_PACKAGE_NAME lists. ##
5901 ## ------------------------------------------ ##
5902 _ASBOX
5904 sed "s/^/$as_me: WARNING: /" >&2
5906 esac
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 eval "$as_ac_Header=\$ac_header_preproc"
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 _ACEOF
5925 done
5928 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5929 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <sys/personality.h>
5938 main ()
5940 personality (PER_LINUX32)
5942 return 0;
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 (eval $ac_try) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 emacs_cv_personality_linux32=yes
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 emacs_cv_personality_linux32=no
5974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5975 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5976 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5978 if test $emacs_cv_personality_linux32 = yes; then
5980 cat >>confdefs.h <<\_ACEOF
5981 #define HAVE_PERSONALITY_LINUX32 1
5982 _ACEOF
5987 for ac_header in term.h
5989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 echo "$as_me:$LINENO: checking for $ac_header" >&5
5991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <$ac_header>
6002 _ACEOF
6003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev/null; then
6011 if test -s conftest.err; then
6012 ac_cpp_err=$ac_c_preproc_warn_flag
6013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6014 else
6015 ac_cpp_err=
6017 else
6018 ac_cpp_err=yes
6020 if test -z "$ac_cpp_err"; then
6021 eval "$as_ac_Header=yes"
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 eval "$as_ac_Header=no"
6028 rm -f conftest.err conftest.$ac_ext
6030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6033 cat >>confdefs.h <<_ACEOF
6034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6035 _ACEOF
6039 done
6041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6043 if test "${ac_cv_header_stdc+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <stdlib.h>
6053 #include <stdarg.h>
6054 #include <string.h>
6055 #include <float.h>
6058 main ()
6062 return 0;
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_header_stdc=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_header_stdc=no
6094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096 if test $ac_cv_header_stdc = yes; then
6097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <string.h>
6106 _ACEOF
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "memchr" >/dev/null 2>&1; then
6110 else
6111 ac_cv_header_stdc=no
6113 rm -f conftest*
6117 if test $ac_cv_header_stdc = yes; then
6118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <stdlib.h>
6127 _ACEOF
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "free" >/dev/null 2>&1; then
6131 else
6132 ac_cv_header_stdc=no
6134 rm -f conftest*
6138 if test $ac_cv_header_stdc = yes; then
6139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6140 if test "$cross_compiling" = yes; then
6142 else
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <ctype.h>
6150 #if ((' ' & 0x0FF) == 0x020)
6151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6153 #else
6154 # define ISLOWER(c) \
6155 (('a' <= (c) && (c) <= 'i') \
6156 || ('j' <= (c) && (c) <= 'r') \
6157 || ('s' <= (c) && (c) <= 'z'))
6158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6159 #endif
6161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6163 main ()
6165 int i;
6166 for (i = 0; i < 256; i++)
6167 if (XOR (islower (i), ISLOWER (i))
6168 || toupper (i) != TOUPPER (i))
6169 exit(2);
6170 exit (0);
6172 _ACEOF
6173 rm -f conftest$ac_exeext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6185 else
6186 echo "$as_me: program exited with status $ac_status" >&5
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 ( exit $ac_status )
6191 ac_cv_header_stdc=no
6193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6199 if test $ac_cv_header_stdc = yes; then
6201 cat >>confdefs.h <<\_ACEOF
6202 #define STDC_HEADERS 1
6203 _ACEOF
6207 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6208 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6209 if test "${ac_cv_header_time+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <sys/types.h>
6219 #include <sys/time.h>
6220 #include <time.h>
6223 main ()
6225 if ((struct tm *) 0)
6226 return 0;
6228 return 0;
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_header_time=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_cv_header_time=no
6260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6262 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6263 echo "${ECHO_T}$ac_cv_header_time" >&6
6264 if test $ac_cv_header_time = yes; then
6266 cat >>confdefs.h <<\_ACEOF
6267 #define TIME_WITH_SYS_TIME 1
6268 _ACEOF
6272 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6273 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6274 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6285 main ()
6287 #ifndef sys_siglist
6288 char *p = (char *) sys_siglist;
6289 #endif
6292 return 0;
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
6298 ac_status=$?
6299 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -f conftest.er1
6301 cat conftest.err >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_have_decl_sys_siglist=yes
6318 else
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 ac_cv_have_decl_sys_siglist=no
6324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6327 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6328 if test $ac_cv_have_decl_sys_siglist = yes; then
6330 cat >>confdefs.h <<_ACEOF
6331 #define HAVE_DECL_SYS_SIGLIST 1
6332 _ACEOF
6335 else
6336 cat >>confdefs.h <<_ACEOF
6337 #define HAVE_DECL_SYS_SIGLIST 0
6338 _ACEOF
6344 if test $ac_cv_have_decl_sys_siglist != yes; then
6345 # For Tru64, at least:
6346 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6347 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6348 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6359 main ()
6361 #ifndef __sys_siglist
6362 char *p = (char *) __sys_siglist;
6363 #endif
6366 return 0;
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_have_decl___sys_siglist=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6396 ac_cv_have_decl___sys_siglist=no
6398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6401 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6402 if test $ac_cv_have_decl___sys_siglist = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define HAVE_DECL___SYS_SIGLIST 1
6406 _ACEOF
6409 else
6410 cat >>confdefs.h <<_ACEOF
6411 #define HAVE_DECL___SYS_SIGLIST 0
6412 _ACEOF
6418 if test $ac_cv_have_decl___sys_siglist = yes; then
6420 cat >>confdefs.h <<\_ACEOF
6421 #define sys_siglist __sys_siglist
6422 _ACEOF
6426 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6427 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6428 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <sys/types.h>
6438 #include <sys/wait.h>
6439 #ifndef WEXITSTATUS
6440 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6441 #endif
6442 #ifndef WIFEXITED
6443 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6444 #endif
6447 main ()
6449 int s;
6450 wait (&s);
6451 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6453 return 0;
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_header_sys_wait_h=yes
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 ac_cv_header_sys_wait_h=no
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6489 if test $ac_cv_header_sys_wait_h = yes; then
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_SYS_WAIT_H 1
6493 _ACEOF
6498 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6499 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6500 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #ifdef TIME_WITH_SYS_TIME
6510 #include <sys/time.h>
6511 #include <time.h>
6512 #else
6513 #ifdef HAVE_SYS_TIME_H
6514 #include <sys/time.h>
6515 #else
6516 #include <time.h>
6517 #endif
6518 #endif
6519 #ifdef HAVE_UTIME_H
6520 #include <utime.h>
6521 #endif
6523 main ()
6525 static struct utimbuf x; x.actime = x.modtime;
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_c_werror_flag"
6540 || test ! -s conftest.err'
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); }; } &&
6546 { ac_try='test -s conftest.$ac_objext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 emacs_cv_struct_utimbuf=yes
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 emacs_cv_struct_utimbuf=no
6559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6561 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6562 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6563 if test $emacs_cv_struct_utimbuf = yes; then
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_STRUCT_UTIMBUF 1
6567 _ACEOF
6571 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6572 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6573 if test "${ac_cv_type_signal+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <sys/types.h>
6583 #include <signal.h>
6584 #ifdef signal
6585 # undef signal
6586 #endif
6587 #ifdef __cplusplus
6588 extern "C" void (*signal (int, void (*)(int)))(int);
6589 #else
6590 void (*signal ()) ();
6591 #endif
6594 main ()
6596 int i;
6598 return 0;
6600 _ACEOF
6601 rm -f conftest.$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_type_signal=void
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_cv_type_signal=int
6630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6632 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6633 echo "${ECHO_T}$ac_cv_type_signal" >&6
6635 cat >>confdefs.h <<_ACEOF
6636 #define RETSIGTYPE $ac_cv_type_signal
6637 _ACEOF
6641 echo "$as_me:$LINENO: checking for speed_t" >&5
6642 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6643 if test "${emacs_cv_speed_t+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <termios.h>
6654 main ()
6656 speed_t x = 1;
6658 return 0;
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
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); }; } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 emacs_cv_speed_t=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 emacs_cv_speed_t=no
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6692 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6693 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6694 if test $emacs_cv_speed_t = yes; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_SPEED_T 1
6698 _ACEOF
6702 echo "$as_me:$LINENO: checking for struct timeval" >&5
6703 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6704 if test "${emacs_cv_struct_timeval+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #ifdef TIME_WITH_SYS_TIME
6714 #include <sys/time.h>
6715 #include <time.h>
6716 #else
6717 #ifdef HAVE_SYS_TIME_H
6718 #include <sys/time.h>
6719 #else
6720 #include <time.h>
6721 #endif
6722 #endif
6724 main ()
6726 static struct timeval x; x.tv_sec = x.tv_usec;
6728 return 0;
6730 _ACEOF
6731 rm -f conftest.$ac_objext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733 (eval $ac_compile) 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 emacs_cv_struct_timeval=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 emacs_cv_struct_timeval=no
6760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6762 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6763 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6764 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6765 if test $emacs_cv_struct_timeval = yes; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define HAVE_TIMEVAL 1
6769 _ACEOF
6773 echo "$as_me:$LINENO: checking for struct exception" >&5
6774 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6775 if test "${emacs_cv_struct_exception+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 #include <math.h>
6786 main ()
6788 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6790 return 0;
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest.$ac_objext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 emacs_cv_struct_exception=yes
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 emacs_cv_struct_exception=no
6822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6825 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6826 HAVE_EXCEPTION=$emacs_cv_struct_exception
6827 if test $emacs_cv_struct_exception != yes; then
6829 cat >>confdefs.h <<\_ACEOF
6830 #define NO_MATHERR 1
6831 _ACEOF
6836 for ac_header in sys/socket.h
6838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6840 echo "$as_me:$LINENO: checking for $ac_header" >&5
6841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6847 else
6848 # Is the header compilable?
6849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6858 #include <$ac_header>
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_header_compiler=yes
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 ac_header_compiler=no
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6891 echo "${ECHO_T}$ac_header_compiler" >&6
6893 # Is the header present?
6894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <$ac_header>
6903 _ACEOF
6904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } >/dev/null; then
6912 if test -s conftest.err; then
6913 ac_cpp_err=$ac_c_preproc_warn_flag
6914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6915 else
6916 ac_cpp_err=
6918 else
6919 ac_cpp_err=yes
6921 if test -z "$ac_cpp_err"; then
6922 ac_header_preproc=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_header_preproc=no
6929 rm -f conftest.err conftest.$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6931 echo "${ECHO_T}$ac_header_preproc" >&6
6933 # So? What about this header?
6934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6935 yes:no: )
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6940 ac_header_preproc=yes
6942 no:yes:* )
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6956 cat <<\_ASBOX
6957 ## ------------------------------------------ ##
6958 ## Report this to the AC_PACKAGE_NAME lists. ##
6959 ## ------------------------------------------ ##
6960 _ASBOX
6962 sed "s/^/$as_me: WARNING: /" >&2
6964 esac
6965 echo "$as_me:$LINENO: checking for $ac_header" >&5
6966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970 eval "$as_ac_Header=\$ac_header_preproc"
6972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6977 cat >>confdefs.h <<_ACEOF
6978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979 _ACEOF
6983 done
6986 for ac_header in net/if.h
6988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989 echo "$as_me:$LINENO: checking for $ac_header" >&5
6990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 #if HAVE_SYS_SOCKET_H
7002 #include <sys/socket.h>
7003 #endif
7005 #include <$ac_header>
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_c_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try='test -s conftest.$ac_objext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 eval "$as_ac_Header=yes"
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 eval "$as_ac_Header=no"
7036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7041 cat >>confdefs.h <<_ACEOF
7042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7043 _ACEOF
7047 done
7050 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7051 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7052 if test "${ac_cv_struct_tm+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #include <sys/types.h>
7062 #include <time.h>
7065 main ()
7067 struct tm *tp; tp->tm_sec;
7069 return 0;
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074 (eval $ac_compile) 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -z "$ac_c_werror_flag"
7082 || test ! -s conftest.err'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try='test -s conftest.$ac_objext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_struct_tm=time.h
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_struct_tm=sys/time.h
7101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7104 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7105 if test $ac_cv_struct_tm = sys/time.h; then
7107 cat >>confdefs.h <<\_ACEOF
7108 #define TM_IN_SYS_TIME 1
7109 _ACEOF
7113 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7114 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7115 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <sys/types.h>
7125 #include <$ac_cv_struct_tm>
7129 main ()
7131 static struct tm ac_aggr;
7132 if (ac_aggr.tm_zone)
7133 return 0;
7135 return 0;
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -z "$ac_c_werror_flag"
7148 || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_cv_member_struct_tm_tm_zone=yes
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <sys/types.h>
7172 #include <$ac_cv_struct_tm>
7176 main ()
7178 static struct tm ac_aggr;
7179 if (sizeof ac_aggr.tm_zone)
7180 return 0;
7182 return 0;
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -z "$ac_c_werror_flag"
7195 || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_member_struct_tm_tm_zone=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 ac_cv_member_struct_tm_tm_zone=no
7214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7219 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7220 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_STRUCT_TM_TM_ZONE 1
7224 _ACEOF
7229 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_TM_ZONE 1
7233 _ACEOF
7235 else
7236 echo "$as_me:$LINENO: checking for tzname" >&5
7237 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7238 if test "${ac_cv_var_tzname+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 #include <time.h>
7248 #ifndef tzname /* For SGI. */
7249 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7250 #endif
7253 main ()
7255 atoi(*tzname);
7257 return 0;
7259 _ACEOF
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7263 ac_status=$?
7264 grep -v '^ *+' conftest.er1 >conftest.err
7265 rm -f conftest.er1
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_var_tzname=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_var_tzname=no
7289 rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7292 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7293 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7294 if test $ac_cv_var_tzname = yes; then
7296 cat >>confdefs.h <<\_ACEOF
7297 #define HAVE_TZNAME 1
7298 _ACEOF
7303 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7304 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7305 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <time.h>
7317 main ()
7319 static struct tm ac_aggr;
7320 if (ac_aggr.tm_gmtoff)
7321 return 0;
7323 return 0;
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_member_struct_tm_tm_gmtoff=yes
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <time.h>
7362 main ()
7364 static struct tm ac_aggr;
7365 if (sizeof ac_aggr.tm_gmtoff)
7366 return 0;
7368 return 0;
7370 _ACEOF
7371 rm -f conftest.$ac_objext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -z "$ac_c_werror_flag"
7381 || test ! -s conftest.err'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try='test -s conftest.$ac_objext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 (eval $ac_try) 2>&5
7390 ac_status=$?
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_member_struct_tm_tm_gmtoff=yes
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ac_cv_member_struct_tm_tm_gmtoff=no
7400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7405 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7406 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7408 cat >>confdefs.h <<\_ACEOF
7409 #define HAVE_TM_GMTOFF 1
7410 _ACEOF
7414 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7415 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7416 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 $ac_includes_default
7426 #if HAVE_SYS_SOCKET_H
7427 #include <sys/socket.h>
7428 #endif
7429 #if HAVE_NET_IF_H
7430 #include <net/if.h>
7431 #endif
7434 main ()
7436 static struct ifreq ac_aggr;
7437 if (ac_aggr.ifr_flags)
7438 return 0;
7440 return 0;
7442 _ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_member_struct_ifreq_ifr_flags=yes
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7477 #if HAVE_SYS_SOCKET_H
7478 #include <sys/socket.h>
7479 #endif
7480 #if HAVE_NET_IF_H
7481 #include <net/if.h>
7482 #endif
7485 main ()
7487 static struct ifreq ac_aggr;
7488 if (sizeof ac_aggr.ifr_flags)
7489 return 0;
7491 return 0;
7493 _ACEOF
7494 rm -f conftest.$ac_objext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>conftest.er1
7497 ac_status=$?
7498 grep -v '^ *+' conftest.er1 >conftest.err
7499 rm -f conftest.er1
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -z "$ac_c_werror_flag"
7504 || test ! -s conftest.err'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try='test -s conftest.$ac_objext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 ac_cv_member_struct_ifreq_ifr_flags=yes
7517 else
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 ac_cv_member_struct_ifreq_ifr_flags=no
7523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7527 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7528 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7529 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7531 cat >>confdefs.h <<_ACEOF
7532 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7533 _ACEOF
7537 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7538 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7539 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 $ac_includes_default
7549 #if HAVE_SYS_SOCKET_H
7550 #include <sys/socket.h>
7551 #endif
7552 #if HAVE_NET_IF_H
7553 #include <net/if.h>
7554 #endif
7557 main ()
7559 static struct ifreq ac_aggr;
7560 if (ac_aggr.ifr_hwaddr)
7561 return 0;
7563 return 0;
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568 (eval $ac_compile) 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest.$ac_objext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7589 else
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7600 #if HAVE_SYS_SOCKET_H
7601 #include <sys/socket.h>
7602 #endif
7603 #if HAVE_NET_IF_H
7604 #include <net/if.h>
7605 #endif
7608 main ()
7610 static struct ifreq ac_aggr;
7611 if (sizeof ac_aggr.ifr_hwaddr)
7612 return 0;
7614 return 0;
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7651 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7652 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7654 cat >>confdefs.h <<_ACEOF
7655 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7656 _ACEOF
7660 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7661 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7662 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7672 #if HAVE_SYS_SOCKET_H
7673 #include <sys/socket.h>
7674 #endif
7675 #if HAVE_NET_IF_H
7676 #include <net/if.h>
7677 #endif
7680 main ()
7682 static struct ifreq ac_aggr;
7683 if (ac_aggr.ifr_netmask)
7684 return 0;
7686 return 0;
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_member_struct_ifreq_ifr_netmask=yes
7712 else
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 $ac_includes_default
7723 #if HAVE_SYS_SOCKET_H
7724 #include <sys/socket.h>
7725 #endif
7726 #if HAVE_NET_IF_H
7727 #include <net/if.h>
7728 #endif
7731 main ()
7733 static struct ifreq ac_aggr;
7734 if (sizeof ac_aggr.ifr_netmask)
7735 return 0;
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_member_struct_ifreq_ifr_netmask=yes
7763 else
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7767 ac_cv_member_struct_ifreq_ifr_netmask=no
7769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7773 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7774 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7775 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7779 _ACEOF
7783 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7784 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7785 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 #if HAVE_SYS_SOCKET_H
7796 #include <sys/socket.h>
7797 #endif
7798 #if HAVE_NET_IF_H
7799 #include <net/if.h>
7800 #endif
7803 main ()
7805 static struct ifreq ac_aggr;
7806 if (ac_aggr.ifr_broadaddr)
7807 return 0;
7809 return 0;
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7835 else
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 #if HAVE_SYS_SOCKET_H
7847 #include <sys/socket.h>
7848 #endif
7849 #if HAVE_NET_IF_H
7850 #include <net/if.h>
7851 #endif
7854 main ()
7856 static struct ifreq ac_aggr;
7857 if (sizeof ac_aggr.ifr_broadaddr)
7858 return 0;
7860 return 0;
7862 _ACEOF
7863 rm -f conftest.$ac_objext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7865 (eval $ac_compile) 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest.$ac_objext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7896 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7897 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7898 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7902 _ACEOF
7906 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7907 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7908 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 $ac_includes_default
7918 #if HAVE_SYS_SOCKET_H
7919 #include <sys/socket.h>
7920 #endif
7921 #if HAVE_NET_IF_H
7922 #include <net/if.h>
7923 #endif
7926 main ()
7928 static struct ifreq ac_aggr;
7929 if (ac_aggr.ifr_addr)
7930 return 0;
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_member_struct_ifreq_ifr_addr=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h. */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #if HAVE_SYS_SOCKET_H
7970 #include <sys/socket.h>
7971 #endif
7972 #if HAVE_NET_IF_H
7973 #include <net/if.h>
7974 #endif
7977 main ()
7979 static struct ifreq ac_aggr;
7980 if (sizeof ac_aggr.ifr_addr)
7981 return 0;
7983 return 0;
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_member_struct_ifreq_ifr_addr=yes
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_cv_member_struct_ifreq_ifr_addr=no
8015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8019 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8020 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8021 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8023 cat >>confdefs.h <<_ACEOF
8024 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8025 _ACEOF
8032 echo "$as_me:$LINENO: checking for function prototypes" >&5
8033 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8034 if test "$ac_cv_prog_cc_stdc" != no; then
8035 echo "$as_me:$LINENO: result: yes" >&5
8036 echo "${ECHO_T}yes" >&6
8038 cat >>confdefs.h <<\_ACEOF
8039 #define PROTOTYPES 1
8040 _ACEOF
8043 cat >>confdefs.h <<\_ACEOF
8044 #define __PROTOTYPES 1
8045 _ACEOF
8047 else
8048 echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8052 echo "$as_me:$LINENO: checking for working volatile" >&5
8053 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8054 if test "${ac_cv_c_volatile+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8065 main ()
8068 volatile int x;
8069 int * volatile y;
8071 return 0;
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076 (eval $ac_compile) 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest.$ac_objext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 (eval $ac_try) 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 ac_cv_c_volatile=yes
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 ac_cv_c_volatile=no
8103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8105 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8106 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8107 if test $ac_cv_c_volatile = no; then
8109 cat >>confdefs.h <<\_ACEOF
8110 #define volatile
8111 _ACEOF
8115 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8116 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8117 if test "${ac_cv_c_const+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8128 main ()
8130 /* FIXME: Include the comments suggested by Paul. */
8131 #ifndef __cplusplus
8132 /* Ultrix mips cc rejects this. */
8133 typedef int charset[2];
8134 const charset x;
8135 /* SunOS 4.1.1 cc rejects this. */
8136 char const *const *ccp;
8137 char **p;
8138 /* NEC SVR4.0.2 mips cc rejects this. */
8139 struct point {int x, y;};
8140 static struct point const zero = {0,0};
8141 /* AIX XL C 1.02.0.0 rejects this.
8142 It does not let you subtract one const X* pointer from another in
8143 an arm of an if-expression whose if-part is not a constant
8144 expression */
8145 const char *g = "string";
8146 ccp = &g + (g ? g-g : 0);
8147 /* HPUX 7.0 cc rejects these. */
8148 ++ccp;
8149 p = (char**) ccp;
8150 ccp = (char const *const *) p;
8151 { /* SCO 3.2v4 cc rejects this. */
8152 char *t;
8153 char const *s = 0 ? (char *) 0 : (char const *) 0;
8155 *t++ = 0;
8157 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8158 int x[] = {25, 17};
8159 const int *foo = &x[0];
8160 ++foo;
8162 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8163 typedef const int *iptr;
8164 iptr p = 0;
8165 ++p;
8167 { /* AIX XL C 1.02.0.0 rejects this saying
8168 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8169 struct s { int j; const int *ap[3]; };
8170 struct s *b; b->j = 5;
8172 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8173 const int foo = 10;
8175 #endif
8178 return 0;
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag"
8191 || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_cv_c_const=yes
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 ac_cv_c_const=no
8210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8212 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8213 echo "${ECHO_T}$ac_cv_c_const" >&6
8214 if test $ac_cv_c_const = no; then
8216 cat >>confdefs.h <<\_ACEOF
8217 #define const
8218 _ACEOF
8222 echo "$as_me:$LINENO: checking for void * support" >&5
8223 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8224 if test "${emacs_cv_void_star+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h. */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8235 main ()
8237 void * foo;
8239 return 0;
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 emacs_cv_void_star=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 emacs_cv_void_star=no
8271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8273 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8274 echo "${ECHO_T}$emacs_cv_void_star" >&6
8275 if test $emacs_cv_void_star = yes; then
8276 cat >>confdefs.h <<\_ACEOF
8277 #define POINTER_TYPE void
8278 _ACEOF
8280 else
8281 cat >>confdefs.h <<\_ACEOF
8282 #define POINTER_TYPE char
8283 _ACEOF
8291 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8292 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8293 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8294 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297 cat >conftest.make <<\_ACEOF
8298 all:
8299 @echo 'ac_maketemp="$(MAKE)"'
8300 _ACEOF
8301 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8302 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8303 if test -n "$ac_maketemp"; then
8304 eval ac_cv_prog_make_${ac_make}_set=yes
8305 else
8306 eval ac_cv_prog_make_${ac_make}_set=no
8308 rm -f conftest.make
8310 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8311 echo "$as_me:$LINENO: result: yes" >&5
8312 echo "${ECHO_T}yes" >&6
8313 SET_MAKE=
8314 else
8315 echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6
8317 SET_MAKE="MAKE=${MAKE-make}"
8321 echo "$as_me:$LINENO: checking for long file names" >&5
8322 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8323 if test "${ac_cv_sys_long_file_names+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 ac_cv_sys_long_file_names=yes
8327 # Test for long file names in all the places we know might matter:
8328 # . the current directory, where building will happen
8329 # $prefix/lib where we will be installing things
8330 # $exec_prefix/lib likewise
8331 # eval it to expand exec_prefix.
8332 # $TMPDIR if set, where it might want to write temporary files
8333 # if $TMPDIR is not set:
8334 # /tmp where it might want to write temporary files
8335 # /var/tmp likewise
8336 # /usr/tmp likewise
8337 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8338 ac_tmpdirs=$TMPDIR
8339 else
8340 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8342 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8343 test -d $ac_dir || continue
8344 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8345 ac_xdir=$ac_dir/cf$$
8346 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8347 ac_tf1=$ac_xdir/conftest9012345
8348 ac_tf2=$ac_xdir/conftest9012346
8349 (echo 1 >$ac_tf1) 2>/dev/null
8350 (echo 2 >$ac_tf2) 2>/dev/null
8351 ac_val=`cat $ac_tf1 2>/dev/null`
8352 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8353 ac_cv_sys_long_file_names=no
8354 rm -rf $ac_xdir 2>/dev/null
8355 break
8357 rm -rf $ac_xdir 2>/dev/null
8358 done
8360 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8361 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8362 if test $ac_cv_sys_long_file_names = yes; then
8364 cat >>confdefs.h <<\_ACEOF
8365 #define HAVE_LONG_FILE_NAMES 1
8366 _ACEOF
8371 #### Choose a window system.
8373 echo "$as_me:$LINENO: checking for X" >&5
8374 echo $ECHO_N "checking for X... $ECHO_C" >&6
8377 # Check whether --with-x or --without-x was given.
8378 if test "${with_x+set}" = set; then
8379 withval="$with_x"
8382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8383 if test "x$with_x" = xno; then
8384 # The user explicitly disabled X.
8385 have_x=disabled
8386 else
8387 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8388 # Both variables are already set.
8389 have_x=yes
8390 else
8391 if test "${ac_cv_have_x+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394 # One or both of the vars are not set, and there is no cached value.
8395 ac_x_includes=no ac_x_libraries=no
8396 rm -fr conftest.dir
8397 if mkdir conftest.dir; then
8398 cd conftest.dir
8399 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8400 cat >Imakefile <<'_ACEOF'
8401 acfindx:
8402 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8403 _ACEOF
8404 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8406 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8408 for ac_extension in a so sl; do
8409 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8410 test -f $ac_im_libdir/libX11.$ac_extension; then
8411 ac_im_usrlibdir=$ac_im_libdir; break
8413 done
8414 # Screen out bogus values from the imake configuration. They are
8415 # bogus both because they are the default anyway, and because
8416 # using them would break gcc on systems where it needs fixed includes.
8417 case $ac_im_incroot in
8418 /usr/include) ;;
8419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8420 esac
8421 case $ac_im_usrlibdir in
8422 /usr/lib | /lib) ;;
8423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8424 esac
8426 cd ..
8427 rm -fr conftest.dir
8430 # Standard set of common directories for X headers.
8431 # Check X11 before X11Rn because it is often a symlink to the current release.
8432 ac_x_header_dirs='
8433 /usr/X11/include
8434 /usr/X11R6/include
8435 /usr/X11R5/include
8436 /usr/X11R4/include
8438 /usr/include/X11
8439 /usr/include/X11R6
8440 /usr/include/X11R5
8441 /usr/include/X11R4
8443 /usr/local/X11/include
8444 /usr/local/X11R6/include
8445 /usr/local/X11R5/include
8446 /usr/local/X11R4/include
8448 /usr/local/include/X11
8449 /usr/local/include/X11R6
8450 /usr/local/include/X11R5
8451 /usr/local/include/X11R4
8453 /usr/X386/include
8454 /usr/x386/include
8455 /usr/XFree86/include/X11
8457 /usr/include
8458 /usr/local/include
8459 /usr/unsupported/include
8460 /usr/athena/include
8461 /usr/local/x11r5/include
8462 /usr/lpp/Xamples/include
8464 /usr/openwin/include
8465 /usr/openwin/share/include'
8467 if test "$ac_x_includes" = no; then
8468 # Guess where to find include files, by looking for Intrinsic.h.
8469 # First, try using that file with no special directory specified.
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <X11/Intrinsic.h>
8477 _ACEOF
8478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } >/dev/null; then
8486 if test -s conftest.err; then
8487 ac_cpp_err=$ac_c_preproc_warn_flag
8488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8489 else
8490 ac_cpp_err=
8492 else
8493 ac_cpp_err=yes
8495 if test -z "$ac_cpp_err"; then
8496 # We can compile using X headers with no special include directory.
8497 ac_x_includes=
8498 else
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 for ac_dir in $ac_x_header_dirs; do
8503 if test -r "$ac_dir/X11/Intrinsic.h"; then
8504 ac_x_includes=$ac_dir
8505 break
8507 done
8509 rm -f conftest.err conftest.$ac_ext
8510 fi # $ac_x_includes = no
8512 if test "$ac_x_libraries" = no; then
8513 # Check for the libraries.
8514 # See if we find them without any special options.
8515 # Don't add to $LIBS permanently.
8516 ac_save_LIBS=$LIBS
8517 LIBS="-lXt $LIBS"
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <X11/Intrinsic.h>
8526 main ()
8528 XtMalloc (0)
8530 return 0;
8532 _ACEOF
8533 rm -f conftest.$ac_objext conftest$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag"
8543 || test ! -s conftest.err'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 (eval $ac_try) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 LIBS=$ac_save_LIBS
8556 # We can link X programs with no special library path.
8557 ac_x_libraries=
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 LIBS=$ac_save_LIBS
8563 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8565 # Don't even attempt the hair of trying to link an X program!
8566 for ac_extension in a so sl; do
8567 if test -r $ac_dir/libXt.$ac_extension; then
8568 ac_x_libraries=$ac_dir
8569 break 2
8571 done
8572 done
8574 rm -f conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 fi # $ac_x_libraries = no
8578 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8579 # Didn't find X anywhere. Cache the known absence of X.
8580 ac_cv_have_x="have_x=no"
8581 else
8582 # Record where we found X for the cache.
8583 ac_cv_have_x="have_x=yes \
8584 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8589 eval "$ac_cv_have_x"
8590 fi # $with_x != no
8592 if test "$have_x" != yes; then
8593 echo "$as_me:$LINENO: result: $have_x" >&5
8594 echo "${ECHO_T}$have_x" >&6
8595 no_x=yes
8596 else
8597 # If each of the values was on the command line, it overrides each guess.
8598 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8599 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8600 # Update the cache value to reflect the command line values.
8601 ac_cv_have_x="have_x=yes \
8602 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8603 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8604 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8607 if test "$no_x" = yes; then
8608 window_system=none
8609 else
8610 window_system=x11
8613 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8614 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8615 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8616 x_default_search_path=""
8617 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8618 x_search_path="\
8619 ${x_library}/X11/%L/%T/%N%C%S:\
8620 ${x_library}/X11/%l/%T/%N%C%S:\
8621 ${x_library}/X11/%T/%N%C%S:\
8622 ${x_library}/X11/%L/%T/%N%S:\
8623 ${x_library}/X11/%l/%T/%N%S:\
8624 ${x_library}/X11/%T/%N%S"
8625 if test x"${x_default_search_path}" = x; then
8626 x_default_search_path=${x_search_path}
8627 else
8628 x_default_search_path="${x_search_path}:${x_default_search_path}"
8630 done
8632 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8633 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8636 if test x"${x_includes}" = x; then
8637 bitmapdir=/usr/include/X11/bitmaps
8638 else
8639 # accumulate include directories that have X11 bitmap subdirectories
8640 bmd_acc="dummyval"
8641 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8642 if test -d "${bmd}/X11/bitmaps"; then
8643 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8645 if test -d "${bmd}/bitmaps"; then
8646 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8648 done
8649 if test ${bmd_acc} != "dummyval"; then
8650 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8654 HAVE_CARBON=no
8655 if test "${with_carbon}" != no; then
8656 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8657 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8658 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8659 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8663 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8664 else
8665 # Is the header compilable?
8666 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8667 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #include <Carbon/Carbon.h>
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8679 (eval $ac_compile) 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest.$ac_objext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_header_compiler=yes
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_header_compiler=no
8706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8708 echo "${ECHO_T}$ac_header_compiler" >&6
8710 # Is the header present?
8711 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8712 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <Carbon/Carbon.h>
8720 _ACEOF
8721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } >/dev/null; then
8729 if test -s conftest.err; then
8730 ac_cpp_err=$ac_c_preproc_warn_flag
8731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8732 else
8733 ac_cpp_err=
8735 else
8736 ac_cpp_err=yes
8738 if test -z "$ac_cpp_err"; then
8739 ac_header_preproc=yes
8740 else
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_header_preproc=no
8746 rm -f conftest.err conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 echo "${ECHO_T}$ac_header_preproc" >&6
8750 # So? What about this header?
8751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8752 yes:no: )
8753 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8754 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8756 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8757 ac_header_preproc=yes
8759 no:yes:* )
8760 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8761 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8763 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8765 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8767 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8769 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8771 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8773 cat <<\_ASBOX
8774 ## ------------------------------------------ ##
8775 ## Report this to the AC_PACKAGE_NAME lists. ##
8776 ## ------------------------------------------ ##
8777 _ASBOX
8779 sed "s/^/$as_me: WARNING: /" >&2
8781 esac
8782 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8783 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8784 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8789 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8790 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8793 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8794 HAVE_CARBON=yes
8799 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8800 if test "${with_carbon+set}" != set \
8801 && test "${carbon_appdir_x+set}" != set; then
8802 HAVE_CARBON=no
8805 if test "${HAVE_CARBON}" = yes; then
8806 window_system=mac
8809 case "${window_system}" in
8810 x11 )
8811 HAVE_X_WINDOWS=yes
8812 HAVE_X11=yes
8813 case "${with_x_toolkit}" in
8814 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8815 motif ) USE_X_TOOLKIT=MOTIF ;;
8816 gtk ) with_gtk=yes
8817 USE_X_TOOLKIT=none ;;
8818 no ) USE_X_TOOLKIT=none ;;
8819 * ) USE_X_TOOLKIT=maybe ;;
8820 esac
8822 mac | none )
8823 HAVE_X_WINDOWS=no
8824 HAVE_X11=no
8825 USE_X_TOOLKIT=none
8827 esac
8829 ### If we're using X11, we should use the X menu package.
8830 HAVE_MENUS=no
8831 case ${HAVE_X11} in
8832 yes ) HAVE_MENUS=yes ;;
8833 esac
8835 if test "${opsys}" = "hpux9"; then
8836 case "${x_libraries}" in
8837 *X11R4* )
8838 opsysfile="s/hpux9-x11r4.h"
8840 esac
8843 if test "${opsys}" = "hpux9shr"; then
8844 case "${x_libraries}" in
8845 *X11R4* )
8846 opsysfile="s/hpux9shxr4.h"
8848 esac
8851 ### Compute the unexec source name from the object name.
8852 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8854 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8855 # Assume not, until told otherwise.
8856 GNU_MALLOC=yes
8857 doug_lea_malloc=yes
8858 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8859 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8860 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8871 #define malloc_get_state innocuous_malloc_get_state
8873 /* System header to define __stub macros and hopefully few prototypes,
8874 which can conflict with char malloc_get_state (); below.
8875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876 <limits.h> exists even on freestanding compilers. */
8878 #ifdef __STDC__
8879 # include <limits.h>
8880 #else
8881 # include <assert.h>
8882 #endif
8884 #undef malloc_get_state
8886 /* Override any gcc2 internal prototype to avoid an error. */
8887 #ifdef __cplusplus
8888 extern "C"
8890 #endif
8891 /* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893 char malloc_get_state ();
8894 /* The GNU C library defines this for functions which it implements
8895 to always fail with ENOSYS. Some functions are actually named
8896 something starting with __ and the normal name is an alias. */
8897 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8898 choke me
8899 #else
8900 char (*f) () = malloc_get_state;
8901 #endif
8902 #ifdef __cplusplus
8904 #endif
8907 main ()
8909 return f != malloc_get_state;
8911 return 0;
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_func_malloc_get_state=yes
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_func_malloc_get_state=no
8943 rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8947 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8948 if test $ac_cv_func_malloc_get_state = yes; then
8950 else
8951 doug_lea_malloc=no
8954 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8955 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8956 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8967 #define malloc_set_state innocuous_malloc_set_state
8969 /* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char malloc_set_state (); below.
8971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8972 <limits.h> exists even on freestanding compilers. */
8974 #ifdef __STDC__
8975 # include <limits.h>
8976 #else
8977 # include <assert.h>
8978 #endif
8980 #undef malloc_set_state
8982 /* Override any gcc2 internal prototype to avoid an error. */
8983 #ifdef __cplusplus
8984 extern "C"
8986 #endif
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8989 char malloc_set_state ();
8990 /* The GNU C library defines this for functions which it implements
8991 to always fail with ENOSYS. Some functions are actually named
8992 something starting with __ and the normal name is an alias. */
8993 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8994 choke me
8995 #else
8996 char (*f) () = malloc_set_state;
8997 #endif
8998 #ifdef __cplusplus
9000 #endif
9003 main ()
9005 return f != malloc_set_state;
9007 return 0;
9009 _ACEOF
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_func_malloc_set_state=yes
9033 else
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9037 ac_cv_func_malloc_set_state=no
9039 rm -f conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9042 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9043 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9044 if test $ac_cv_func_malloc_set_state = yes; then
9046 else
9047 doug_lea_malloc=no
9050 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9051 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9052 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h. */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 extern void (* __after_morecore_hook)();
9063 main ()
9065 __after_morecore_hook = 0
9067 return 0;
9069 _ACEOF
9070 rm -f conftest.$ac_objext conftest$ac_exeext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9072 (eval $ac_link) 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest$ac_exeext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 emacs_cv_var___after_morecore_hook=yes
9093 else
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 emacs_cv_var___after_morecore_hook=no
9099 rm -f conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9102 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9103 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9104 if test $emacs_cv_var___after_morecore_hook = no; then
9105 doug_lea_malloc=no
9107 if test "${system_malloc}" = "yes"; then
9108 GNU_MALLOC=no
9109 GNU_MALLOC_reason="
9110 (The GNU allocators don't work with this system configuration.)"
9112 if test "$doug_lea_malloc" = "yes" ; then
9113 if test "$GNU_MALLOC" = yes ; then
9114 GNU_MALLOC_reason="
9115 (Using Doug Lea's new malloc from the GNU C Library.)"
9118 cat >>confdefs.h <<\_ACEOF
9119 #define DOUG_LEA_MALLOC 1
9120 _ACEOF
9124 if test x"${REL_ALLOC}" = x; then
9125 REL_ALLOC=${GNU_MALLOC}
9131 for ac_header in stdlib.h unistd.h
9133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9135 echo "$as_me:$LINENO: checking for $ac_header" >&5
9136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9142 else
9143 # Is the header compilable?
9144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 $ac_includes_default
9153 #include <$ac_header>
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_header_compiler=yes
9178 else
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_compiler=no
9184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186 echo "${ECHO_T}$ac_header_compiler" >&6
9188 # Is the header present?
9189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h. */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 #include <$ac_header>
9198 _ACEOF
9199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev/null; then
9207 if test -s conftest.err; then
9208 ac_cpp_err=$ac_c_preproc_warn_flag
9209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9210 else
9211 ac_cpp_err=
9213 else
9214 ac_cpp_err=yes
9216 if test -z "$ac_cpp_err"; then
9217 ac_header_preproc=yes
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_header_preproc=no
9224 rm -f conftest.err conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9226 echo "${ECHO_T}$ac_header_preproc" >&6
9228 # So? What about this header?
9229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9230 yes:no: )
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9235 ac_header_preproc=yes
9237 no:yes:* )
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9251 cat <<\_ASBOX
9252 ## ------------------------------------------ ##
9253 ## Report this to the AC_PACKAGE_NAME lists. ##
9254 ## ------------------------------------------ ##
9255 _ASBOX
9257 sed "s/^/$as_me: WARNING: /" >&2
9259 esac
9260 echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265 eval "$as_ac_Header=\$ac_header_preproc"
9267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9274 _ACEOF
9278 done
9281 for ac_func in getpagesize
9283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9284 echo "$as_me:$LINENO: checking for $ac_func" >&5
9285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9286 if eval "test \"\${$as_ac_var+set}\" = set"; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h. */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9297 #define $ac_func innocuous_$ac_func
9299 /* System header to define __stub macros and hopefully few prototypes,
9300 which can conflict with char $ac_func (); below.
9301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9302 <limits.h> exists even on freestanding compilers. */
9304 #ifdef __STDC__
9305 # include <limits.h>
9306 #else
9307 # include <assert.h>
9308 #endif
9310 #undef $ac_func
9312 /* Override any gcc2 internal prototype to avoid an error. */
9313 #ifdef __cplusplus
9314 extern "C"
9316 #endif
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9319 char $ac_func ();
9320 /* The GNU C library defines this for functions which it implements
9321 to always fail with ENOSYS. Some functions are actually named
9322 something starting with __ and the normal name is an alias. */
9323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9324 choke me
9325 #else
9326 char (*f) () = $ac_func;
9327 #endif
9328 #ifdef __cplusplus
9330 #endif
9333 main ()
9335 return f != $ac_func;
9337 return 0;
9339 _ACEOF
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9342 (eval $ac_link) 2>conftest.er1
9343 ac_status=$?
9344 grep -v '^ *+' conftest.er1 >conftest.err
9345 rm -f conftest.er1
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -z "$ac_c_werror_flag"
9350 || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try='test -s conftest$ac_exeext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 eval "$as_ac_var=yes"
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 eval "$as_ac_var=no"
9369 rm -f conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9374 if test `eval echo '${'$as_ac_var'}'` = yes; then
9375 cat >>confdefs.h <<_ACEOF
9376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9377 _ACEOF
9380 done
9382 echo "$as_me:$LINENO: checking for working mmap" >&5
9383 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9384 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387 if test "$cross_compiling" = yes; then
9388 ac_cv_func_mmap_fixed_mapped=no
9389 else
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 /* malloc might have been renamed as rpl_malloc. */
9398 #undef malloc
9400 /* Thanks to Mike Haertel and Jim Avera for this test.
9401 Here is a matrix of mmap possibilities:
9402 mmap private not fixed
9403 mmap private fixed at somewhere currently unmapped
9404 mmap private fixed at somewhere already mapped
9405 mmap shared not fixed
9406 mmap shared fixed at somewhere currently unmapped
9407 mmap shared fixed at somewhere already mapped
9408 For private mappings, we should verify that changes cannot be read()
9409 back from the file, nor mmap's back from the file at a different
9410 address. (There have been systems where private was not correctly
9411 implemented like the infamous i386 svr4.0, and systems where the
9412 VM page cache was not coherent with the file system buffer cache
9413 like early versions of FreeBSD and possibly contemporary NetBSD.)
9414 For shared mappings, we should conversely verify that changes get
9415 propagated back to all the places they're supposed to be.
9417 Grep wants private fixed already mapped.
9418 The main things grep needs to know about mmap are:
9419 * does it exist and is it safe to write into the mmap'd area
9420 * how to use it (BSD variants) */
9422 #include <fcntl.h>
9423 #include <sys/mman.h>
9425 #if !STDC_HEADERS && !HAVE_STDLIB_H
9426 char *malloc ();
9427 #endif
9429 /* This mess was copied from the GNU getpagesize.h. */
9430 #if !HAVE_GETPAGESIZE
9431 /* Assume that all systems that can run configure have sys/param.h. */
9432 # if !HAVE_SYS_PARAM_H
9433 # define HAVE_SYS_PARAM_H 1
9434 # endif
9436 # ifdef _SC_PAGESIZE
9437 # define getpagesize() sysconf(_SC_PAGESIZE)
9438 # else /* no _SC_PAGESIZE */
9439 # if HAVE_SYS_PARAM_H
9440 # include <sys/param.h>
9441 # ifdef EXEC_PAGESIZE
9442 # define getpagesize() EXEC_PAGESIZE
9443 # else /* no EXEC_PAGESIZE */
9444 # ifdef NBPG
9445 # define getpagesize() NBPG * CLSIZE
9446 # ifndef CLSIZE
9447 # define CLSIZE 1
9448 # endif /* no CLSIZE */
9449 # else /* no NBPG */
9450 # ifdef NBPC
9451 # define getpagesize() NBPC
9452 # else /* no NBPC */
9453 # ifdef PAGESIZE
9454 # define getpagesize() PAGESIZE
9455 # endif /* PAGESIZE */
9456 # endif /* no NBPC */
9457 # endif /* no NBPG */
9458 # endif /* no EXEC_PAGESIZE */
9459 # else /* no HAVE_SYS_PARAM_H */
9460 # define getpagesize() 8192 /* punt totally */
9461 # endif /* no HAVE_SYS_PARAM_H */
9462 # endif /* no _SC_PAGESIZE */
9464 #endif /* no HAVE_GETPAGESIZE */
9467 main ()
9469 char *data, *data2, *data3;
9470 int i, pagesize;
9471 int fd;
9473 pagesize = getpagesize ();
9475 /* First, make a file with some known garbage in it. */
9476 data = (char *) malloc (pagesize);
9477 if (!data)
9478 exit (1);
9479 for (i = 0; i < pagesize; ++i)
9480 *(data + i) = rand ();
9481 umask (0);
9482 fd = creat ("conftest.mmap", 0600);
9483 if (fd < 0)
9484 exit (1);
9485 if (write (fd, data, pagesize) != pagesize)
9486 exit (1);
9487 close (fd);
9489 /* Next, try to mmap the file at a fixed address which already has
9490 something else allocated at it. If we can, also make sure that
9491 we see the same garbage. */
9492 fd = open ("conftest.mmap", O_RDWR);
9493 if (fd < 0)
9494 exit (1);
9495 data2 = (char *) malloc (2 * pagesize);
9496 if (!data2)
9497 exit (1);
9498 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9499 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9500 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9501 exit (1);
9502 for (i = 0; i < pagesize; ++i)
9503 if (*(data + i) != *(data2 + i))
9504 exit (1);
9506 /* Finally, make sure that changes to the mapped area do not
9507 percolate back to the file as seen by read(). (This is a bug on
9508 some variants of i386 svr4.0.) */
9509 for (i = 0; i < pagesize; ++i)
9510 *(data2 + i) = *(data2 + i) + 1;
9511 data3 = (char *) malloc (pagesize);
9512 if (!data3)
9513 exit (1);
9514 if (read (fd, data3, pagesize) != pagesize)
9515 exit (1);
9516 for (i = 0; i < pagesize; ++i)
9517 if (*(data + i) != *(data3 + i))
9518 exit (1);
9519 close (fd);
9520 exit (0);
9522 _ACEOF
9523 rm -f conftest$ac_exeext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_func_mmap_fixed_mapped=yes
9535 else
9536 echo "$as_me: program exited with status $ac_status" >&5
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ( exit $ac_status )
9541 ac_cv_func_mmap_fixed_mapped=no
9543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9546 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9547 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9548 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9550 cat >>confdefs.h <<\_ACEOF
9551 #define HAVE_MMAP 1
9552 _ACEOF
9555 rm -f conftest.mmap
9557 if test $use_mmap_for_buffers = yes; then
9558 REL_ALLOC=no
9561 LIBS="$libsrc_libs $LIBS"
9564 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9565 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9566 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569 ac_check_lib_save_LIBS=$LIBS
9570 LIBS="-ldnet $LIBS"
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9578 /* Override any gcc2 internal prototype to avoid an error. */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9584 char dnet_ntoa ();
9586 main ()
9588 dnet_ntoa ();
9590 return 0;
9592 _ACEOF
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9595 (eval $ac_link) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_lib_dnet_dnet_ntoa=yes
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 ac_cv_lib_dnet_dnet_ntoa=no
9622 rm -f conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9626 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9628 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9629 cat >>confdefs.h <<_ACEOF
9630 #define HAVE_LIBDNET 1
9631 _ACEOF
9633 LIBS="-ldnet $LIBS"
9638 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9639 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9640 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 ac_check_lib_save_LIBS=$LIBS
9644 LIBS="-lXbsd $LIBS"
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9654 main ()
9656 main ();
9658 return 0;
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_lib_Xbsd_main=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_lib_Xbsd_main=no
9690 rm -f conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9694 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9695 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9696 if test $ac_cv_lib_Xbsd_main = yes; then
9697 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9702 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9703 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9704 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 ac_check_lib_save_LIBS=$LIBS
9708 LIBS="-lpthreads $LIBS"
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9716 /* Override any gcc2 internal prototype to avoid an error. */
9717 #ifdef __cplusplus
9718 extern "C"
9719 #endif
9720 /* We use char because int might match the return type of a gcc2
9721 builtin and then its argument prototype would still apply. */
9722 char cma_open ();
9724 main ()
9726 cma_open ();
9728 return 0;
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_lib_pthreads_cma_open=yes
9754 else
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_lib_pthreads_cma_open=no
9760 rm -f conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9764 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9765 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9766 if test $ac_cv_lib_pthreads_cma_open = yes; then
9767 cat >>confdefs.h <<_ACEOF
9768 #define HAVE_LIBPTHREADS 1
9769 _ACEOF
9771 LIBS="-lpthreads $LIBS"
9776 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9777 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9778 if test -d /usr/X386/include; then
9779 HAVE_XFREE386=yes
9780 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9781 else
9782 HAVE_XFREE386=no
9784 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9785 echo "${ECHO_T}$HAVE_XFREE386" >&6
9788 case ${host_os} in
9789 aix*)
9790 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9791 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9792 if test "${gdb_cv_bigtoc+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9796 case $GCC in
9797 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9798 *) gdb_cv_bigtoc=-bbigtoc ;;
9799 esac
9801 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9810 main ()
9812 int i;
9814 return 0;
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9840 else
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 gdb_cv_bigtoc=
9846 rm -f conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9850 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9851 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9853 esac
9855 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9856 # used for the tests that follow. We set them back to REAL_CFLAGS and
9857 # REAL_CPPFLAGS later on.
9859 REAL_CPPFLAGS="$CPPFLAGS"
9861 if test "${HAVE_X11}" = "yes"; then
9862 DEFS="$C_SWITCH_X_SITE $DEFS"
9863 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9864 LIBS="$LIBX $LIBS"
9865 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9866 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9868 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9869 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9870 # but it's more convenient here to set LD_RUN_PATH
9871 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9872 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9873 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9874 export LD_RUN_PATH
9877 if test "${opsys}" = "gnu-linux"; then
9878 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9879 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9888 main ()
9890 XOpenDisplay ("foo");
9892 return 0;
9894 _ACEOF
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_c_werror_flag"
9905 || test ! -s conftest.err'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 xlinux_first_failure=no
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 xlinux_first_failure=yes
9924 rm -f conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 if test "${xlinux_first_failure}" = "yes"; then
9927 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9928 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9929 OLD_CPPFLAGS="$CPPFLAGS"
9930 OLD_LIBS="$LIBS"
9931 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9932 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9933 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9934 LIBS="$LIBS -b i486-linuxaout"
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h. */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9943 main ()
9945 XOpenDisplay ("foo");
9947 return 0;
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 xlinux_second_failure=no
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 xlinux_second_failure=yes
9979 rm -f conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 if test "${xlinux_second_failure}" = "yes"; then
9982 # If we get the same failure with -b, there is no use adding -b.
9983 # So take it out. This plays safe.
9984 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9985 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9986 CPPFLAGS="$OLD_CPPFLAGS"
9987 LIBS="$OLD_LIBS"
9988 echo "$as_me:$LINENO: result: no" >&5
9989 echo "${ECHO_T}no" >&6
9990 else
9991 echo "$as_me:$LINENO: result: yes" >&5
9992 echo "${ECHO_T}yes" >&6
9994 else
9995 echo "$as_me:$LINENO: result: no" >&5
9996 echo "${ECHO_T}no" >&6
10000 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10001 # header files included from there.
10002 echo "$as_me:$LINENO: checking for Xkb" >&5
10003 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <X11/Xlib.h>
10011 #include <X11/XKBlib.h>
10013 main ()
10015 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10017 return 0;
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 emacs_xkb=yes
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 emacs_xkb=no
10049 rm -f conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10052 echo "${ECHO_T}$emacs_xkb" >&6
10053 if test $emacs_xkb = yes; then
10055 cat >>confdefs.h <<\_ACEOF
10056 #define HAVE_XKBGETKEYBOARD 1
10057 _ACEOF
10065 for ac_func in XrmSetDatabase XScreenResourceString \
10066 XScreenNumberOfScreen XSetWMProtocols
10068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10069 echo "$as_me:$LINENO: checking for $ac_func" >&5
10070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10071 if eval "test \"\${$as_ac_var+set}\" = set"; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10082 #define $ac_func innocuous_$ac_func
10084 /* System header to define __stub macros and hopefully few prototypes,
10085 which can conflict with char $ac_func (); below.
10086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10087 <limits.h> exists even on freestanding compilers. */
10089 #ifdef __STDC__
10090 # include <limits.h>
10091 #else
10092 # include <assert.h>
10093 #endif
10095 #undef $ac_func
10097 /* Override any gcc2 internal prototype to avoid an error. */
10098 #ifdef __cplusplus
10099 extern "C"
10101 #endif
10102 /* We use char because int might match the return type of a gcc2
10103 builtin and then its argument prototype would still apply. */
10104 char $ac_func ();
10105 /* The GNU C library defines this for functions which it implements
10106 to always fail with ENOSYS. Some functions are actually named
10107 something starting with __ and the normal name is an alias. */
10108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10109 choke me
10110 #else
10111 char (*f) () = $ac_func;
10112 #endif
10113 #ifdef __cplusplus
10115 #endif
10118 main ()
10120 return f != $ac_func;
10122 return 0;
10124 _ACEOF
10125 rm -f conftest.$ac_objext conftest$ac_exeext
10126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10127 (eval $ac_link) 2>conftest.er1
10128 ac_status=$?
10129 grep -v '^ *+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try='test -z "$ac_c_werror_flag"
10135 || test ! -s conftest.err'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; } &&
10141 { ac_try='test -s conftest$ac_exeext'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 eval "$as_ac_var=yes"
10148 else
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 eval "$as_ac_var=no"
10154 rm -f conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10159 if test `eval echo '${'$as_ac_var'}'` = yes; then
10160 cat >>confdefs.h <<_ACEOF
10161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10162 _ACEOF
10165 done
10169 if test "${window_system}" = "x11"; then
10170 echo "$as_me:$LINENO: checking X11 version 6" >&5
10171 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10172 if test "${emacs_cv_x11_version_6+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h. */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <X11/Xlib.h>
10183 main ()
10185 #if XlibSpecificationRelease < 6
10186 fail;
10187 #endif
10190 return 0;
10192 _ACEOF
10193 rm -f conftest.$ac_objext conftest$ac_exeext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10195 (eval $ac_link) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag"
10203 || test ! -s conftest.err'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try='test -s conftest$ac_exeext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 emacs_cv_x11_version_6=yes
10216 else
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 emacs_cv_x11_version_6=no
10222 rm -f conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10226 if test $emacs_cv_x11_version_6 = yes; then
10227 echo "$as_me:$LINENO: result: 6 or newer" >&5
10228 echo "${ECHO_T}6 or newer" >&6
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_X11R6 1
10232 _ACEOF
10234 else
10235 echo "$as_me:$LINENO: result: before 6" >&5
10236 echo "${ECHO_T}before 6" >&6
10240 if test "${window_system}" = "x11"; then
10241 echo "$as_me:$LINENO: checking X11 version 5" >&5
10242 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10243 if test "${emacs_cv_x11_version_5+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <X11/Xlib.h>
10254 main ()
10256 #if XlibSpecificationRelease < 5
10257 fail;
10258 #endif
10261 return 0;
10263 _ACEOF
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -z "$ac_c_werror_flag"
10274 || test ! -s conftest.err'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; } &&
10280 { ac_try='test -s conftest$ac_exeext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 emacs_cv_x11_version_5=yes
10287 else
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10291 emacs_cv_x11_version_5=no
10293 rm -f conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10297 if test $emacs_cv_x11_version_5 = yes; then
10298 echo "$as_me:$LINENO: result: 5 or newer" >&5
10299 echo "${ECHO_T}5 or newer" >&6
10300 HAVE_X11R5=yes
10302 cat >>confdefs.h <<\_ACEOF
10303 #define HAVE_X11R5 1
10304 _ACEOF
10306 else
10307 HAVE_X11R5=no
10308 echo "$as_me:$LINENO: result: before 5" >&5
10309 echo "${ECHO_T}before 5" >&6
10313 HAVE_GTK=no
10314 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10315 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10316 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10317 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10318 { (exit 1); exit 1; }; };
10320 GLIB_REQUIRED=2.4
10321 GTK_REQUIRED=2.4
10322 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10324 if test "X${with_pkg_config_prog}" != X; then
10325 PKG_CONFIG="${with_pkg_config_prog}"
10328 succeeded=no
10330 if test -z "$PKG_CONFIG"; then
10331 # Extract the first word of "pkg-config", so it can be a program name with args.
10332 set dummy pkg-config; ac_word=$2
10333 echo "$as_me:$LINENO: checking for $ac_word" >&5
10334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10335 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 case $PKG_CONFIG in
10339 [\\/]* | ?:[\\/]*)
10340 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10346 IFS=$as_save_IFS
10347 test -z "$as_dir" && as_dir=.
10348 for ac_exec_ext in '' $ac_executable_extensions; do
10349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10350 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 break 2
10354 done
10355 done
10357 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10359 esac
10361 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10363 if test -n "$PKG_CONFIG"; then
10364 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10365 echo "${ECHO_T}$PKG_CONFIG" >&6
10366 else
10367 echo "$as_me:$LINENO: result: no" >&5
10368 echo "${ECHO_T}no" >&6
10373 if test "$PKG_CONFIG" = "no" ; then
10374 { { echo "$as_me:$LINENO: error:
10375 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10376 echo "$as_me: error:
10377 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10378 { (exit 1); exit 1; }; }
10379 else
10380 PKG_CONFIG_MIN_VERSION=0.9.0
10381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10382 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10383 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10385 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10386 echo "$as_me:$LINENO: result: yes" >&5
10387 echo "${ECHO_T}yes" >&6
10388 succeeded=yes
10390 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10391 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10392 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10393 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10394 echo "${ECHO_T}$GTK_CFLAGS" >&6
10396 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10397 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10398 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10399 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10400 echo "${ECHO_T}$GTK_LIBS" >&6
10401 else
10402 echo "$as_me:$LINENO: result: no" >&5
10403 echo "${ECHO_T}no" >&6
10404 GTK_CFLAGS=""
10405 GTK_LIBS=""
10406 ## If we have a custom action on failure, don't print errors, but
10407 ## do set a variable so people can do so.
10408 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10409 echo $GTK_PKG_ERRORS
10414 else
10415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10420 if test $succeeded = yes; then
10422 else
10423 { { 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
10424 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;}
10425 { (exit 1); exit 1; }; }
10430 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10431 CFLAGS="$CFLAGS $GTK_CFLAGS"
10432 LIBS="$GTK_LIBS $LIBS"
10433 HAVE_GTK=yes
10435 cat >>confdefs.h <<\_ACEOF
10436 #define HAVE_GTK 1
10437 _ACEOF
10439 USE_X_TOOLKIT=none
10441 if test "$with_toolkit_scroll_bars" != no; then
10442 with_toolkit_scroll_bars=yes
10445 HAVE_GTK_MULTIDISPLAY=no
10447 for ac_func in gdk_display_open
10449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10450 echo "$as_me:$LINENO: checking for $ac_func" >&5
10451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10452 if eval "test \"\${$as_ac_var+set}\" = set"; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10463 #define $ac_func innocuous_$ac_func
10465 /* System header to define __stub macros and hopefully few prototypes,
10466 which can conflict with char $ac_func (); below.
10467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10468 <limits.h> exists even on freestanding compilers. */
10470 #ifdef __STDC__
10471 # include <limits.h>
10472 #else
10473 # include <assert.h>
10474 #endif
10476 #undef $ac_func
10478 /* Override any gcc2 internal prototype to avoid an error. */
10479 #ifdef __cplusplus
10480 extern "C"
10482 #endif
10483 /* We use char because int might match the return type of a gcc2
10484 builtin and then its argument prototype would still apply. */
10485 char $ac_func ();
10486 /* The GNU C library defines this for functions which it implements
10487 to always fail with ENOSYS. Some functions are actually named
10488 something starting with __ and the normal name is an alias. */
10489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10490 choke me
10491 #else
10492 char (*f) () = $ac_func;
10493 #endif
10494 #ifdef __cplusplus
10496 #endif
10499 main ()
10501 return f != $ac_func;
10503 return 0;
10505 _ACEOF
10506 rm -f conftest.$ac_objext conftest$ac_exeext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -z "$ac_c_werror_flag"
10516 || test ! -s conftest.err'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; } &&
10522 { ac_try='test -s conftest$ac_exeext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 eval "$as_ac_var=yes"
10529 else
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 eval "$as_ac_var=no"
10535 rm -f conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10540 if test `eval echo '${'$as_ac_var'}'` = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10543 _ACEOF
10544 HAVE_GTK_MULTIDISPLAY=yes
10546 done
10548 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10550 cat >>confdefs.h <<\_ACEOF
10551 #define HAVE_GTK_MULTIDISPLAY 1
10552 _ACEOF
10555 HAVE_GTK_FILE_SELECTION=no
10557 for ac_func in gtk_file_selection_new
10559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10560 echo "$as_me:$LINENO: checking for $ac_func" >&5
10561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10562 if eval "test \"\${$as_ac_var+set}\" = set"; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h. */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10573 #define $ac_func innocuous_$ac_func
10575 /* System header to define __stub macros and hopefully few prototypes,
10576 which can conflict with char $ac_func (); below.
10577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10578 <limits.h> exists even on freestanding compilers. */
10580 #ifdef __STDC__
10581 # include <limits.h>
10582 #else
10583 # include <assert.h>
10584 #endif
10586 #undef $ac_func
10588 /* Override any gcc2 internal prototype to avoid an error. */
10589 #ifdef __cplusplus
10590 extern "C"
10592 #endif
10593 /* We use char because int might match the return type of a gcc2
10594 builtin and then its argument prototype would still apply. */
10595 char $ac_func ();
10596 /* The GNU C library defines this for functions which it implements
10597 to always fail with ENOSYS. Some functions are actually named
10598 something starting with __ and the normal name is an alias. */
10599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10600 choke me
10601 #else
10602 char (*f) () = $ac_func;
10603 #endif
10604 #ifdef __cplusplus
10606 #endif
10609 main ()
10611 return f != $ac_func;
10613 return 0;
10615 _ACEOF
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>conftest.er1
10619 ac_status=$?
10620 grep -v '^ *+' conftest.er1 >conftest.err
10621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -z "$ac_c_werror_flag"
10626 || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try='test -s conftest$ac_exeext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 eval "$as_ac_var=yes"
10639 else
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 eval "$as_ac_var=no"
10645 rm -f conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10650 if test `eval echo '${'$as_ac_var'}'` = yes; then
10651 cat >>confdefs.h <<_ACEOF
10652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10653 _ACEOF
10654 HAVE_GTK_FILE_SELECTION=yes
10656 done
10659 HAVE_GTK_FILE_CHOOSER=no
10661 for ac_func in gtk_file_chooser_dialog_new
10663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10664 echo "$as_me:$LINENO: checking for $ac_func" >&5
10665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10666 if eval "test \"\${$as_ac_var+set}\" = set"; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h. */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10677 #define $ac_func innocuous_$ac_func
10679 /* System header to define __stub macros and hopefully few prototypes,
10680 which can conflict with char $ac_func (); below.
10681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10682 <limits.h> exists even on freestanding compilers. */
10684 #ifdef __STDC__
10685 # include <limits.h>
10686 #else
10687 # include <assert.h>
10688 #endif
10690 #undef $ac_func
10692 /* Override any gcc2 internal prototype to avoid an error. */
10693 #ifdef __cplusplus
10694 extern "C"
10696 #endif
10697 /* We use char because int might match the return type of a gcc2
10698 builtin and then its argument prototype would still apply. */
10699 char $ac_func ();
10700 /* The GNU C library defines this for functions which it implements
10701 to always fail with ENOSYS. Some functions are actually named
10702 something starting with __ and the normal name is an alias. */
10703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10704 choke me
10705 #else
10706 char (*f) () = $ac_func;
10707 #endif
10708 #ifdef __cplusplus
10710 #endif
10713 main ()
10715 return f != $ac_func;
10717 return 0;
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>conftest.er1
10723 ac_status=$?
10724 grep -v '^ *+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -z "$ac_c_werror_flag"
10730 || test ! -s conftest.err'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 eval "$as_ac_var=yes"
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 eval "$as_ac_var=no"
10749 rm -f conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10754 if test `eval echo '${'$as_ac_var'}'` = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10757 _ACEOF
10758 HAVE_GTK_FILE_CHOOSER=yes
10760 done
10763 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10764 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10766 cat >>confdefs.h <<\_ACEOF
10767 #define HAVE_GTK_FILE_BOTH 1
10768 _ACEOF
10772 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10773 HAVE_GTK_AND_PTHREAD=no
10775 for ac_header in pthread.h
10777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10779 echo "$as_me:$LINENO: checking for $ac_header" >&5
10780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10786 else
10787 # Is the header compilable?
10788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10790 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h. */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 $ac_includes_default
10797 #include <$ac_header>
10798 _ACEOF
10799 rm -f conftest.$ac_objext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10801 (eval $ac_compile) 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -z "$ac_c_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest.$ac_objext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_header_compiler=yes
10822 else
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ac_header_compiler=no
10828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10830 echo "${ECHO_T}$ac_header_compiler" >&6
10832 # Is the header present?
10833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10835 cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h. */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841 #include <$ac_header>
10842 _ACEOF
10843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } >/dev/null; then
10851 if test -s conftest.err; then
10852 ac_cpp_err=$ac_c_preproc_warn_flag
10853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10854 else
10855 ac_cpp_err=
10857 else
10858 ac_cpp_err=yes
10860 if test -z "$ac_cpp_err"; then
10861 ac_header_preproc=yes
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_preproc=no
10868 rm -f conftest.err conftest.$ac_ext
10869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10870 echo "${ECHO_T}$ac_header_preproc" >&6
10872 # So? What about this header?
10873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10874 yes:no: )
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10879 ac_header_preproc=yes
10881 no:yes:* )
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10895 cat <<\_ASBOX
10896 ## ------------------------------------------ ##
10897 ## Report this to the AC_PACKAGE_NAME lists. ##
10898 ## ------------------------------------------ ##
10899 _ASBOX
10901 sed "s/^/$as_me: WARNING: /" >&2
10903 esac
10904 echo "$as_me:$LINENO: checking for $ac_header" >&5
10905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 eval "$as_ac_Header=\$ac_header_preproc"
10911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10916 cat >>confdefs.h <<_ACEOF
10917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10918 _ACEOF
10922 done
10924 if test "$ac_cv_header_pthread_h"; then
10925 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10926 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10927 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930 ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-lpthread $LIBS"
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h. */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10939 /* Override any gcc2 internal prototype to avoid an error. */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 /* We use char because int might match the return type of a gcc2
10944 builtin and then its argument prototype would still apply. */
10945 char pthread_self ();
10947 main ()
10949 pthread_self ();
10951 return 0;
10953 _ACEOF
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956 (eval $ac_link) 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -z "$ac_c_werror_flag"
10964 || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest$ac_exeext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_lib_pthread_pthread_self=yes
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_cv_lib_pthread_pthread_self=no
10983 rm -f conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10987 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10988 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10989 if test $ac_cv_lib_pthread_pthread_self = yes; then
10990 HAVE_GTK_AND_PTHREAD=yes
10994 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10995 GTK_LIBS="$GTK_LIBS -lpthread"
10997 cat >>confdefs.h <<\_ACEOF
10998 #define HAVE_GTK_AND_PTHREAD 1
10999 _ACEOF
11005 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11006 if test x"${HAVE_X11R5}" = xyes; then
11007 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11008 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11009 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012 cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11019 #include <X11/Intrinsic.h>
11020 #include <X11/Xaw/Simple.h>
11022 main ()
11026 return 0;
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -z "$ac_c_werror_flag"
11039 || test ! -s conftest.err'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 emacs_cv_x11_version_5_with_xaw=yes
11052 else
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 emacs_cv_x11_version_5_with_xaw=no
11058 rm -f conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11062 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11063 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11064 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11065 USE_X_TOOLKIT=LUCID
11066 else
11067 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11068 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11069 USE_X_TOOLKIT=none
11071 else
11072 USE_X_TOOLKIT=none
11076 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11078 if test "${USE_X_TOOLKIT}" != "none"; then
11079 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11080 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11081 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 #include <X11/Intrinsic.h>
11092 main ()
11094 #if XtSpecificationRelease < 6
11095 fail;
11096 #endif
11099 return 0;
11101 _ACEOF
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 emacs_cv_x11_toolkit_version_6=yes
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 emacs_cv_x11_toolkit_version_6=no
11131 rm -f conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11135 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11136 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11137 echo "$as_me:$LINENO: result: 6 or newer" >&5
11138 echo "${ECHO_T}6 or newer" >&6
11140 cat >>confdefs.h <<\_ACEOF
11141 #define HAVE_X11XTR6 1
11142 _ACEOF
11144 else
11145 echo "$as_me:$LINENO: result: before 6" >&5
11146 echo "${ECHO_T}before 6" >&6
11149 OLDLIBS="$LIBS"
11150 if test x$HAVE_X11XTR6 = xyes; then
11151 LIBS="-lXt -lSM -lICE $LIBS"
11152 else
11153 LIBS="-lXt $LIBS"
11156 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11157 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11158 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161 ac_check_lib_save_LIBS=$LIBS
11162 LIBS="-lXmu $LIBS"
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11170 /* Override any gcc2 internal prototype to avoid an error. */
11171 #ifdef __cplusplus
11172 extern "C"
11173 #endif
11174 /* We use char because int might match the return type of a gcc2
11175 builtin and then its argument prototype would still apply. */
11176 char XmuConvertStandardSelection ();
11178 main ()
11180 XmuConvertStandardSelection ();
11182 return 0;
11184 _ACEOF
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11214 rm -f conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11218 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11219 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11220 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11221 cat >>confdefs.h <<_ACEOF
11222 #define HAVE_LIBXMU 1
11223 _ACEOF
11225 LIBS="-lXmu $LIBS"
11229 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11232 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11233 if test "${HAVE_X11}" = "yes"; then
11234 if test "${USE_X_TOOLKIT}" != "none"; then
11236 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11237 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11238 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 ac_check_lib_save_LIBS=$LIBS
11242 LIBS="-lXext $LIBS"
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h. */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11250 /* Override any gcc2 internal prototype to avoid an error. */
11251 #ifdef __cplusplus
11252 extern "C"
11253 #endif
11254 /* We use char because int might match the return type of a gcc2
11255 builtin and then its argument prototype would still apply. */
11256 char XShapeQueryExtension ();
11258 main ()
11260 XShapeQueryExtension ();
11262 return 0;
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267 (eval $ac_link) 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -z "$ac_c_werror_flag"
11275 || test ! -s conftest.err'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try='test -s conftest$ac_exeext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 ac_cv_lib_Xext_XShapeQueryExtension=yes
11288 else
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 ac_cv_lib_Xext_XShapeQueryExtension=no
11294 rm -f conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11298 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11299 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11300 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11301 cat >>confdefs.h <<_ACEOF
11302 #define HAVE_LIBXEXT 1
11303 _ACEOF
11305 LIBS="-lXext $LIBS"
11312 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11313 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11314 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11315 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 #include <Xm/Xm.h>
11326 main ()
11328 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11329 int x = 5;
11330 #else
11331 Motif version prior to 2.1.
11332 #endif
11334 return 0;
11336 _ACEOF
11337 rm -f conftest.$ac_objext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339 (eval $ac_compile) 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
11346 { ac_try='test -z "$ac_c_werror_flag"
11347 || test ! -s conftest.err'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; } &&
11353 { ac_try='test -s conftest.$ac_objext'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 emacs_cv_motif_version_2_1=yes
11360 else
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 emacs_cv_motif_version_2_1=no
11366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11368 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11369 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11370 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11371 if test $emacs_cv_motif_version_2_1 = yes; then
11372 HAVE_LIBXP=no
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_MOTIF_2_1 1
11376 _ACEOF
11378 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11379 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11380 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-lXp $LIBS"
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11392 /* Override any gcc2 internal prototype to avoid an error. */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 /* We use char because int might match the return type of a gcc2
11397 builtin and then its argument prototype would still apply. */
11398 char XpCreateContext ();
11400 main ()
11402 XpCreateContext ();
11404 return 0;
11406 _ACEOF
11407 rm -f conftest.$ac_objext conftest$ac_exeext
11408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409 (eval $ac_link) 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -z "$ac_c_werror_flag"
11417 || test ! -s conftest.err'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; } &&
11423 { ac_try='test -s conftest$ac_exeext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 ac_cv_lib_Xp_XpCreateContext=yes
11430 else
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 ac_cv_lib_Xp_XpCreateContext=no
11436 rm -f conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438 LIBS=$ac_check_lib_save_LIBS
11440 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11441 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11442 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11443 HAVE_LIBXP=yes
11446 if test ${HAVE_LIBXP} = yes; then
11448 cat >>confdefs.h <<\_ACEOF
11449 #define HAVE_LIBXP 1
11450 _ACEOF
11453 else
11454 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11455 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11456 if test "${emacs_cv_lesstif+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459 # We put this in CFLAGS temporarily to precede other -I options
11460 # that might be in CFLAGS temporarily.
11461 # We put this in CPPFLAGS where it precedes the other -I options.
11462 OLD_CPPFLAGS=$CPPFLAGS
11463 OLD_CFLAGS=$CFLAGS
11464 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11465 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11474 main ()
11476 int x = 5;
11478 return 0;
11480 _ACEOF
11481 rm -f conftest.$ac_objext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11483 (eval $ac_compile) 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest.$ac_objext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 emacs_cv_lesstif=yes
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 emacs_cv_lesstif=no
11510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11513 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11514 if test $emacs_cv_lesstif = yes; then
11515 # Make sure this -I option remains in CPPFLAGS after it is set
11516 # back to REAL_CPPFLAGS.
11517 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11518 # have those other -I options anyway. Ultimately, having this
11519 # directory ultimately in CPPFLAGS will be enough.
11520 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11521 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11522 else
11523 CFLAGS=$OLD_CFLAGS
11524 CPPFLAGS=$OLD_CPPFLAGS
11529 ### Is -lXaw3d available?
11530 HAVE_XAW3D=no
11531 if test "${HAVE_X11}" = "yes"; then
11532 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11533 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11534 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11535 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 #include <X11/Xaw3d/Scrollbar.h>
11545 _ACEOF
11546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } >/dev/null; then
11554 if test -s conftest.err; then
11555 ac_cpp_err=$ac_c_preproc_warn_flag
11556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11557 else
11558 ac_cpp_err=
11560 else
11561 ac_cpp_err=yes
11563 if test -z "$ac_cpp_err"; then
11564 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11571 rm -f conftest.err conftest.$ac_ext
11573 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11574 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11575 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11576 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11577 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11578 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lXaw3d $LIBS"
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h. */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11590 /* Override any gcc2 internal prototype to avoid an error. */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11596 char XawScrollbarSetThumb ();
11598 main ()
11600 XawScrollbarSetThumb ();
11602 return 0;
11604 _ACEOF
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest$ac_exeext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11628 else
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11632 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11634 rm -f conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11638 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11639 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11640 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11641 HAVE_XAW3D=yes
11647 if test "${HAVE_XAW3D}" = "yes"; then
11649 cat >>confdefs.h <<\_ACEOF
11650 #define HAVE_XAW3D 1
11651 _ACEOF
11659 USE_TOOLKIT_SCROLL_BARS=no
11660 if test "${with_toolkit_scroll_bars}" != "no"; then
11661 if test "${USE_X_TOOLKIT}" != "none"; then
11662 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11663 cat >>confdefs.h <<\_ACEOF
11664 #define USE_TOOLKIT_SCROLL_BARS 1
11665 _ACEOF
11667 HAVE_XAW3D=no
11668 USE_TOOLKIT_SCROLL_BARS=yes
11669 elif test "${HAVE_XAW3D}" = "yes"; then
11670 cat >>confdefs.h <<\_ACEOF
11671 #define USE_TOOLKIT_SCROLL_BARS 1
11672 _ACEOF
11674 USE_TOOLKIT_SCROLL_BARS=yes
11676 elif test "${HAVE_GTK}" = "yes"; then
11677 cat >>confdefs.h <<\_ACEOF
11678 #define USE_TOOLKIT_SCROLL_BARS 1
11679 _ACEOF
11681 USE_TOOLKIT_SCROLL_BARS=yes
11682 elif test "${HAVE_CARBON}" = "yes"; then
11683 cat >>confdefs.h <<\_ACEOF
11684 #define USE_TOOLKIT_SCROLL_BARS 1
11685 _ACEOF
11687 USE_TOOLKIT_SCROLL_BARS=yes
11691 cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h. */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11698 #include <X11/Xlib.h>
11699 #include <X11/Xresource.h>
11701 main ()
11703 XIMProc callback;
11705 return 0;
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710 (eval $ac_compile) 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -z "$ac_c_werror_flag"
11718 || test ! -s conftest.err'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; } &&
11724 { ac_try='test -s conftest.$ac_objext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 HAVE_XIM=yes
11732 cat >>confdefs.h <<\_ACEOF
11733 #define HAVE_XIM 1
11734 _ACEOF
11736 else
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11740 HAVE_XIM=no
11742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11745 if test "${with_xim}" != "no"; then
11747 cat >>confdefs.h <<\_ACEOF
11748 #define USE_XIM 1
11749 _ACEOF
11754 if test "${HAVE_XIM}" != "no"; then
11755 late_CFLAGS=$CFLAGS
11756 if test "$GCC" = yes; then
11757 CFLAGS="$CFLAGS --pedantic-errors"
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11766 #include <X11/Xlib.h>
11767 #include <X11/Xresource.h>
11769 main ()
11771 Display *display;
11772 XrmDatabase db;
11773 char *res_name;
11774 char *res_class;
11775 XIMProc callback;
11776 XPointer *client_data;
11777 #ifndef __GNUC__
11778 /* If we're not using GCC, it's probably not XFree86, and this is
11779 probably right, but we can't use something like --pedantic-errors. */
11780 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11781 char*, XIMProc, XPointer*);
11782 #endif
11783 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11784 client_data);
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 emacs_cv_arg6_star=yes
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819 if test "$emacs_cv_arg6_star" = yes; then
11820 cat >>confdefs.h <<\_ACEOF
11821 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11822 _ACEOF
11824 else
11825 cat >>confdefs.h <<\_ACEOF
11826 #define XRegisterIMInstantiateCallback_arg6 XPointer
11827 _ACEOF
11830 CFLAGS=$late_CFLAGS
11833 ### Use -lXpm if available, unless `--with-xpm=no'.
11834 HAVE_XPM=no
11835 if test "${HAVE_X11}" = "yes"; then
11836 if test "${with_xpm}" != "no"; then
11837 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11838 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11839 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11840 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11844 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11845 else
11846 # Is the header compilable?
11847 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11848 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h. */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 $ac_includes_default
11856 #include <X11/xpm.h>
11857 _ACEOF
11858 rm -f conftest.$ac_objext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860 (eval $ac_compile) 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -z "$ac_c_werror_flag"
11868 || test ! -s conftest.err'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_header_compiler=yes
11881 else
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ac_header_compiler=no
11887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11889 echo "${ECHO_T}$ac_header_compiler" >&6
11891 # Is the header present?
11892 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11893 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11894 cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h. */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 #include <X11/xpm.h>
11901 _ACEOF
11902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null; then
11910 if test -s conftest.err; then
11911 ac_cpp_err=$ac_c_preproc_warn_flag
11912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11913 else
11914 ac_cpp_err=
11916 else
11917 ac_cpp_err=yes
11919 if test -z "$ac_cpp_err"; then
11920 ac_header_preproc=yes
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_header_preproc=no
11927 rm -f conftest.err conftest.$ac_ext
11928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11929 echo "${ECHO_T}$ac_header_preproc" >&6
11931 # So? What about this header?
11932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11933 yes:no: )
11934 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11935 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11937 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11938 ac_header_preproc=yes
11940 no:yes:* )
11941 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11942 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11944 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11946 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11948 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11950 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11951 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11952 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11954 cat <<\_ASBOX
11955 ## ------------------------------------------ ##
11956 ## Report this to the AC_PACKAGE_NAME lists. ##
11957 ## ------------------------------------------ ##
11958 _ASBOX
11960 sed "s/^/$as_me: WARNING: /" >&2
11962 esac
11963 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11964 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11965 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968 ac_cv_header_X11_xpm_h=$ac_header_preproc
11970 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11971 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11974 if test $ac_cv_header_X11_xpm_h = yes; then
11975 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11976 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11977 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-lXpm -lX11 $LIBS"
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11989 /* Override any gcc2 internal prototype to avoid an error. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 /* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
11995 char XpmReadFileToPixmap ();
11997 main ()
11999 XpmReadFileToPixmap ();
12001 return 0;
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12033 rm -f conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035 LIBS=$ac_check_lib_save_LIBS
12037 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12038 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12039 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12040 HAVE_XPM=yes
12046 if test "${HAVE_XPM}" = "yes"; then
12047 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12048 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 #include "X11/xpm.h"
12056 #ifndef XpmReturnAllocPixels
12057 no_return_alloc_pixels
12058 #endif
12060 _ACEOF
12061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12062 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12063 HAVE_XPM=no
12064 else
12065 HAVE_XPM=yes
12067 rm -f conftest*
12070 if test "${HAVE_XPM}" = "yes"; then
12071 echo "$as_me:$LINENO: result: yes" >&5
12072 echo "${ECHO_T}yes" >&6
12073 else
12074 echo "$as_me:$LINENO: result: no" >&5
12075 echo "${ECHO_T}no" >&6
12080 if test "${HAVE_XPM}" = "yes"; then
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_XPM 1
12084 _ACEOF
12089 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12090 HAVE_JPEG=no
12091 if test "${HAVE_X11}" = "yes"; then
12092 if test "${with_jpeg}" != "no"; then
12093 if test "${ac_cv_header_jerror_h+set}" = set; then
12094 echo "$as_me:$LINENO: checking for jerror.h" >&5
12095 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12096 if test "${ac_cv_header_jerror_h+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12100 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12101 else
12102 # Is the header compilable?
12103 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12104 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h. */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 $ac_includes_default
12112 #include <jerror.h>
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116 (eval $ac_compile) 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -z "$ac_c_werror_flag"
12124 || test ! -s conftest.err'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_header_compiler=yes
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 ac_header_compiler=no
12143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12145 echo "${ECHO_T}$ac_header_compiler" >&6
12147 # Is the header present?
12148 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12149 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 #include <jerror.h>
12157 _ACEOF
12158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } >/dev/null; then
12166 if test -s conftest.err; then
12167 ac_cpp_err=$ac_c_preproc_warn_flag
12168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12169 else
12170 ac_cpp_err=
12172 else
12173 ac_cpp_err=yes
12175 if test -z "$ac_cpp_err"; then
12176 ac_header_preproc=yes
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_header_preproc=no
12183 rm -f conftest.err conftest.$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12185 echo "${ECHO_T}$ac_header_preproc" >&6
12187 # So? What about this header?
12188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12189 yes:no: )
12190 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12191 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12193 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12194 ac_header_preproc=yes
12196 no:yes:* )
12197 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12198 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12200 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12202 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12204 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12206 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12208 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12210 cat <<\_ASBOX
12211 ## ------------------------------------------ ##
12212 ## Report this to the AC_PACKAGE_NAME lists. ##
12213 ## ------------------------------------------ ##
12214 _ASBOX
12216 sed "s/^/$as_me: WARNING: /" >&2
12218 esac
12219 echo "$as_me:$LINENO: checking for jerror.h" >&5
12220 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12221 if test "${ac_cv_header_jerror_h+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 ac_cv_header_jerror_h=$ac_header_preproc
12226 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12227 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12230 if test $ac_cv_header_jerror_h = yes; then
12231 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12232 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12233 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236 ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-ljpeg $LIBS"
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12245 /* Override any gcc2 internal prototype to avoid an error. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251 char jpeg_destroy_compress ();
12253 main ()
12255 jpeg_destroy_compress ();
12257 return 0;
12259 _ACEOF
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -z "$ac_c_werror_flag"
12270 || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest$ac_exeext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12283 else
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12289 rm -f conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12293 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12294 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12295 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12296 HAVE_JPEG=yes
12305 if test "${HAVE_JPEG}" = "yes"; then
12306 cat >>confdefs.h <<\_ACEOF
12307 #define HAVE_JPEG 1
12308 _ACEOF
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <jpeglib.h>
12317 version=JPEG_LIB_VERSION
12319 _ACEOF
12320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12321 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12322 cat >>confdefs.h <<\_ACEOF
12323 #define HAVE_JPEG 1
12324 _ACEOF
12326 else
12327 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12328 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12329 HAVE_JPEG=no
12331 rm -f conftest*
12336 ### Use -lpng if available, unless `--with-png=no'.
12337 HAVE_PNG=no
12338 if test "${HAVE_X11}" = "yes"; then
12339 if test "${with_png}" != "no"; then
12340 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12341 # in /usr/include/libpng.
12344 for ac_header in png.h libpng/png.h
12346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12348 echo "$as_me:$LINENO: checking for $ac_header" >&5
12349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12355 else
12356 # Is the header compilable?
12357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h. */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 $ac_includes_default
12366 #include <$ac_header>
12367 _ACEOF
12368 rm -f conftest.$ac_objext
12369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12370 (eval $ac_compile) 2>conftest.er1
12371 ac_status=$?
12372 grep -v '^ *+' conftest.er1 >conftest.err
12373 rm -f conftest.er1
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try='test -z "$ac_c_werror_flag"
12378 || test ! -s conftest.err'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; } &&
12384 { ac_try='test -s conftest.$ac_objext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_header_compiler=yes
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_header_compiler=no
12397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399 echo "${ECHO_T}$ac_header_compiler" >&6
12401 # Is the header present?
12402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include <$ac_header>
12411 _ACEOF
12412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } >/dev/null; then
12420 if test -s conftest.err; then
12421 ac_cpp_err=$ac_c_preproc_warn_flag
12422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12423 else
12424 ac_cpp_err=
12426 else
12427 ac_cpp_err=yes
12429 if test -z "$ac_cpp_err"; then
12430 ac_header_preproc=yes
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_header_preproc=no
12437 rm -f conftest.err conftest.$ac_ext
12438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12439 echo "${ECHO_T}$ac_header_preproc" >&6
12441 # So? What about this header?
12442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12443 yes:no: )
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12448 ac_header_preproc=yes
12450 no:yes:* )
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12464 cat <<\_ASBOX
12465 ## ------------------------------------------ ##
12466 ## Report this to the AC_PACKAGE_NAME lists. ##
12467 ## ------------------------------------------ ##
12468 _ASBOX
12470 sed "s/^/$as_me: WARNING: /" >&2
12472 esac
12473 echo "$as_me:$LINENO: checking for $ac_header" >&5
12474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478 eval "$as_ac_Header=\$ac_header_preproc"
12480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12485 cat >>confdefs.h <<_ACEOF
12486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12487 _ACEOF
12491 done
12493 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12494 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12495 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12496 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499 ac_check_lib_save_LIBS=$LIBS
12500 LIBS="-lpng -lz -lm $LIBS"
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12508 /* Override any gcc2 internal prototype to avoid an error. */
12509 #ifdef __cplusplus
12510 extern "C"
12511 #endif
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514 char png_get_channels ();
12516 main ()
12518 png_get_channels ();
12520 return 0;
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_lib_png_png_get_channels=yes
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_cv_lib_png_png_get_channels=no
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12554 LIBS=$ac_check_lib_save_LIBS
12556 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12557 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12558 if test $ac_cv_lib_png_png_get_channels = yes; then
12559 HAVE_PNG=yes
12565 if test "${HAVE_PNG}" = "yes"; then
12567 cat >>confdefs.h <<\_ACEOF
12568 #define HAVE_PNG 1
12569 _ACEOF
12574 ### Use -ltiff if available, unless `--with-tiff=no'.
12575 HAVE_TIFF=no
12576 if test "${HAVE_X11}" = "yes"; then
12577 if test "${with_tiff}" != "no"; then
12578 if test "${ac_cv_header_tiffio_h+set}" = set; then
12579 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12580 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12581 if test "${ac_cv_header_tiffio_h+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12586 else
12587 # Is the header compilable?
12588 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12589 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 $ac_includes_default
12597 #include <tiffio.h>
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_c_werror_flag"
12609 || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_header_compiler=yes
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ac_header_compiler=no
12628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12630 echo "${ECHO_T}$ac_header_compiler" >&6
12632 # Is the header present?
12633 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12634 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 #include <tiffio.h>
12642 _ACEOF
12643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12645 ac_status=$?
12646 grep -v '^ *+' conftest.er1 >conftest.err
12647 rm -f conftest.er1
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } >/dev/null; then
12651 if test -s conftest.err; then
12652 ac_cpp_err=$ac_c_preproc_warn_flag
12653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12654 else
12655 ac_cpp_err=
12657 else
12658 ac_cpp_err=yes
12660 if test -z "$ac_cpp_err"; then
12661 ac_header_preproc=yes
12662 else
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12666 ac_header_preproc=no
12668 rm -f conftest.err conftest.$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12670 echo "${ECHO_T}$ac_header_preproc" >&6
12672 # So? What about this header?
12673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12674 yes:no: )
12675 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12676 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12678 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12679 ac_header_preproc=yes
12681 no:yes:* )
12682 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12683 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12685 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12687 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12689 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12691 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12693 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12695 cat <<\_ASBOX
12696 ## ------------------------------------------ ##
12697 ## Report this to the AC_PACKAGE_NAME lists. ##
12698 ## ------------------------------------------ ##
12699 _ASBOX
12701 sed "s/^/$as_me: WARNING: /" >&2
12703 esac
12704 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12705 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12706 if test "${ac_cv_header_tiffio_h+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709 ac_cv_header_tiffio_h=$ac_header_preproc
12711 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12712 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12715 if test $ac_cv_header_tiffio_h = yes; then
12716 tifflibs="-lz -lm"
12717 # At least one tiff package requires the jpeg library.
12718 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12719 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12720 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12721 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724 ac_check_lib_save_LIBS=$LIBS
12725 LIBS="-ltiff $tifflibs $LIBS"
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12733 /* Override any gcc2 internal prototype to avoid an error. */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 /* We use char because int might match the return type of a gcc2
12738 builtin and then its argument prototype would still apply. */
12739 char TIFFGetVersion ();
12741 main ()
12743 TIFFGetVersion ();
12745 return 0;
12747 _ACEOF
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -z "$ac_c_werror_flag"
12758 || test ! -s conftest.err'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; } &&
12764 { ac_try='test -s conftest$ac_exeext'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_lib_tiff_TIFFGetVersion=yes
12771 else
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ac_cv_lib_tiff_TIFFGetVersion=no
12777 rm -f conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12782 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12783 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12784 HAVE_TIFF=yes
12792 if test "${HAVE_TIFF}" = "yes"; then
12794 cat >>confdefs.h <<\_ACEOF
12795 #define HAVE_TIFF 1
12796 _ACEOF
12801 ### Use -lgif if available, unless `--with-gif=no'.
12802 HAVE_GIF=no
12803 if test "${HAVE_X11}" = "yes"; then
12804 if test "${with_gif}" != "no"; then
12805 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12806 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12807 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12808 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12812 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12813 else
12814 # Is the header compilable?
12815 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12816 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 #include <gif_lib.h>
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828 (eval $ac_compile) 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try='test -z "$ac_c_werror_flag"
12836 || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest.$ac_objext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_header_compiler=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_header_compiler=no
12855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12857 echo "${ECHO_T}$ac_header_compiler" >&6
12859 # Is the header present?
12860 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12861 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12862 cat >conftest.$ac_ext <<_ACEOF
12863 /* confdefs.h. */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 #include <gif_lib.h>
12869 _ACEOF
12870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12872 ac_status=$?
12873 grep -v '^ *+' conftest.er1 >conftest.err
12874 rm -f conftest.er1
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } >/dev/null; then
12878 if test -s conftest.err; then
12879 ac_cpp_err=$ac_c_preproc_warn_flag
12880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12881 else
12882 ac_cpp_err=
12884 else
12885 ac_cpp_err=yes
12887 if test -z "$ac_cpp_err"; then
12888 ac_header_preproc=yes
12889 else
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ac_header_preproc=no
12895 rm -f conftest.err conftest.$ac_ext
12896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12897 echo "${ECHO_T}$ac_header_preproc" >&6
12899 # So? What about this header?
12900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12901 yes:no: )
12902 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12903 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12905 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12906 ac_header_preproc=yes
12908 no:yes:* )
12909 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12910 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12912 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12914 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12916 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12918 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12920 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12922 cat <<\_ASBOX
12923 ## ------------------------------------------ ##
12924 ## Report this to the AC_PACKAGE_NAME lists. ##
12925 ## ------------------------------------------ ##
12926 _ASBOX
12928 sed "s/^/$as_me: WARNING: /" >&2
12930 esac
12931 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12932 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12933 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936 ac_cv_header_gif_lib_h=$ac_header_preproc
12938 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12939 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12942 if test $ac_cv_header_gif_lib_h = yes; then
12943 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12944 # Earlier versions can crash Emacs.
12945 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12946 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12947 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950 ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lungif $LIBS"
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h. */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12959 /* Override any gcc2 internal prototype to avoid an error. */
12960 #ifdef __cplusplus
12961 extern "C"
12962 #endif
12963 /* We use char because int might match the return type of a gcc2
12964 builtin and then its argument prototype would still apply. */
12965 char EGifPutExtensionLast ();
12967 main ()
12969 EGifPutExtensionLast ();
12971 return 0;
12973 _ACEOF
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976 (eval $ac_link) 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -z "$ac_c_werror_flag"
12984 || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_cv_lib_ungif_EGifPutExtensionLast=no
13003 rm -f conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 LIBS=$ac_check_lib_save_LIBS
13007 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13008 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13009 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13010 HAVE_GIF=yes
13018 if test "${HAVE_GIF}" = "yes"; then
13020 cat >>confdefs.h <<\_ACEOF
13021 #define HAVE_GIF 1
13022 _ACEOF
13027 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13028 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13029 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13030 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13034 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13035 else
13036 # Is the header compilable?
13037 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13038 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 $ac_includes_default
13046 #include <malloc/malloc.h>
13047 _ACEOF
13048 rm -f conftest.$ac_objext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13050 (eval $ac_compile) 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -z "$ac_c_werror_flag"
13058 || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try='test -s conftest.$ac_objext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_header_compiler=yes
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ac_header_compiler=no
13077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13079 echo "${ECHO_T}$ac_header_compiler" >&6
13081 # Is the header present?
13082 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13083 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 #include <malloc/malloc.h>
13091 _ACEOF
13092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } >/dev/null; then
13100 if test -s conftest.err; then
13101 ac_cpp_err=$ac_c_preproc_warn_flag
13102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13103 else
13104 ac_cpp_err=
13106 else
13107 ac_cpp_err=yes
13109 if test -z "$ac_cpp_err"; then
13110 ac_header_preproc=yes
13111 else
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ac_header_preproc=no
13117 rm -f conftest.err conftest.$ac_ext
13118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13119 echo "${ECHO_T}$ac_header_preproc" >&6
13121 # So? What about this header?
13122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13123 yes:no: )
13124 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13125 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13126 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13127 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13128 ac_header_preproc=yes
13130 no:yes:* )
13131 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13132 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13134 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13136 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13138 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13140 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13142 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13144 cat <<\_ASBOX
13145 ## ------------------------------------------ ##
13146 ## Report this to the AC_PACKAGE_NAME lists. ##
13147 ## ------------------------------------------ ##
13148 _ASBOX
13150 sed "s/^/$as_me: WARNING: /" >&2
13152 esac
13153 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13154 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13155 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13160 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13161 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13164 if test $ac_cv_header_malloc_malloc_h = yes; then
13166 cat >>confdefs.h <<\_ACEOF
13167 #define HAVE_MALLOC_MALLOC_H 1
13168 _ACEOF
13174 ### Use Mac OS X Carbon API to implement GUI.
13175 if test "${HAVE_CARBON}" = "yes"; then
13177 cat >>confdefs.h <<\_ACEOF
13178 #define HAVE_CARBON 1
13179 _ACEOF
13181 ## Specify the install directory
13182 carbon_appdir=
13183 if test "${carbon_appdir_x}" != ""; then
13184 case ${carbon_appdir_x} in
13185 y | ye | yes) carbon_appdir=/Applications ;;
13186 * ) carbon_appdir=${carbon_appdir_x} ;;
13187 esac
13189 # We also have mouse menus.
13190 HAVE_MENUS=yes
13192 tmp_CFLAGS="$CFLAGS"
13193 CFLAGS="$CFLAGS -framework Carbon"
13194 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13195 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13196 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199 cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h. */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13207 #define CancelMenuTracking innocuous_CancelMenuTracking
13209 /* System header to define __stub macros and hopefully few prototypes,
13210 which can conflict with char CancelMenuTracking (); below.
13211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13212 <limits.h> exists even on freestanding compilers. */
13214 #ifdef __STDC__
13215 # include <limits.h>
13216 #else
13217 # include <assert.h>
13218 #endif
13220 #undef CancelMenuTracking
13222 /* Override any gcc2 internal prototype to avoid an error. */
13223 #ifdef __cplusplus
13224 extern "C"
13226 #endif
13227 /* We use char because int might match the return type of a gcc2
13228 builtin and then its argument prototype would still apply. */
13229 char CancelMenuTracking ();
13230 /* The GNU C library defines this for functions which it implements
13231 to always fail with ENOSYS. Some functions are actually named
13232 something starting with __ and the normal name is an alias. */
13233 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13234 choke me
13235 #else
13236 char (*f) () = CancelMenuTracking;
13237 #endif
13238 #ifdef __cplusplus
13240 #endif
13243 main ()
13245 return f != CancelMenuTracking;
13247 return 0;
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -z "$ac_c_werror_flag"
13260 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest$ac_exeext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_cv_func_CancelMenuTracking=yes
13273 else
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_cv_func_CancelMenuTracking=no
13279 rm -f conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13282 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13283 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13284 if test $ac_cv_func_CancelMenuTracking = yes; then
13285 have_cmt=yes
13286 else
13287 have_cmt=no
13290 if test "$have_cmt" = yes; then
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_CANCELMENUTRACKING 1
13294 _ACEOF
13297 CFLAGS="$tmp_CFLAGS"
13300 ### Use session management (-lSM -lICE) if available
13301 HAVE_X_SM=no
13302 if test "${HAVE_X11}" = "yes"; then
13303 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13304 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13305 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13306 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13310 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13311 else
13312 # Is the header compilable?
13313 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13314 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 $ac_includes_default
13322 #include <X11/SM/SMlib.h>
13323 _ACEOF
13324 rm -f conftest.$ac_objext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326 (eval $ac_compile) 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_header_compiler=yes
13347 else
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 ac_header_compiler=no
13353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13355 echo "${ECHO_T}$ac_header_compiler" >&6
13357 # Is the header present?
13358 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13359 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 #include <X11/SM/SMlib.h>
13367 _ACEOF
13368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13370 ac_status=$?
13371 grep -v '^ *+' conftest.er1 >conftest.err
13372 rm -f conftest.er1
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } >/dev/null; then
13376 if test -s conftest.err; then
13377 ac_cpp_err=$ac_c_preproc_warn_flag
13378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13379 else
13380 ac_cpp_err=
13382 else
13383 ac_cpp_err=yes
13385 if test -z "$ac_cpp_err"; then
13386 ac_header_preproc=yes
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13391 ac_header_preproc=no
13393 rm -f conftest.err conftest.$ac_ext
13394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13395 echo "${ECHO_T}$ac_header_preproc" >&6
13397 # So? What about this header?
13398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13399 yes:no: )
13400 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13401 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13403 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13404 ac_header_preproc=yes
13406 no:yes:* )
13407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13408 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13410 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13412 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13414 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13416 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13418 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13420 cat <<\_ASBOX
13421 ## ------------------------------------------ ##
13422 ## Report this to the AC_PACKAGE_NAME lists. ##
13423 ## ------------------------------------------ ##
13424 _ASBOX
13426 sed "s/^/$as_me: WARNING: /" >&2
13428 esac
13429 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13430 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13431 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13436 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13437 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13440 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13441 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13442 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13443 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-lSM -lICE $LIBS"
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13455 /* Override any gcc2 internal prototype to avoid an error. */
13456 #ifdef __cplusplus
13457 extern "C"
13458 #endif
13459 /* We use char because int might match the return type of a gcc2
13460 builtin and then its argument prototype would still apply. */
13461 char SmcOpenConnection ();
13463 main ()
13465 SmcOpenConnection ();
13467 return 0;
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag"
13480 || test ! -s conftest.err'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; } &&
13486 { ac_try='test -s conftest$ac_exeext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_lib_SM_SmcOpenConnection=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_cv_lib_SM_SmcOpenConnection=no
13499 rm -f conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
13501 LIBS=$ac_check_lib_save_LIBS
13503 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13504 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13505 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13506 HAVE_X_SM=yes
13513 if test "${HAVE_X_SM}" = "yes"; then
13515 cat >>confdefs.h <<\_ACEOF
13516 #define HAVE_X_SM 1
13517 _ACEOF
13519 case "$LIBS" in
13520 *-lSM*) ;;
13521 *) LIBS="-lSM -lICE $LIBS" ;;
13522 esac
13526 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13527 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13528 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13529 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532 cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h. */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 #include <netdb.h>
13540 main ()
13542 return h_errno;
13544 return 0;
13546 _ACEOF
13547 rm -f conftest.$ac_objext conftest$ac_exeext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13549 (eval $ac_link) 2>conftest.er1
13550 ac_status=$?
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag"
13557 || test ! -s conftest.err'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest$ac_exeext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 emacs_cv_netdb_declares_h_errno=yes
13570 else
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 emacs_cv_netdb_declares_h_errno=no
13576 rm -f conftest.err conftest.$ac_objext \
13577 conftest$ac_exeext conftest.$ac_ext
13579 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13580 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13581 if test $emacs_cv_netdb_declares_h_errno = yes; then
13583 cat >>confdefs.h <<\_ACEOF
13584 #define HAVE_H_ERRNO 1
13585 _ACEOF
13589 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13590 # for constant arguments. Useless!
13591 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13592 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13593 if test "${ac_cv_working_alloca_h+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h. */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #include <alloca.h>
13604 main ()
13606 char *p = (char *) alloca (2 * sizeof (int));
13608 return 0;
13610 _ACEOF
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613 (eval $ac_link) 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_working_alloca_h=yes
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_cv_working_alloca_h=no
13640 rm -f conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13643 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13644 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13645 if test $ac_cv_working_alloca_h = yes; then
13647 cat >>confdefs.h <<\_ACEOF
13648 #define HAVE_ALLOCA_H 1
13649 _ACEOF
13653 echo "$as_me:$LINENO: checking for alloca" >&5
13654 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13655 if test "${ac_cv_func_alloca_works+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 #ifdef __GNUC__
13665 # define alloca __builtin_alloca
13666 #else
13667 # ifdef _MSC_VER
13668 # include <malloc.h>
13669 # define alloca _alloca
13670 # else
13671 # if HAVE_ALLOCA_H
13672 # include <alloca.h>
13673 # else
13674 # ifdef _AIX
13675 #pragma alloca
13676 # else
13677 # ifndef alloca /* predefined by HP cc +Olibcalls */
13678 char *alloca ();
13679 # endif
13680 # endif
13681 # endif
13682 # endif
13683 #endif
13686 main ()
13688 char *p = (char *) alloca (1);
13690 return 0;
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>conftest.er1
13696 ac_status=$?
13697 grep -v '^ *+' conftest.er1 >conftest.err
13698 rm -f conftest.er1
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try='test -z "$ac_c_werror_flag"
13703 || test ! -s conftest.err'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ac_cv_func_alloca_works=yes
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 ac_cv_func_alloca_works=no
13722 rm -f conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13725 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13726 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13728 if test $ac_cv_func_alloca_works = yes; then
13730 cat >>confdefs.h <<\_ACEOF
13731 #define HAVE_ALLOCA 1
13732 _ACEOF
13734 else
13735 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13736 # that cause trouble. Some versions do not even contain alloca or
13737 # contain a buggy version. If you still want to use their alloca,
13738 # use ar to extract alloca.o from them instead of compiling alloca.c.
13740 ALLOCA=alloca.$ac_objext
13742 cat >>confdefs.h <<\_ACEOF
13743 #define C_ALLOCA 1
13744 _ACEOF
13747 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13748 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13749 if test "${ac_cv_os_cray+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 #if defined(CRAY) && ! defined(CRAY2)
13759 webecray
13760 #else
13761 wenotbecray
13762 #endif
13764 _ACEOF
13765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13766 $EGREP "webecray" >/dev/null 2>&1; then
13767 ac_cv_os_cray=yes
13768 else
13769 ac_cv_os_cray=no
13771 rm -f conftest*
13774 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13775 echo "${ECHO_T}$ac_cv_os_cray" >&6
13776 if test $ac_cv_os_cray = yes; then
13777 for ac_func in _getb67 GETB67 getb67; do
13778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13779 echo "$as_me:$LINENO: checking for $ac_func" >&5
13780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13781 if eval "test \"\${$as_ac_var+set}\" = set"; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13792 #define $ac_func innocuous_$ac_func
13794 /* System header to define __stub macros and hopefully few prototypes,
13795 which can conflict with char $ac_func (); below.
13796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13797 <limits.h> exists even on freestanding compilers. */
13799 #ifdef __STDC__
13800 # include <limits.h>
13801 #else
13802 # include <assert.h>
13803 #endif
13805 #undef $ac_func
13807 /* Override any gcc2 internal prototype to avoid an error. */
13808 #ifdef __cplusplus
13809 extern "C"
13811 #endif
13812 /* We use char because int might match the return type of a gcc2
13813 builtin and then its argument prototype would still apply. */
13814 char $ac_func ();
13815 /* The GNU C library defines this for functions which it implements
13816 to always fail with ENOSYS. Some functions are actually named
13817 something starting with __ and the normal name is an alias. */
13818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13819 choke me
13820 #else
13821 char (*f) () = $ac_func;
13822 #endif
13823 #ifdef __cplusplus
13825 #endif
13828 main ()
13830 return f != $ac_func;
13832 return 0;
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag"
13845 || test ! -s conftest.err'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 eval "$as_ac_var=yes"
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 eval "$as_ac_var=no"
13864 rm -f conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13869 if test `eval echo '${'$as_ac_var'}'` = yes; then
13871 cat >>confdefs.h <<_ACEOF
13872 #define CRAY_STACKSEG_END $ac_func
13873 _ACEOF
13875 break
13878 done
13881 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13882 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13883 if test "${ac_cv_c_stack_direction+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 if test "$cross_compiling" = yes; then
13887 ac_cv_c_stack_direction=0
13888 else
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13896 find_stack_direction ()
13898 static char *addr = 0;
13899 auto char dummy;
13900 if (addr == 0)
13902 addr = &dummy;
13903 return find_stack_direction ();
13905 else
13906 return (&dummy > addr) ? 1 : -1;
13910 main ()
13912 exit (find_stack_direction () < 0);
13914 _ACEOF
13915 rm -f conftest$ac_exeext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917 (eval $ac_link) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_c_stack_direction=1
13927 else
13928 echo "$as_me: program exited with status $ac_status" >&5
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ( exit $ac_status )
13933 ac_cv_c_stack_direction=-1
13935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13938 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13939 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13941 cat >>confdefs.h <<_ACEOF
13942 #define STACK_DIRECTION $ac_cv_c_stack_direction
13943 _ACEOF
13949 # fmod, logb, and frexp are found in -lm on most systems.
13950 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13952 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13953 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13954 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957 ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-lm $LIBS"
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13966 /* Override any gcc2 internal prototype to avoid an error. */
13967 #ifdef __cplusplus
13968 extern "C"
13969 #endif
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13972 char sqrt ();
13974 main ()
13976 sqrt ();
13978 return 0;
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_lib_m_sqrt=yes
14004 else
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_cv_lib_m_sqrt=no
14010 rm -f conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS
14014 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14015 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14016 if test $ac_cv_lib_m_sqrt = yes; then
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_LIBM 1
14019 _ACEOF
14021 LIBS="-lm $LIBS"
14026 # Check for mail-locking functions in a "mail" library. Probably this should
14027 # have the same check as for liblockfile below.
14029 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14030 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14031 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034 ac_check_lib_save_LIBS=$LIBS
14035 LIBS="-lmail $LIBS"
14036 cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h. */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14043 /* Override any gcc2 internal prototype to avoid an error. */
14044 #ifdef __cplusplus
14045 extern "C"
14046 #endif
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049 char maillock ();
14051 main ()
14053 maillock ();
14055 return 0;
14057 _ACEOF
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14060 (eval $ac_link) 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_c_werror_flag"
14068 || test ! -s conftest.err'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest$ac_exeext'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 ac_cv_lib_mail_maillock=yes
14081 else
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_cv_lib_mail_maillock=no
14087 rm -f conftest.err conftest.$ac_objext \
14088 conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14091 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14092 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14093 if test $ac_cv_lib_mail_maillock = yes; then
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_LIBMAIL 1
14096 _ACEOF
14098 LIBS="-lmail $LIBS"
14103 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14104 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14105 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108 ac_check_lib_save_LIBS=$LIBS
14109 LIBS="-llockfile $LIBS"
14110 cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h. */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14117 /* Override any gcc2 internal prototype to avoid an error. */
14118 #ifdef __cplusplus
14119 extern "C"
14120 #endif
14121 /* We use char because int might match the return type of a gcc2
14122 builtin and then its argument prototype would still apply. */
14123 char maillock ();
14125 main ()
14127 maillock ();
14129 return 0;
14131 _ACEOF
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134 (eval $ac_link) 2>conftest.er1
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag"
14142 || test ! -s conftest.err'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 ac_cv_lib_lockfile_maillock=yes
14155 else
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 ac_cv_lib_lockfile_maillock=no
14161 rm -f conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14165 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14166 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14167 if test $ac_cv_lib_lockfile_maillock = yes; then
14168 cat >>confdefs.h <<_ACEOF
14169 #define HAVE_LIBLOCKFILE 1
14170 _ACEOF
14172 LIBS="-llockfile $LIBS"
14176 # If we have the shared liblockfile, assume we must use it for mail
14177 # locking (e.g. Debian). If we couldn't link against liblockfile
14178 # (no liblockfile.a installed), ensure that we don't need to.
14179 if test "$ac_cv_lib_lockfile_maillock" = no; then
14180 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14181 set dummy liblockfile.so; ac_word=$2
14182 echo "$as_me:$LINENO: checking for $ac_word" >&5
14183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14184 if test "${ac_cv_prog_liblockfile+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187 if test -n "$liblockfile"; then
14188 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14192 for as_dir in $as_dummy
14194 IFS=$as_save_IFS
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14198 ac_cv_prog_liblockfile="yes"
14199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 break 2
14202 done
14203 done
14205 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14208 liblockfile=$ac_cv_prog_liblockfile
14209 if test -n "$liblockfile"; then
14210 echo "$as_me:$LINENO: result: $liblockfile" >&5
14211 echo "${ECHO_T}$liblockfile" >&6
14212 else
14213 echo "$as_me:$LINENO: result: no" >&5
14214 echo "${ECHO_T}no" >&6
14217 if test $ac_cv_prog_liblockfile = yes; then
14218 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14219 This probably means that movemail could lose mail.
14220 There may be a \`development' package to install containing liblockfile." >&5
14221 echo "$as_me: error: Shared liblockfile found but can't link against it.
14222 This probably means that movemail could lose mail.
14223 There may be a \`development' package to install containing liblockfile." >&2;}
14224 { (exit 1); exit 1; }; }
14225 else :
14229 for ac_func in touchlock
14231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 echo "$as_me:$LINENO: checking for $ac_func" >&5
14233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14234 if eval "test \"\${$as_ac_var+set}\" = set"; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14245 #define $ac_func innocuous_$ac_func
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func (); below.
14249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250 <limits.h> exists even on freestanding compilers. */
14252 #ifdef __STDC__
14253 # include <limits.h>
14254 #else
14255 # include <assert.h>
14256 #endif
14258 #undef $ac_func
14260 /* Override any gcc2 internal prototype to avoid an error. */
14261 #ifdef __cplusplus
14262 extern "C"
14264 #endif
14265 /* We use char because int might match the return type of a gcc2
14266 builtin and then its argument prototype would still apply. */
14267 char $ac_func ();
14268 /* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14272 choke me
14273 #else
14274 char (*f) () = $ac_func;
14275 #endif
14276 #ifdef __cplusplus
14278 #endif
14281 main ()
14283 return f != $ac_func;
14285 return 0;
14287 _ACEOF
14288 rm -f conftest.$ac_objext conftest$ac_exeext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14290 (eval $ac_link) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag"
14298 || test ! -s conftest.err'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try='test -s conftest$ac_exeext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 eval "$as_ac_var=yes"
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 eval "$as_ac_var=no"
14317 rm -f conftest.err conftest.$ac_objext \
14318 conftest$ac_exeext conftest.$ac_ext
14320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14322 if test `eval echo '${'$as_ac_var'}'` = yes; then
14323 cat >>confdefs.h <<_ACEOF
14324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14325 _ACEOF
14328 done
14331 for ac_header in maillock.h
14333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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
14340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14342 else
14343 # Is the header compilable?
14344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 $ac_includes_default
14353 #include <$ac_header>
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_header_compiler=yes
14378 else
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_header_compiler=no
14384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386 echo "${ECHO_T}$ac_header_compiler" >&6
14388 # Is the header present?
14389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h. */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <$ac_header>
14398 _ACEOF
14399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null; then
14407 if test -s conftest.err; then
14408 ac_cpp_err=$ac_c_preproc_warn_flag
14409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14410 else
14411 ac_cpp_err=
14413 else
14414 ac_cpp_err=yes
14416 if test -z "$ac_cpp_err"; then
14417 ac_header_preproc=yes
14418 else
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_header_preproc=no
14424 rm -f conftest.err conftest.$ac_ext
14425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14426 echo "${ECHO_T}$ac_header_preproc" >&6
14428 # So? What about this header?
14429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14430 yes:no: )
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14435 ac_header_preproc=yes
14437 no:yes:* )
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14451 cat <<\_ASBOX
14452 ## ------------------------------------------ ##
14453 ## Report this to the AC_PACKAGE_NAME lists. ##
14454 ## ------------------------------------------ ##
14455 _ASBOX
14457 sed "s/^/$as_me: WARNING: /" >&2
14459 esac
14460 echo "$as_me:$LINENO: checking for $ac_header" >&5
14461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465 eval "$as_ac_Header=\$ac_header_preproc"
14467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472 cat >>confdefs.h <<_ACEOF
14473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14474 _ACEOF
14478 done
14549 for ac_func in gethostname getdomainname dup2 \
14550 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14551 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14552 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14553 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14554 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14555 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14556 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14557 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14560 echo "$as_me:$LINENO: checking for $ac_func" >&5
14561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14562 if eval "test \"\${$as_ac_var+set}\" = set"; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h. */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14573 #define $ac_func innocuous_$ac_func
14575 /* System header to define __stub macros and hopefully few prototypes,
14576 which can conflict with char $ac_func (); below.
14577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14578 <limits.h> exists even on freestanding compilers. */
14580 #ifdef __STDC__
14581 # include <limits.h>
14582 #else
14583 # include <assert.h>
14584 #endif
14586 #undef $ac_func
14588 /* Override any gcc2 internal prototype to avoid an error. */
14589 #ifdef __cplusplus
14590 extern "C"
14592 #endif
14593 /* We use char because int might match the return type of a gcc2
14594 builtin and then its argument prototype would still apply. */
14595 char $ac_func ();
14596 /* The GNU C library defines this for functions which it implements
14597 to always fail with ENOSYS. Some functions are actually named
14598 something starting with __ and the normal name is an alias. */
14599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14600 choke me
14601 #else
14602 char (*f) () = $ac_func;
14603 #endif
14604 #ifdef __cplusplus
14606 #endif
14609 main ()
14611 return f != $ac_func;
14613 return 0;
14615 _ACEOF
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14618 (eval $ac_link) 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag"
14626 || test ! -s conftest.err'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest$ac_exeext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 eval "$as_ac_var=yes"
14639 else
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 eval "$as_ac_var=no"
14645 rm -f conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext conftest.$ac_ext
14648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14650 if test `eval echo '${'$as_ac_var'}'` = yes; then
14651 cat >>confdefs.h <<_ACEOF
14652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14653 _ACEOF
14656 done
14660 for ac_header in sys/un.h
14662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14664 echo "$as_me:$LINENO: checking for $ac_header" >&5
14665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14671 else
14672 # Is the header compilable?
14673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14682 #include <$ac_header>
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_header_compiler=yes
14707 else
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_header_compiler=no
14713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14715 echo "${ECHO_T}$ac_header_compiler" >&6
14717 # Is the header present?
14718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include <$ac_header>
14727 _ACEOF
14728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev/null; then
14736 if test -s conftest.err; then
14737 ac_cpp_err=$ac_c_preproc_warn_flag
14738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14739 else
14740 ac_cpp_err=
14742 else
14743 ac_cpp_err=yes
14745 if test -z "$ac_cpp_err"; then
14746 ac_header_preproc=yes
14747 else
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 ac_header_preproc=no
14753 rm -f conftest.err conftest.$ac_ext
14754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14755 echo "${ECHO_T}$ac_header_preproc" >&6
14757 # So? What about this header?
14758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14759 yes:no: )
14760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14764 ac_header_preproc=yes
14766 no:yes:* )
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14780 cat <<\_ASBOX
14781 ## ------------------------------------------ ##
14782 ## Report this to the AC_PACKAGE_NAME lists. ##
14783 ## ------------------------------------------ ##
14784 _ASBOX
14786 sed "s/^/$as_me: WARNING: /" >&2
14788 esac
14789 echo "$as_me:$LINENO: checking for $ac_header" >&5
14790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 eval "$as_ac_Header=\$ac_header_preproc"
14796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14803 _ACEOF
14807 done
14813 for ac_header in stdlib.h sys/time.h unistd.h
14815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14817 echo "$as_me:$LINENO: checking for $ac_header" >&5
14818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14824 else
14825 # Is the header compilable?
14826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h. */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 $ac_includes_default
14835 #include <$ac_header>
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
14846 { ac_try='test -z "$ac_c_werror_flag"
14847 || test ! -s conftest.err'
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_header_compiler=yes
14860 else
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 ac_header_compiler=no
14866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14868 echo "${ECHO_T}$ac_header_compiler" >&6
14870 # Is the header present?
14871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 #include <$ac_header>
14880 _ACEOF
14881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } >/dev/null; then
14889 if test -s conftest.err; then
14890 ac_cpp_err=$ac_c_preproc_warn_flag
14891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14892 else
14893 ac_cpp_err=
14895 else
14896 ac_cpp_err=yes
14898 if test -z "$ac_cpp_err"; then
14899 ac_header_preproc=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_header_preproc=no
14906 rm -f conftest.err conftest.$ac_ext
14907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908 echo "${ECHO_T}$ac_header_preproc" >&6
14910 # So? What about this header?
14911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14912 yes:no: )
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14917 ac_header_preproc=yes
14919 no:yes:* )
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14933 cat <<\_ASBOX
14934 ## ------------------------------------------ ##
14935 ## Report this to the AC_PACKAGE_NAME lists. ##
14936 ## ------------------------------------------ ##
14937 _ASBOX
14939 sed "s/^/$as_me: WARNING: /" >&2
14941 esac
14942 echo "$as_me:$LINENO: checking for $ac_header" >&5
14943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 eval "$as_ac_Header=\$ac_header_preproc"
14949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14956 _ACEOF
14960 done
14963 for ac_func in alarm
14965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14966 echo "$as_me:$LINENO: checking for $ac_func" >&5
14967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14968 if eval "test \"\${$as_ac_var+set}\" = set"; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14979 #define $ac_func innocuous_$ac_func
14981 /* System header to define __stub macros and hopefully few prototypes,
14982 which can conflict with char $ac_func (); below.
14983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14984 <limits.h> exists even on freestanding compilers. */
14986 #ifdef __STDC__
14987 # include <limits.h>
14988 #else
14989 # include <assert.h>
14990 #endif
14992 #undef $ac_func
14994 /* Override any gcc2 internal prototype to avoid an error. */
14995 #ifdef __cplusplus
14996 extern "C"
14998 #endif
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15001 char $ac_func ();
15002 /* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15006 choke me
15007 #else
15008 char (*f) () = $ac_func;
15009 #endif
15010 #ifdef __cplusplus
15012 #endif
15015 main ()
15017 return f != $ac_func;
15019 return 0;
15021 _ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest$ac_exeext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 eval "$as_ac_var=yes"
15045 else
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 eval "$as_ac_var=no"
15051 rm -f conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
15054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15056 if test `eval echo '${'$as_ac_var'}'` = yes; then
15057 cat >>confdefs.h <<_ACEOF
15058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15059 _ACEOF
15062 done
15064 echo "$as_me:$LINENO: checking for working mktime" >&5
15065 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15066 if test "${ac_cv_func_working_mktime+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 else
15069 if test "$cross_compiling" = yes; then
15070 ac_cv_func_working_mktime=no
15071 else
15072 cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h. */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078 /* Test program from Paul Eggert and Tony Leneis. */
15079 #if TIME_WITH_SYS_TIME
15080 # include <sys/time.h>
15081 # include <time.h>
15082 #else
15083 # if HAVE_SYS_TIME_H
15084 # include <sys/time.h>
15085 # else
15086 # include <time.h>
15087 # endif
15088 #endif
15090 #if HAVE_STDLIB_H
15091 # include <stdlib.h>
15092 #endif
15094 #if HAVE_UNISTD_H
15095 # include <unistd.h>
15096 #endif
15098 #if !HAVE_ALARM
15099 # define alarm(X) /* empty */
15100 #endif
15102 /* Work around redefinition to rpl_putenv by other config tests. */
15103 #undef putenv
15105 static time_t time_t_max;
15106 static time_t time_t_min;
15108 /* Values we'll use to set the TZ environment variable. */
15109 static char *tz_strings[] = {
15110 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15111 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15113 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15115 /* Fail if mktime fails to convert a date in the spring-forward gap.
15116 Based on a problem report from Andreas Jaeger. */
15117 static void
15118 spring_forward_gap ()
15120 /* glibc (up to about 1998-10-07) failed this test. */
15121 struct tm tm;
15123 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15124 instead of "TZ=America/Vancouver" in order to detect the bug even
15125 on systems that don't support the Olson extension, or don't have the
15126 full zoneinfo tables installed. */
15127 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15129 tm.tm_year = 98;
15130 tm.tm_mon = 3;
15131 tm.tm_mday = 5;
15132 tm.tm_hour = 2;
15133 tm.tm_min = 0;
15134 tm.tm_sec = 0;
15135 tm.tm_isdst = -1;
15136 if (mktime (&tm) == (time_t)-1)
15137 exit (1);
15140 static void
15141 mktime_test1 (now)
15142 time_t now;
15144 struct tm *lt;
15145 if ((lt = localtime (&now)) && mktime (lt) != now)
15146 exit (1);
15149 static void
15150 mktime_test (now)
15151 time_t now;
15153 mktime_test1 (now);
15154 mktime_test1 ((time_t) (time_t_max - now));
15155 mktime_test1 ((time_t) (time_t_min + now));
15158 static void
15159 irix_6_4_bug ()
15161 /* Based on code from Ariel Faigon. */
15162 struct tm tm;
15163 tm.tm_year = 96;
15164 tm.tm_mon = 3;
15165 tm.tm_mday = 0;
15166 tm.tm_hour = 0;
15167 tm.tm_min = 0;
15168 tm.tm_sec = 0;
15169 tm.tm_isdst = -1;
15170 mktime (&tm);
15171 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15172 exit (1);
15175 static void
15176 bigtime_test (j)
15177 int j;
15179 struct tm tm;
15180 time_t now;
15181 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15182 now = mktime (&tm);
15183 if (now != (time_t) -1)
15185 struct tm *lt = localtime (&now);
15186 if (! (lt
15187 && lt->tm_year == tm.tm_year
15188 && lt->tm_mon == tm.tm_mon
15189 && lt->tm_mday == tm.tm_mday
15190 && lt->tm_hour == tm.tm_hour
15191 && lt->tm_min == tm.tm_min
15192 && lt->tm_sec == tm.tm_sec
15193 && lt->tm_yday == tm.tm_yday
15194 && lt->tm_wday == tm.tm_wday
15195 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15196 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15197 exit (1);
15202 main ()
15204 time_t t, delta;
15205 int i, j;
15207 /* This test makes some buggy mktime implementations loop.
15208 Give up after 60 seconds; a mktime slower than that
15209 isn't worth using anyway. */
15210 alarm (60);
15212 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15213 continue;
15214 time_t_max--;
15215 if ((time_t) -1 < 0)
15216 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15217 continue;
15218 delta = time_t_max / 997; /* a suitable prime number */
15219 for (i = 0; i < N_STRINGS; i++)
15221 if (tz_strings[i])
15222 putenv (tz_strings[i]);
15224 for (t = 0; t <= time_t_max - delta; t += delta)
15225 mktime_test (t);
15226 mktime_test ((time_t) 1);
15227 mktime_test ((time_t) (60 * 60));
15228 mktime_test ((time_t) (60 * 60 * 24));
15230 for (j = 1; 0 < j; j *= 2)
15231 bigtime_test (j);
15232 bigtime_test (j - 1);
15234 irix_6_4_bug ();
15235 spring_forward_gap ();
15236 exit (0);
15238 _ACEOF
15239 rm -f conftest$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241 (eval $ac_link) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_cv_func_working_mktime=yes
15251 else
15252 echo "$as_me: program exited with status $ac_status" >&5
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ( exit $ac_status )
15257 ac_cv_func_working_mktime=no
15259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15262 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15263 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15264 if test $ac_cv_func_working_mktime = no; then
15265 case $LIBOBJS in
15266 "mktime.$ac_objext" | \
15267 *" mktime.$ac_objext" | \
15268 "mktime.$ac_objext "* | \
15269 *" mktime.$ac_objext "* ) ;;
15270 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15271 esac
15275 if test "$ac_cv_func_working_mktime" = no; then
15277 cat >>confdefs.h <<\_ACEOF
15278 #define BROKEN_MKTIME 1
15279 _ACEOF
15283 ac_have_func=no # yes means we've found a way to get the load average.
15285 # Make sure getloadavg.c is where it belongs, at configure-time.
15286 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15287 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15288 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15289 { (exit 1); exit 1; }; }
15291 ac_save_LIBS=$LIBS
15293 # Check for getloadavg, but be sure not to touch the cache variable.
15294 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15295 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15296 if test "${ac_cv_func_getloadavg+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299 cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h. */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15307 #define getloadavg innocuous_getloadavg
15309 /* System header to define __stub macros and hopefully few prototypes,
15310 which can conflict with char getloadavg (); below.
15311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15312 <limits.h> exists even on freestanding compilers. */
15314 #ifdef __STDC__
15315 # include <limits.h>
15316 #else
15317 # include <assert.h>
15318 #endif
15320 #undef getloadavg
15322 /* Override any gcc2 internal prototype to avoid an error. */
15323 #ifdef __cplusplus
15324 extern "C"
15326 #endif
15327 /* We use char because int might match the return type of a gcc2
15328 builtin and then its argument prototype would still apply. */
15329 char getloadavg ();
15330 /* The GNU C library defines this for functions which it implements
15331 to always fail with ENOSYS. Some functions are actually named
15332 something starting with __ and the normal name is an alias. */
15333 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15334 choke me
15335 #else
15336 char (*f) () = getloadavg;
15337 #endif
15338 #ifdef __cplusplus
15340 #endif
15343 main ()
15345 return f != getloadavg;
15347 return 0;
15349 _ACEOF
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15352 (eval $ac_link) 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
15359 { ac_try='test -z "$ac_c_werror_flag"
15360 || test ! -s conftest.err'
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; } &&
15366 { ac_try='test -s conftest$ac_exeext'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_cv_func_getloadavg=yes
15373 else
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_cv_func_getloadavg=no
15379 rm -f conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15382 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15383 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15384 if test $ac_cv_func_getloadavg = yes; then
15385 exit 0
15386 else
15387 exit 1
15389 ) && ac_have_func=yes
15391 # On HPUX9, an unprivileged user can get load averages through this function.
15393 for ac_func in pstat_getdynamic
15395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15396 echo "$as_me:$LINENO: checking for $ac_func" >&5
15397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15398 if eval "test \"\${$as_ac_var+set}\" = set"; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h. */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15409 #define $ac_func innocuous_$ac_func
15411 /* System header to define __stub macros and hopefully few prototypes,
15412 which can conflict with char $ac_func (); below.
15413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15414 <limits.h> exists even on freestanding compilers. */
15416 #ifdef __STDC__
15417 # include <limits.h>
15418 #else
15419 # include <assert.h>
15420 #endif
15422 #undef $ac_func
15424 /* Override any gcc2 internal prototype to avoid an error. */
15425 #ifdef __cplusplus
15426 extern "C"
15428 #endif
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15431 char $ac_func ();
15432 /* The GNU C library defines this for functions which it implements
15433 to always fail with ENOSYS. Some functions are actually named
15434 something starting with __ and the normal name is an alias. */
15435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15436 choke me
15437 #else
15438 char (*f) () = $ac_func;
15439 #endif
15440 #ifdef __cplusplus
15442 #endif
15445 main ()
15447 return f != $ac_func;
15449 return 0;
15451 _ACEOF
15452 rm -f conftest.$ac_objext conftest$ac_exeext
15453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15454 (eval $ac_link) 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try='test -z "$ac_c_werror_flag"
15462 || test ! -s conftest.err'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest$ac_exeext'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 eval "$as_ac_var=yes"
15475 else
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 eval "$as_ac_var=no"
15481 rm -f conftest.err conftest.$ac_objext \
15482 conftest$ac_exeext conftest.$ac_ext
15484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15486 if test `eval echo '${'$as_ac_var'}'` = yes; then
15487 cat >>confdefs.h <<_ACEOF
15488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15489 _ACEOF
15492 done
15495 # Solaris has libkstat which does not require root.
15497 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15498 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15499 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502 ac_check_lib_save_LIBS=$LIBS
15503 LIBS="-lkstat $LIBS"
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15511 /* Override any gcc2 internal prototype to avoid an error. */
15512 #ifdef __cplusplus
15513 extern "C"
15514 #endif
15515 /* We use char because int might match the return type of a gcc2
15516 builtin and then its argument prototype would still apply. */
15517 char kstat_open ();
15519 main ()
15521 kstat_open ();
15523 return 0;
15525 _ACEOF
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest$ac_exeext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_lib_kstat_kstat_open=yes
15549 else
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_cv_lib_kstat_kstat_open=no
15555 rm -f conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
15557 LIBS=$ac_check_lib_save_LIBS
15559 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15560 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15561 if test $ac_cv_lib_kstat_kstat_open = yes; then
15562 cat >>confdefs.h <<_ACEOF
15563 #define HAVE_LIBKSTAT 1
15564 _ACEOF
15566 LIBS="-lkstat $LIBS"
15570 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15572 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15573 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15574 # to get the right answer into the cache.
15575 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15576 if test $ac_have_func = no; then
15577 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15578 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15579 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 else
15582 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lelf $LIBS"
15584 cat >conftest.$ac_ext <<_ACEOF
15585 /* confdefs.h. */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15591 /* Override any gcc2 internal prototype to avoid an error. */
15592 #ifdef __cplusplus
15593 extern "C"
15594 #endif
15595 /* We use char because int might match the return type of a gcc2
15596 builtin and then its argument prototype would still apply. */
15597 char elf_begin ();
15599 main ()
15601 elf_begin ();
15603 return 0;
15605 _ACEOF
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15608 (eval $ac_link) 2>conftest.er1
15609 ac_status=$?
15610 grep -v '^ *+' conftest.er1 >conftest.err
15611 rm -f conftest.er1
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
15615 { ac_try='test -z "$ac_c_werror_flag"
15616 || test ! -s conftest.err'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try='test -s conftest$ac_exeext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_lib_elf_elf_begin=yes
15629 else
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_cv_lib_elf_elf_begin=no
15635 rm -f conftest.err conftest.$ac_objext \
15636 conftest$ac_exeext conftest.$ac_ext
15637 LIBS=$ac_check_lib_save_LIBS
15639 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15640 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15641 if test $ac_cv_lib_elf_elf_begin = yes; then
15642 LIBS="-lelf $LIBS"
15646 if test $ac_have_func = no; then
15647 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15648 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15649 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652 ac_check_lib_save_LIBS=$LIBS
15653 LIBS="-lkvm $LIBS"
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h. */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15661 /* Override any gcc2 internal prototype to avoid an error. */
15662 #ifdef __cplusplus
15663 extern "C"
15664 #endif
15665 /* We use char because int might match the return type of a gcc2
15666 builtin and then its argument prototype would still apply. */
15667 char kvm_open ();
15669 main ()
15671 kvm_open ();
15673 return 0;
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678 (eval $ac_link) 2>conftest.er1
15679 ac_status=$?
15680 grep -v '^ *+' conftest.er1 >conftest.err
15681 rm -f conftest.er1
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest$ac_exeext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_cv_lib_kvm_kvm_open=yes
15699 else
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_cv_lib_kvm_kvm_open=no
15705 rm -f conftest.err conftest.$ac_objext \
15706 conftest$ac_exeext conftest.$ac_ext
15707 LIBS=$ac_check_lib_save_LIBS
15709 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15710 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15711 if test $ac_cv_lib_kvm_kvm_open = yes; then
15712 LIBS="-lkvm $LIBS"
15715 # Check for the 4.4BSD definition of getloadavg.
15716 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15717 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15718 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721 ac_check_lib_save_LIBS=$LIBS
15722 LIBS="-lutil $LIBS"
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 /* Override any gcc2 internal prototype to avoid an error. */
15731 #ifdef __cplusplus
15732 extern "C"
15733 #endif
15734 /* We use char because int might match the return type of a gcc2
15735 builtin and then its argument prototype would still apply. */
15736 char getloadavg ();
15738 main ()
15740 getloadavg ();
15742 return 0;
15744 _ACEOF
15745 rm -f conftest.$ac_objext conftest$ac_exeext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747 (eval $ac_link) 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag"
15755 || test ! -s conftest.err'
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try='test -s conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_cv_lib_util_getloadavg=yes
15768 else
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_cv_lib_util_getloadavg=no
15774 rm -f conftest.err conftest.$ac_objext \
15775 conftest$ac_exeext conftest.$ac_ext
15776 LIBS=$ac_check_lib_save_LIBS
15778 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15779 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15780 if test $ac_cv_lib_util_getloadavg = yes; then
15781 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15786 if test $ac_have_func = no; then
15787 # There is a commonly available library for RS/6000 AIX.
15788 # Since it is not a standard part of AIX, it might be installed locally.
15789 ac_getloadavg_LIBS=$LIBS
15790 LIBS="-L/usr/local/lib $LIBS"
15791 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15792 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15793 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-lgetloadavg $LIBS"
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h. */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15805 /* Override any gcc2 internal prototype to avoid an error. */
15806 #ifdef __cplusplus
15807 extern "C"
15808 #endif
15809 /* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15811 char getloadavg ();
15813 main ()
15815 getloadavg ();
15817 return 0;
15819 _ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15822 (eval $ac_link) 2>conftest.er1
15823 ac_status=$?
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag"
15830 || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try='test -s conftest$ac_exeext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_cv_lib_getloadavg_getloadavg=yes
15843 else
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 ac_cv_lib_getloadavg_getloadavg=no
15849 rm -f conftest.err conftest.$ac_objext \
15850 conftest$ac_exeext conftest.$ac_ext
15851 LIBS=$ac_check_lib_save_LIBS
15853 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15854 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15855 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15856 LIBS="-lgetloadavg $LIBS"
15857 else
15858 LIBS=$ac_getloadavg_LIBS
15863 # Make sure it is really in the library, if we think we found it,
15864 # otherwise set up the replacement function.
15866 for ac_func in getloadavg
15868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15869 echo "$as_me:$LINENO: checking for $ac_func" >&5
15870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15871 if eval "test \"\${$as_ac_var+set}\" = set"; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15882 #define $ac_func innocuous_$ac_func
15884 /* System header to define __stub macros and hopefully few prototypes,
15885 which can conflict with char $ac_func (); below.
15886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15887 <limits.h> exists even on freestanding compilers. */
15889 #ifdef __STDC__
15890 # include <limits.h>
15891 #else
15892 # include <assert.h>
15893 #endif
15895 #undef $ac_func
15897 /* Override any gcc2 internal prototype to avoid an error. */
15898 #ifdef __cplusplus
15899 extern "C"
15901 #endif
15902 /* We use char because int might match the return type of a gcc2
15903 builtin and then its argument prototype would still apply. */
15904 char $ac_func ();
15905 /* The GNU C library defines this for functions which it implements
15906 to always fail with ENOSYS. Some functions are actually named
15907 something starting with __ and the normal name is an alias. */
15908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15909 choke me
15910 #else
15911 char (*f) () = $ac_func;
15912 #endif
15913 #ifdef __cplusplus
15915 #endif
15918 main ()
15920 return f != $ac_func;
15922 return 0;
15924 _ACEOF
15925 rm -f conftest.$ac_objext conftest$ac_exeext
15926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15927 (eval $ac_link) 2>conftest.er1
15928 ac_status=$?
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -z "$ac_c_werror_flag"
15935 || test ! -s conftest.err'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; } &&
15941 { ac_try='test -s conftest$ac_exeext'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 eval "$as_ac_var=yes"
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 eval "$as_ac_var=no"
15954 rm -f conftest.err conftest.$ac_objext \
15955 conftest$ac_exeext conftest.$ac_ext
15957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15959 if test `eval echo '${'$as_ac_var'}'` = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15962 _ACEOF
15964 else
15965 case $LIBOBJS in
15966 "getloadavg.$ac_objext" | \
15967 *" getloadavg.$ac_objext" | \
15968 "getloadavg.$ac_objext "* | \
15969 *" getloadavg.$ac_objext "* ) ;;
15970 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15971 esac
15974 cat >>confdefs.h <<\_ACEOF
15975 #define C_GETLOADAVG 1
15976 _ACEOF
15978 # Figure out what our getloadavg.c needs.
15979 ac_have_func=no
15980 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15981 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15982 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15983 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15987 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15988 else
15989 # Is the header compilable?
15990 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15991 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
15999 #include <sys/dg_sys_info.h>
16000 _ACEOF
16001 rm -f conftest.$ac_objext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -z "$ac_c_werror_flag"
16011 || test ! -s conftest.err'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest.$ac_objext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_header_compiler=yes
16024 else
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ac_header_compiler=no
16030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16032 echo "${ECHO_T}$ac_header_compiler" >&6
16034 # Is the header present?
16035 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16036 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 #include <sys/dg_sys_info.h>
16044 _ACEOF
16045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } >/dev/null; then
16053 if test -s conftest.err; then
16054 ac_cpp_err=$ac_c_preproc_warn_flag
16055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16056 else
16057 ac_cpp_err=
16059 else
16060 ac_cpp_err=yes
16062 if test -z "$ac_cpp_err"; then
16063 ac_header_preproc=yes
16064 else
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 ac_header_preproc=no
16070 rm -f conftest.err conftest.$ac_ext
16071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16072 echo "${ECHO_T}$ac_header_preproc" >&6
16074 # So? What about this header?
16075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16076 yes:no: )
16077 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16078 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16080 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16081 ac_header_preproc=yes
16083 no:yes:* )
16084 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16085 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16087 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16089 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16091 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16093 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16095 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16097 cat <<\_ASBOX
16098 ## ------------------------------------------ ##
16099 ## Report this to the AC_PACKAGE_NAME lists. ##
16100 ## ------------------------------------------ ##
16101 _ASBOX
16103 sed "s/^/$as_me: WARNING: /" >&2
16105 esac
16106 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16107 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16108 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16113 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16114 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16117 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16118 ac_have_func=yes
16120 cat >>confdefs.h <<\_ACEOF
16121 #define DGUX 1
16122 _ACEOF
16125 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16126 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16127 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130 ac_check_lib_save_LIBS=$LIBS
16131 LIBS="-ldgc $LIBS"
16132 cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h. */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16139 /* Override any gcc2 internal prototype to avoid an error. */
16140 #ifdef __cplusplus
16141 extern "C"
16142 #endif
16143 /* We use char because int might match the return type of a gcc2
16144 builtin and then its argument prototype would still apply. */
16145 char dg_sys_info ();
16147 main ()
16149 dg_sys_info ();
16151 return 0;
16153 _ACEOF
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16156 (eval $ac_link) 2>conftest.er1
16157 ac_status=$?
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
16163 { ac_try='test -z "$ac_c_werror_flag"
16164 || test ! -s conftest.err'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; } &&
16170 { ac_try='test -s conftest$ac_exeext'
16171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172 (eval $ac_try) 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16176 ac_cv_lib_dgc_dg_sys_info=yes
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_cv_lib_dgc_dg_sys_info=no
16183 rm -f conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16185 LIBS=$ac_check_lib_save_LIBS
16187 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16188 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16189 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16190 cat >>confdefs.h <<_ACEOF
16191 #define HAVE_LIBDGC 1
16192 _ACEOF
16194 LIBS="-ldgc $LIBS"
16202 if test "${ac_cv_header_locale_h+set}" = set; then
16203 echo "$as_me:$LINENO: checking for locale.h" >&5
16204 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16205 if test "${ac_cv_header_locale_h+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16209 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16210 else
16211 # Is the header compilable?
16212 echo "$as_me:$LINENO: checking locale.h usability" >&5
16213 echo $ECHO_N "checking locale.h usability... $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 $ac_includes_default
16221 #include <locale.h>
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ac_header_compiler=yes
16246 else
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16250 ac_header_compiler=no
16252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16254 echo "${ECHO_T}$ac_header_compiler" >&6
16256 # Is the header present?
16257 echo "$as_me:$LINENO: checking locale.h presence" >&5
16258 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16259 cat >conftest.$ac_ext <<_ACEOF
16260 /* confdefs.h. */
16261 _ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16265 #include <locale.h>
16266 _ACEOF
16267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } >/dev/null; then
16275 if test -s conftest.err; then
16276 ac_cpp_err=$ac_c_preproc_warn_flag
16277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16278 else
16279 ac_cpp_err=
16281 else
16282 ac_cpp_err=yes
16284 if test -z "$ac_cpp_err"; then
16285 ac_header_preproc=yes
16286 else
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_header_preproc=no
16292 rm -f conftest.err conftest.$ac_ext
16293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16294 echo "${ECHO_T}$ac_header_preproc" >&6
16296 # So? What about this header?
16297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16298 yes:no: )
16299 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16300 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16302 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16303 ac_header_preproc=yes
16305 no:yes:* )
16306 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16307 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16309 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16311 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16313 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16315 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16317 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16319 cat <<\_ASBOX
16320 ## ------------------------------------------ ##
16321 ## Report this to the AC_PACKAGE_NAME lists. ##
16322 ## ------------------------------------------ ##
16323 _ASBOX
16325 sed "s/^/$as_me: WARNING: /" >&2
16327 esac
16328 echo "$as_me:$LINENO: checking for locale.h" >&5
16329 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16330 if test "${ac_cv_header_locale_h+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333 ac_cv_header_locale_h=$ac_header_preproc
16335 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16336 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16342 for ac_func in setlocale
16344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16345 echo "$as_me:$LINENO: checking for $ac_func" >&5
16346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16347 if eval "test \"\${$as_ac_var+set}\" = set"; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350 cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h. */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16358 #define $ac_func innocuous_$ac_func
16360 /* System header to define __stub macros and hopefully few prototypes,
16361 which can conflict with char $ac_func (); below.
16362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16363 <limits.h> exists even on freestanding compilers. */
16365 #ifdef __STDC__
16366 # include <limits.h>
16367 #else
16368 # include <assert.h>
16369 #endif
16371 #undef $ac_func
16373 /* Override any gcc2 internal prototype to avoid an error. */
16374 #ifdef __cplusplus
16375 extern "C"
16377 #endif
16378 /* We use char because int might match the return type of a gcc2
16379 builtin and then its argument prototype would still apply. */
16380 char $ac_func ();
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385 choke me
16386 #else
16387 char (*f) () = $ac_func;
16388 #endif
16389 #ifdef __cplusplus
16391 #endif
16394 main ()
16396 return f != $ac_func;
16398 return 0;
16400 _ACEOF
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403 (eval $ac_link) 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag"
16411 || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try='test -s conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 eval "$as_ac_var=yes"
16424 else
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 eval "$as_ac_var=no"
16430 rm -f conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16435 if test `eval echo '${'$as_ac_var'}'` = yes; then
16436 cat >>confdefs.h <<_ACEOF
16437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16438 _ACEOF
16441 done
16444 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16445 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16446 # Irix 4.0.5F has the header but not the library.
16447 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16448 ac_have_func=yes
16450 cat >>confdefs.h <<\_ACEOF
16451 #define SVR4 1
16452 _ACEOF
16456 if test $ac_have_func = no; then
16457 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16458 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16459 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16460 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16464 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16465 else
16466 # Is the header compilable?
16467 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16468 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 $ac_includes_default
16476 #include <inq_stats/cpustats.h>
16477 _ACEOF
16478 rm -f conftest.$ac_objext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16480 (eval $ac_compile) 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -z "$ac_c_werror_flag"
16488 || test ! -s conftest.err'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try='test -s conftest.$ac_objext'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16500 ac_header_compiler=yes
16501 else
16502 echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16505 ac_header_compiler=no
16507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16509 echo "${ECHO_T}$ac_header_compiler" >&6
16511 # Is the header present?
16512 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16513 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <inq_stats/cpustats.h>
16521 _ACEOF
16522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } >/dev/null; then
16530 if test -s conftest.err; then
16531 ac_cpp_err=$ac_c_preproc_warn_flag
16532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16533 else
16534 ac_cpp_err=
16536 else
16537 ac_cpp_err=yes
16539 if test -z "$ac_cpp_err"; then
16540 ac_header_preproc=yes
16541 else
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_header_preproc=no
16547 rm -f conftest.err conftest.$ac_ext
16548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16549 echo "${ECHO_T}$ac_header_preproc" >&6
16551 # So? What about this header?
16552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16553 yes:no: )
16554 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16555 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16557 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16558 ac_header_preproc=yes
16560 no:yes:* )
16561 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16562 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16564 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16566 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16568 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16570 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16572 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16574 cat <<\_ASBOX
16575 ## ------------------------------------------ ##
16576 ## Report this to the AC_PACKAGE_NAME lists. ##
16577 ## ------------------------------------------ ##
16578 _ASBOX
16580 sed "s/^/$as_me: WARNING: /" >&2
16582 esac
16583 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16584 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16585 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16590 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16591 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16594 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16595 ac_have_func=yes
16597 cat >>confdefs.h <<\_ACEOF
16598 #define UMAX 1
16599 _ACEOF
16602 cat >>confdefs.h <<\_ACEOF
16603 #define UMAX4_3 1
16604 _ACEOF
16611 if test $ac_have_func = no; then
16612 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16613 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16614 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16615 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16619 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16620 else
16621 # Is the header compilable?
16622 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16623 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 $ac_includes_default
16631 #include <sys/cpustats.h>
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635 (eval $ac_compile) 2>conftest.er1
16636 ac_status=$?
16637 grep -v '^ *+' conftest.er1 >conftest.err
16638 rm -f conftest.er1
16639 cat conftest.err >&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try='test -z "$ac_c_werror_flag"
16643 || test ! -s conftest.err'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest.$ac_objext'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_header_compiler=yes
16656 else
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ac_header_compiler=no
16662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16664 echo "${ECHO_T}$ac_header_compiler" >&6
16666 # Is the header present?
16667 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16668 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16669 cat >conftest.$ac_ext <<_ACEOF
16670 /* confdefs.h. */
16671 _ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h. */
16675 #include <sys/cpustats.h>
16676 _ACEOF
16677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16679 ac_status=$?
16680 grep -v '^ *+' conftest.er1 >conftest.err
16681 rm -f conftest.er1
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } >/dev/null; then
16685 if test -s conftest.err; then
16686 ac_cpp_err=$ac_c_preproc_warn_flag
16687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16688 else
16689 ac_cpp_err=
16691 else
16692 ac_cpp_err=yes
16694 if test -z "$ac_cpp_err"; then
16695 ac_header_preproc=yes
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 ac_header_preproc=no
16702 rm -f conftest.err conftest.$ac_ext
16703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16704 echo "${ECHO_T}$ac_header_preproc" >&6
16706 # So? What about this header?
16707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16708 yes:no: )
16709 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16710 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16711 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16712 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16713 ac_header_preproc=yes
16715 no:yes:* )
16716 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16717 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16719 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16720 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16721 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16723 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16725 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16727 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16729 cat <<\_ASBOX
16730 ## ------------------------------------------ ##
16731 ## Report this to the AC_PACKAGE_NAME lists. ##
16732 ## ------------------------------------------ ##
16733 _ASBOX
16735 sed "s/^/$as_me: WARNING: /" >&2
16737 esac
16738 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16739 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16740 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16745 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16746 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16749 if test $ac_cv_header_sys_cpustats_h = yes; then
16750 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16751 #define UMAX 1
16752 _ACEOF
16759 if test $ac_have_func = no; then
16761 for ac_header in mach/mach.h
16763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16765 echo "$as_me:$LINENO: checking for $ac_header" >&5
16766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16772 else
16773 # Is the header compilable?
16774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16776 cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h. */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 $ac_includes_default
16783 #include <$ac_header>
16784 _ACEOF
16785 rm -f conftest.$ac_objext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16787 (eval $ac_compile) 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_header_compiler=yes
16808 else
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 ac_header_compiler=no
16814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16816 echo "${ECHO_T}$ac_header_compiler" >&6
16818 # Is the header present?
16819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16821 cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 #include <$ac_header>
16828 _ACEOF
16829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } >/dev/null; then
16837 if test -s conftest.err; then
16838 ac_cpp_err=$ac_c_preproc_warn_flag
16839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16840 else
16841 ac_cpp_err=
16843 else
16844 ac_cpp_err=yes
16846 if test -z "$ac_cpp_err"; then
16847 ac_header_preproc=yes
16848 else
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 ac_header_preproc=no
16854 rm -f conftest.err conftest.$ac_ext
16855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16856 echo "${ECHO_T}$ac_header_preproc" >&6
16858 # So? What about this header?
16859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16860 yes:no: )
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16865 ac_header_preproc=yes
16867 no:yes:* )
16868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16881 cat <<\_ASBOX
16882 ## ------------------------------------------ ##
16883 ## Report this to the AC_PACKAGE_NAME lists. ##
16884 ## ------------------------------------------ ##
16885 _ASBOX
16887 sed "s/^/$as_me: WARNING: /" >&2
16889 esac
16890 echo "$as_me:$LINENO: checking for $ac_header" >&5
16891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895 eval "$as_ac_Header=\$ac_header_preproc"
16897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16902 cat >>confdefs.h <<_ACEOF
16903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16904 _ACEOF
16908 done
16913 for ac_header in nlist.h
16915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16917 echo "$as_me:$LINENO: checking for $ac_header" >&5
16918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16924 else
16925 # Is the header compilable?
16926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h. */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 $ac_includes_default
16935 #include <$ac_header>
16936 _ACEOF
16937 rm -f conftest.$ac_objext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16939 (eval $ac_compile) 2>conftest.er1
16940 ac_status=$?
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16959 ac_header_compiler=yes
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_header_compiler=no
16966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16968 echo "${ECHO_T}$ac_header_compiler" >&6
16970 # Is the header present?
16971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <$ac_header>
16980 _ACEOF
16981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } >/dev/null; then
16989 if test -s conftest.err; then
16990 ac_cpp_err=$ac_c_preproc_warn_flag
16991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16992 else
16993 ac_cpp_err=
16995 else
16996 ac_cpp_err=yes
16998 if test -z "$ac_cpp_err"; then
16999 ac_header_preproc=yes
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_header_preproc=no
17006 rm -f conftest.err conftest.$ac_ext
17007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17008 echo "${ECHO_T}$ac_header_preproc" >&6
17010 # So? What about this header?
17011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17012 yes:no: )
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17017 ac_header_preproc=yes
17019 no:yes:* )
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17033 cat <<\_ASBOX
17034 ## ------------------------------------------ ##
17035 ## Report this to the AC_PACKAGE_NAME lists. ##
17036 ## ------------------------------------------ ##
17037 _ASBOX
17039 sed "s/^/$as_me: WARNING: /" >&2
17041 esac
17042 echo "$as_me:$LINENO: checking for $ac_header" >&5
17043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047 eval "$as_ac_Header=\$ac_header_preproc"
17049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17054 cat >>confdefs.h <<_ACEOF
17055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17056 _ACEOF
17057 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17058 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17059 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062 cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h. */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 #include <nlist.h>
17071 main ()
17073 static struct nlist ac_aggr;
17074 if (ac_aggr.n_un.n_name)
17075 return 0;
17077 return 0;
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082 (eval $ac_compile) 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -z "$ac_c_werror_flag"
17090 || test ! -s conftest.err'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest.$ac_objext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_member_struct_nlist_n_un_n_name=yes
17103 else
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h. */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 #include <nlist.h>
17116 main ()
17118 static struct nlist ac_aggr;
17119 if (sizeof ac_aggr.n_un.n_name)
17120 return 0;
17122 return 0;
17124 _ACEOF
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_member_struct_nlist_n_un_n_name=yes
17148 else
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_cv_member_struct_nlist_n_un_n_name=no
17154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17159 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17160 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17162 cat >>confdefs.h <<_ACEOF
17163 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17164 _ACEOF
17167 cat >>confdefs.h <<\_ACEOF
17168 #define NLIST_NAME_UNION 1
17169 _ACEOF
17176 done
17179 done
17182 # Some definitions of getloadavg require that the program be installed setgid.
17183 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17184 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17185 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188 cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h. */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17195 #ifdef LDAV_PRIVILEGED
17196 Yowza Am I SETGID yet
17197 #endif
17198 _ACEOF
17199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17200 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17201 ac_cv_func_getloadavg_setgid=yes
17202 else
17203 ac_cv_func_getloadavg_setgid=no
17205 rm -f conftest*
17208 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17209 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17210 if test $ac_cv_func_getloadavg_setgid = yes; then
17211 NEED_SETGID=true
17213 cat >>confdefs.h <<\_ACEOF
17214 #define GETLOADAVG_PRIVILEGED 1
17215 _ACEOF
17217 else
17218 NEED_SETGID=false
17221 if test $ac_cv_func_getloadavg_setgid = yes; then
17222 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17223 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17224 if test "${ac_cv_group_kmem+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17228 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17229 # If we got an error (system does not support symlinks), try without -L.
17230 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17231 ac_cv_group_kmem=`echo $ac_ls_output \
17232 | sed -ne 's/[ ][ ]*/ /g;
17233 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17234 / /s/.* //;p;'`
17237 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17238 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17239 KMEM_GROUP=$ac_cv_group_kmem
17241 if test "x$ac_save_LIBS" = x; then
17242 GETLOADAVG_LIBS=$LIBS
17243 else
17244 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17246 LIBS=$ac_save_LIBS
17250 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17251 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17252 if test "${ac_cv_sys_largefile_source+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255 while :; do
17256 ac_cv_sys_largefile_source=no
17257 cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h. */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17263 #include <stdio.h>
17265 main ()
17267 return !fseeko;
17269 return 0;
17271 _ACEOF
17272 rm -f conftest.$ac_objext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274 (eval $ac_compile) 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try='test -z "$ac_c_werror_flag"
17282 || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try='test -s conftest.$ac_objext'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 break
17295 else
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17301 cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h. */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 #define _LARGEFILE_SOURCE 1
17308 #include <stdio.h>
17310 main ()
17312 return !fseeko;
17314 return 0;
17316 _ACEOF
17317 rm -f conftest.$ac_objext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17319 (eval $ac_compile) 2>conftest.er1
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try='test -z "$ac_c_werror_flag"
17327 || test ! -s conftest.err'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest.$ac_objext'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17336 ac_status=$?
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 ac_cv_sys_largefile_source=1; break
17340 else
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17346 break
17347 done
17349 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17350 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17351 if test "$ac_cv_sys_largefile_source" != no; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17355 _ACEOF
17358 rm -f conftest*
17360 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17361 # in glibc 2.1.3, but that breaks too many other things.
17362 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17363 echo "$as_me:$LINENO: checking for fseeko" >&5
17364 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17365 if test "${ac_cv_func_fseeko+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <stdio.h>
17376 main ()
17378 return fseeko && fseeko (stdin, 0, 0);
17380 return 0;
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag"
17393 || test ! -s conftest.err'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest$ac_exeext'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 ac_cv_func_fseeko=yes
17406 else
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17410 ac_cv_func_fseeko=no
17412 rm -f conftest.err conftest.$ac_objext \
17413 conftest$ac_exeext conftest.$ac_ext
17415 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17416 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17417 if test $ac_cv_func_fseeko = yes; then
17419 cat >>confdefs.h <<\_ACEOF
17420 #define HAVE_FSEEKO 1
17421 _ACEOF
17426 # Configure getopt.
17427 # getopt.m4 serial 10
17429 # The getopt module assume you want GNU getopt, with getopt_long etc,
17430 # rather than vanilla POSIX getopt. This means your your code should
17431 # always include <getopt.h> for the getopt prototypes.
17443 # Prerequisites of lib/getopt*.
17448 GETOPT_H=
17450 for ac_header in getopt.h
17452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17454 echo "$as_me:$LINENO: checking for $ac_header" >&5
17455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17461 else
17462 # Is the header compilable?
17463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17465 cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h. */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 $ac_includes_default
17472 #include <$ac_header>
17473 _ACEOF
17474 rm -f conftest.$ac_objext
17475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17476 (eval $ac_compile) 2>conftest.er1
17477 ac_status=$?
17478 grep -v '^ *+' conftest.er1 >conftest.err
17479 rm -f conftest.er1
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } &&
17483 { ac_try='test -z "$ac_c_werror_flag"
17484 || test ! -s conftest.err'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try='test -s conftest.$ac_objext'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; }; then
17496 ac_header_compiler=yes
17497 else
17498 echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.$ac_ext >&5
17501 ac_header_compiler=no
17503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17505 echo "${ECHO_T}$ac_header_compiler" >&6
17507 # Is the header present?
17508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17510 cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h. */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 #include <$ac_header>
17517 _ACEOF
17518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17520 ac_status=$?
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } >/dev/null; then
17526 if test -s conftest.err; then
17527 ac_cpp_err=$ac_c_preproc_warn_flag
17528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17529 else
17530 ac_cpp_err=
17532 else
17533 ac_cpp_err=yes
17535 if test -z "$ac_cpp_err"; then
17536 ac_header_preproc=yes
17537 else
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 ac_header_preproc=no
17543 rm -f conftest.err conftest.$ac_ext
17544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17545 echo "${ECHO_T}$ac_header_preproc" >&6
17547 # So? What about this header?
17548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17549 yes:no: )
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17554 ac_header_preproc=yes
17556 no:yes:* )
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17570 cat <<\_ASBOX
17571 ## ------------------------------------------ ##
17572 ## Report this to the AC_PACKAGE_NAME lists. ##
17573 ## ------------------------------------------ ##
17574 _ASBOX
17576 sed "s/^/$as_me: WARNING: /" >&2
17578 esac
17579 echo "$as_me:$LINENO: checking for $ac_header" >&5
17580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584 eval "$as_ac_Header=\$ac_header_preproc"
17586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17593 _ACEOF
17595 else
17596 GETOPT_H=getopt.h
17599 done
17601 if test -z "$GETOPT_H"; then
17603 for ac_func in getopt_long_only
17605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17606 echo "$as_me:$LINENO: checking for $ac_func" >&5
17607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17608 if eval "test \"\${$as_ac_var+set}\" = set"; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
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. */
17617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17619 #define $ac_func innocuous_$ac_func
17621 /* System header to define __stub macros and hopefully few prototypes,
17622 which can conflict with char $ac_func (); below.
17623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17624 <limits.h> exists even on freestanding compilers. */
17626 #ifdef __STDC__
17627 # include <limits.h>
17628 #else
17629 # include <assert.h>
17630 #endif
17632 #undef $ac_func
17634 /* Override any gcc2 internal prototype to avoid an error. */
17635 #ifdef __cplusplus
17636 extern "C"
17638 #endif
17639 /* We use char because int might match the return type of a gcc2
17640 builtin and then its argument prototype would still apply. */
17641 char $ac_func ();
17642 /* The GNU C library defines this for functions which it implements
17643 to always fail with ENOSYS. Some functions are actually named
17644 something starting with __ and the normal name is an alias. */
17645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17646 choke me
17647 #else
17648 char (*f) () = $ac_func;
17649 #endif
17650 #ifdef __cplusplus
17652 #endif
17655 main ()
17657 return f != $ac_func;
17659 return 0;
17661 _ACEOF
17662 rm -f conftest.$ac_objext conftest$ac_exeext
17663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17664 (eval $ac_link) 2>conftest.er1
17665 ac_status=$?
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_c_werror_flag"
17672 || test ! -s conftest.err'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
17678 { ac_try='test -s conftest$ac_exeext'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 eval "$as_ac_var=yes"
17685 else
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 eval "$as_ac_var=no"
17691 rm -f conftest.err conftest.$ac_objext \
17692 conftest$ac_exeext conftest.$ac_ext
17694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17696 if test `eval echo '${'$as_ac_var'}'` = yes; then
17697 cat >>confdefs.h <<_ACEOF
17698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17699 _ACEOF
17701 else
17702 GETOPT_H=getopt.h
17704 done
17708 if test -z "$GETOPT_H"; then
17709 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17710 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17711 if test "${ac_cv_have_decl_optreset+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include <getopt.h>
17723 main ()
17725 #ifndef optreset
17726 char *p = (char *) optreset;
17727 #endif
17730 return 0;
17732 _ACEOF
17733 rm -f conftest.$ac_objext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17735 (eval $ac_compile) 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_c_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest.$ac_objext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_have_decl_optreset=yes
17756 else
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_cv_have_decl_optreset=no
17762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17765 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17766 if test $ac_cv_have_decl_optreset = yes; then
17767 GETOPT_H=getopt.h
17772 if test -z "$GETOPT_H"; then
17773 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17774 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17775 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778 if test "$cross_compiling" = yes; then
17779 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17780 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17781 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h. */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 #include <getopt.h>
17793 main ()
17795 #ifndef getopt_clip
17796 char *p = (char *) getopt_clip;
17797 #endif
17800 return 0;
17802 _ACEOF
17803 rm -f conftest.$ac_objext
17804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17805 (eval $ac_compile) 2>conftest.er1
17806 ac_status=$?
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } &&
17812 { ac_try='test -z "$ac_c_werror_flag"
17813 || test ! -s conftest.err'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try='test -s conftest.$ac_objext'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_cv_have_decl_getopt_clip=yes
17826 else
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 ac_cv_have_decl_getopt_clip=no
17832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17834 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17835 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17836 if test $ac_cv_have_decl_getopt_clip = yes; then
17837 gl_cv_func_gnu_getopt=no
17838 else
17839 gl_cv_func_gnu_getopt=yes
17842 else
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 #include <getopt.h>
17851 main ()
17854 char *myargv[3];
17855 myargv[0] = "conftest";
17856 myargv[1] = "-+";
17857 myargv[2] = 0;
17858 return getopt (2, myargv, "+a") != '?';
17861 return 0;
17863 _ACEOF
17864 rm -f conftest$ac_exeext
17865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17866 (eval $ac_link) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 gl_cv_func_gnu_getopt=yes
17876 else
17877 echo "$as_me: program exited with status $ac_status" >&5
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ( exit $ac_status )
17882 gl_cv_func_gnu_getopt=no
17884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17887 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17888 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17889 if test "$gl_cv_func_gnu_getopt" = "no"; then
17890 GETOPT_H=getopt.h
17896 if test -n "$GETOPT_H"; then
17899 GETOPT_H=getopt.h
17901 cat >>confdefs.h <<\_ACEOF
17902 #define __GETOPT_PREFIX rpl_
17903 _ACEOF
17908 GETOPTOBJS='getopt.o getopt1.o'
17915 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17916 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17917 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920 # Use it with a single arg.
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 $ac_includes_default
17929 main ()
17931 getpgrp (0);
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17938 (eval $ac_compile) 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag"
17946 || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest.$ac_objext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_func_getpgrp_void=no
17959 else
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 ac_cv_func_getpgrp_void=yes
17965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17968 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17969 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17970 if test $ac_cv_func_getpgrp_void = yes; then
17972 cat >>confdefs.h <<\_ACEOF
17973 #define GETPGRP_VOID 1
17974 _ACEOF
17980 for ac_func in strftime
17982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983 echo "$as_me:$LINENO: checking for $ac_func" >&5
17984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17985 if eval "test \"\${$as_ac_var+set}\" = set"; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h. */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17996 #define $ac_func innocuous_$ac_func
17998 /* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char $ac_func (); below.
18000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001 <limits.h> exists even on freestanding compilers. */
18003 #ifdef __STDC__
18004 # include <limits.h>
18005 #else
18006 # include <assert.h>
18007 #endif
18009 #undef $ac_func
18011 /* Override any gcc2 internal prototype to avoid an error. */
18012 #ifdef __cplusplus
18013 extern "C"
18015 #endif
18016 /* We use char because int might match the return type of a gcc2
18017 builtin and then its argument prototype would still apply. */
18018 char $ac_func ();
18019 /* The GNU C library defines this for functions which it implements
18020 to always fail with ENOSYS. Some functions are actually named
18021 something starting with __ and the normal name is an alias. */
18022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18023 choke me
18024 #else
18025 char (*f) () = $ac_func;
18026 #endif
18027 #ifdef __cplusplus
18029 #endif
18032 main ()
18034 return f != $ac_func;
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 eval "$as_ac_var=yes"
18062 else
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 eval "$as_ac_var=no"
18068 rm -f conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18073 if test `eval echo '${'$as_ac_var'}'` = yes; then
18074 cat >>confdefs.h <<_ACEOF
18075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18076 _ACEOF
18078 else
18079 # strftime is in -lintl on SCO UNIX.
18080 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18081 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18082 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 else
18085 ac_check_lib_save_LIBS=$LIBS
18086 LIBS="-lintl $LIBS"
18087 cat >conftest.$ac_ext <<_ACEOF
18088 /* confdefs.h. */
18089 _ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18094 /* Override any gcc2 internal prototype to avoid an error. */
18095 #ifdef __cplusplus
18096 extern "C"
18097 #endif
18098 /* We use char because int might match the return type of a gcc2
18099 builtin and then its argument prototype would still apply. */
18100 char strftime ();
18102 main ()
18104 strftime ();
18106 return 0;
18108 _ACEOF
18109 rm -f conftest.$ac_objext conftest$ac_exeext
18110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18111 (eval $ac_link) 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_c_werror_flag"
18119 || test ! -s conftest.err'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_lib_intl_strftime=yes
18132 else
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_lib_intl_strftime=no
18138 rm -f conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18140 LIBS=$ac_check_lib_save_LIBS
18142 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18143 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18144 if test $ac_cv_lib_intl_strftime = yes; then
18145 cat >>confdefs.h <<\_ACEOF
18146 #define HAVE_STRFTIME 1
18147 _ACEOF
18149 LIBS="-lintl $LIBS"
18153 done
18156 # UNIX98 PTYs.
18158 for ac_func in grantpt
18160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18161 echo "$as_me:$LINENO: checking for $ac_func" >&5
18162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18163 if eval "test \"\${$as_ac_var+set}\" = set"; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
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. */
18172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18174 #define $ac_func innocuous_$ac_func
18176 /* System header to define __stub macros and hopefully few prototypes,
18177 which can conflict with char $ac_func (); below.
18178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18179 <limits.h> exists even on freestanding compilers. */
18181 #ifdef __STDC__
18182 # include <limits.h>
18183 #else
18184 # include <assert.h>
18185 #endif
18187 #undef $ac_func
18189 /* Override any gcc2 internal prototype to avoid an error. */
18190 #ifdef __cplusplus
18191 extern "C"
18193 #endif
18194 /* We use char because int might match the return type of a gcc2
18195 builtin and then its argument prototype would still apply. */
18196 char $ac_func ();
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18201 choke me
18202 #else
18203 char (*f) () = $ac_func;
18204 #endif
18205 #ifdef __cplusplus
18207 #endif
18210 main ()
18212 return f != $ac_func;
18214 return 0;
18216 _ACEOF
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18219 (eval $ac_link) 2>conftest.er1
18220 ac_status=$?
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
18226 { ac_try='test -z "$ac_c_werror_flag"
18227 || test ! -s conftest.err'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest$ac_exeext'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 eval "$as_ac_var=yes"
18240 else
18241 echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18244 eval "$as_ac_var=no"
18246 rm -f conftest.err conftest.$ac_objext \
18247 conftest$ac_exeext conftest.$ac_ext
18249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18251 if test `eval echo '${'$as_ac_var'}'` = yes; then
18252 cat >>confdefs.h <<_ACEOF
18253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18254 _ACEOF
18257 done
18260 # PTY-related GNU extensions.
18262 for ac_func in getpt
18264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18265 echo "$as_me:$LINENO: checking for $ac_func" >&5
18266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18267 if eval "test \"\${$as_ac_var+set}\" = set"; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 else
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18278 #define $ac_func innocuous_$ac_func
18280 /* System header to define __stub macros and hopefully few prototypes,
18281 which can conflict with char $ac_func (); below.
18282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18283 <limits.h> exists even on freestanding compilers. */
18285 #ifdef __STDC__
18286 # include <limits.h>
18287 #else
18288 # include <assert.h>
18289 #endif
18291 #undef $ac_func
18293 /* Override any gcc2 internal prototype to avoid an error. */
18294 #ifdef __cplusplus
18295 extern "C"
18297 #endif
18298 /* We use char because int might match the return type of a gcc2
18299 builtin and then its argument prototype would still apply. */
18300 char $ac_func ();
18301 /* The GNU C library defines this for functions which it implements
18302 to always fail with ENOSYS. Some functions are actually named
18303 something starting with __ and the normal name is an alias. */
18304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18305 choke me
18306 #else
18307 char (*f) () = $ac_func;
18308 #endif
18309 #ifdef __cplusplus
18311 #endif
18314 main ()
18316 return f != $ac_func;
18318 return 0;
18320 _ACEOF
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323 (eval $ac_link) 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag"
18331 || test ! -s conftest.err'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 eval "$as_ac_var=yes"
18344 else
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 eval "$as_ac_var=no"
18350 rm -f conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18355 if test `eval echo '${'$as_ac_var'}'` = yes; then
18356 cat >>confdefs.h <<_ACEOF
18357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18358 _ACEOF
18361 done
18364 # Check this now, so that we will NOT find the above functions in ncurses.
18365 # That is because we have not set up to link ncurses in lib-src.
18366 # It's better to believe a function is not available
18367 # than to expect to find it in ncurses.
18369 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18370 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18371 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374 ac_check_lib_save_LIBS=$LIBS
18375 LIBS="-lncurses $LIBS"
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h. */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18383 /* Override any gcc2 internal prototype to avoid an error. */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 /* We use char because int might match the return type of a gcc2
18388 builtin and then its argument prototype would still apply. */
18389 char tparm ();
18391 main ()
18393 tparm ();
18395 return 0;
18397 _ACEOF
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400 (eval $ac_link) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
18407 { ac_try='test -z "$ac_c_werror_flag"
18408 || test ! -s conftest.err'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest$ac_exeext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_cv_lib_ncurses_tparm=yes
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 ac_cv_lib_ncurses_tparm=no
18427 rm -f conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429 LIBS=$ac_check_lib_save_LIBS
18431 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18432 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18433 if test $ac_cv_lib_ncurses_tparm = yes; then
18434 cat >>confdefs.h <<_ACEOF
18435 #define HAVE_LIBNCURSES 1
18436 _ACEOF
18438 LIBS="-lncurses $LIBS"
18443 # Do we need the Hesiod library to provide the support routines?
18444 if test "$with_hesiod" = yes ; then
18445 # Don't set $LIBS here -- see comments above.
18446 resolv=no
18447 echo "$as_me:$LINENO: checking for res_send" >&5
18448 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18449 if test "${ac_cv_func_res_send+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18460 #define res_send innocuous_res_send
18462 /* System header to define __stub macros and hopefully few prototypes,
18463 which can conflict with char res_send (); below.
18464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18465 <limits.h> exists even on freestanding compilers. */
18467 #ifdef __STDC__
18468 # include <limits.h>
18469 #else
18470 # include <assert.h>
18471 #endif
18473 #undef res_send
18475 /* Override any gcc2 internal prototype to avoid an error. */
18476 #ifdef __cplusplus
18477 extern "C"
18479 #endif
18480 /* We use char because int might match the return type of a gcc2
18481 builtin and then its argument prototype would still apply. */
18482 char res_send ();
18483 /* The GNU C library defines this for functions which it implements
18484 to always fail with ENOSYS. Some functions are actually named
18485 something starting with __ and the normal name is an alias. */
18486 #if defined (__stub_res_send) || defined (__stub___res_send)
18487 choke me
18488 #else
18489 char (*f) () = res_send;
18490 #endif
18491 #ifdef __cplusplus
18493 #endif
18496 main ()
18498 return f != res_send;
18500 return 0;
18502 _ACEOF
18503 rm -f conftest.$ac_objext conftest$ac_exeext
18504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18505 (eval $ac_link) 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_c_werror_flag"
18513 || test ! -s conftest.err'
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; } &&
18519 { ac_try='test -s conftest$ac_exeext'
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 ac_cv_func_res_send=yes
18526 else
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 ac_cv_func_res_send=no
18532 rm -f conftest.err conftest.$ac_objext \
18533 conftest$ac_exeext conftest.$ac_ext
18535 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18536 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18537 if test $ac_cv_func_res_send = yes; then
18539 else
18540 echo "$as_me:$LINENO: checking for __res_send" >&5
18541 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18542 if test "${ac_cv_func___res_send+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h. */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18553 #define __res_send innocuous___res_send
18555 /* System header to define __stub macros and hopefully few prototypes,
18556 which can conflict with char __res_send (); below.
18557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18558 <limits.h> exists even on freestanding compilers. */
18560 #ifdef __STDC__
18561 # include <limits.h>
18562 #else
18563 # include <assert.h>
18564 #endif
18566 #undef __res_send
18568 /* Override any gcc2 internal prototype to avoid an error. */
18569 #ifdef __cplusplus
18570 extern "C"
18572 #endif
18573 /* We use char because int might match the return type of a gcc2
18574 builtin and then its argument prototype would still apply. */
18575 char __res_send ();
18576 /* The GNU C library defines this for functions which it implements
18577 to always fail with ENOSYS. Some functions are actually named
18578 something starting with __ and the normal name is an alias. */
18579 #if defined (__stub___res_send) || defined (__stub_____res_send)
18580 choke me
18581 #else
18582 char (*f) () = __res_send;
18583 #endif
18584 #ifdef __cplusplus
18586 #endif
18589 main ()
18591 return f != __res_send;
18593 return 0;
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_func___res_send=yes
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_cv_func___res_send=no
18625 rm -f conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18628 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18629 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18630 if test $ac_cv_func___res_send = yes; then
18632 else
18633 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18634 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18635 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 else
18638 ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-lresolv $LIBS"
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h. */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18647 /* Override any gcc2 internal prototype to avoid an error. */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 /* We use char because int might match the return type of a gcc2
18652 builtin and then its argument prototype would still apply. */
18653 char res_send ();
18655 main ()
18657 res_send ();
18659 return 0;
18661 _ACEOF
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664 (eval $ac_link) 2>conftest.er1
18665 ac_status=$?
18666 grep -v '^ *+' conftest.er1 >conftest.err
18667 rm -f conftest.er1
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try='test -z "$ac_c_werror_flag"
18672 || test ! -s conftest.err'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18675 ac_status=$?
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try='test -s conftest$ac_exeext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_cv_lib_resolv_res_send=yes
18685 else
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18689 ac_cv_lib_resolv_res_send=no
18691 rm -f conftest.err conftest.$ac_objext \
18692 conftest$ac_exeext conftest.$ac_ext
18693 LIBS=$ac_check_lib_save_LIBS
18695 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18696 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18697 if test $ac_cv_lib_resolv_res_send = yes; then
18698 resolv=yes
18699 else
18700 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18701 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18702 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705 ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-lresolv $LIBS"
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18714 /* Override any gcc2 internal prototype to avoid an error. */
18715 #ifdef __cplusplus
18716 extern "C"
18717 #endif
18718 /* We use char because int might match the return type of a gcc2
18719 builtin and then its argument prototype would still apply. */
18720 char __res_send ();
18722 main ()
18724 __res_send ();
18726 return 0;
18728 _ACEOF
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18731 (eval $ac_link) 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_c_werror_flag"
18739 || test ! -s conftest.err'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; } &&
18745 { ac_try='test -s conftest$ac_exeext'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_cv_lib_resolv___res_send=yes
18752 else
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 ac_cv_lib_resolv___res_send=no
18758 rm -f conftest.err conftest.$ac_objext \
18759 conftest$ac_exeext conftest.$ac_ext
18760 LIBS=$ac_check_lib_save_LIBS
18762 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18763 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18764 if test $ac_cv_lib_resolv___res_send = yes; then
18765 resolv=yes
18774 if test "$resolv" = yes ; then
18775 RESOLVLIB=-lresolv
18777 cat >>confdefs.h <<\_ACEOF
18778 #define HAVE_LIBRESOLV 1
18779 _ACEOF
18781 else
18782 RESOLVLIB=
18784 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18785 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18786 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h. */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define hes_getmailhost innocuous_hes_getmailhost
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char hes_getmailhost (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18804 #ifdef __STDC__
18805 # include <limits.h>
18806 #else
18807 # include <assert.h>
18808 #endif
18810 #undef hes_getmailhost
18812 /* Override any gcc2 internal prototype to avoid an error. */
18813 #ifdef __cplusplus
18814 extern "C"
18816 #endif
18817 /* We use char because int might match the return type of a gcc2
18818 builtin and then its argument prototype would still apply. */
18819 char hes_getmailhost ();
18820 /* The GNU C library defines this for functions which it implements
18821 to always fail with ENOSYS. Some functions are actually named
18822 something starting with __ and the normal name is an alias. */
18823 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18824 choke me
18825 #else
18826 char (*f) () = hes_getmailhost;
18827 #endif
18828 #ifdef __cplusplus
18830 #endif
18833 main ()
18835 return f != hes_getmailhost;
18837 return 0;
18839 _ACEOF
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_func_hes_getmailhost=yes
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_cv_func_hes_getmailhost=no
18869 rm -f conftest.err conftest.$ac_objext \
18870 conftest$ac_exeext conftest.$ac_ext
18872 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18873 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18874 if test $ac_cv_func_hes_getmailhost = yes; then
18876 else
18877 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18878 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18879 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 else
18882 ac_check_lib_save_LIBS=$LIBS
18883 LIBS="-lhesiod $RESOLVLIB $LIBS"
18884 cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h. */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18891 /* Override any gcc2 internal prototype to avoid an error. */
18892 #ifdef __cplusplus
18893 extern "C"
18894 #endif
18895 /* We use char because int might match the return type of a gcc2
18896 builtin and then its argument prototype would still apply. */
18897 char hes_getmailhost ();
18899 main ()
18901 hes_getmailhost ();
18903 return 0;
18905 _ACEOF
18906 rm -f conftest.$ac_objext conftest$ac_exeext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18908 (eval $ac_link) 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928 ac_cv_lib_hesiod_hes_getmailhost=yes
18929 else
18930 echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18933 ac_cv_lib_hesiod_hes_getmailhost=no
18935 rm -f conftest.err conftest.$ac_objext \
18936 conftest$ac_exeext conftest.$ac_ext
18937 LIBS=$ac_check_lib_save_LIBS
18939 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18940 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18941 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18943 cat >>confdefs.h <<\_ACEOF
18944 #define HAVE_LIBHESIOD 1
18945 _ACEOF
18947 else
18955 # These tell us which Kerberos-related libraries to use.
18956 if test "${with_kerberos+set}" = set; then
18958 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18959 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18960 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963 ac_check_lib_save_LIBS=$LIBS
18964 LIBS="-lcom_err $LIBS"
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. */
18972 /* Override any gcc2 internal prototype to avoid an error. */
18973 #ifdef __cplusplus
18974 extern "C"
18975 #endif
18976 /* We use char because int might match the return type of a gcc2
18977 builtin and then its argument prototype would still apply. */
18978 char com_err ();
18980 main ()
18982 com_err ();
18984 return 0;
18986 _ACEOF
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18989 (eval $ac_link) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag"
18997 || test ! -s conftest.err'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest$ac_exeext'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19009 ac_cv_lib_com_err_com_err=yes
19010 else
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19014 ac_cv_lib_com_err_com_err=no
19016 rm -f conftest.err conftest.$ac_objext \
19017 conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19020 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19021 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19022 if test $ac_cv_lib_com_err_com_err = yes; then
19023 cat >>confdefs.h <<_ACEOF
19024 #define HAVE_LIBCOM_ERR 1
19025 _ACEOF
19027 LIBS="-lcom_err $LIBS"
19032 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19033 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19034 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037 ac_check_lib_save_LIBS=$LIBS
19038 LIBS="-lk5crypto $LIBS"
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h. */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19046 /* Override any gcc2 internal prototype to avoid an error. */
19047 #ifdef __cplusplus
19048 extern "C"
19049 #endif
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19052 char mit_des_cbc_encrypt ();
19054 main ()
19056 mit_des_cbc_encrypt ();
19058 return 0;
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063 (eval $ac_link) 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -z "$ac_c_werror_flag"
19071 || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19090 rm -f conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19094 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19095 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19096 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_LIBK5CRYPTO 1
19099 _ACEOF
19101 LIBS="-lk5crypto $LIBS"
19106 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19107 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19108 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111 ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-lcrypto $LIBS"
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h. */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19120 /* Override any gcc2 internal prototype to avoid an error. */
19121 #ifdef __cplusplus
19122 extern "C"
19123 #endif
19124 /* We use char because int might match the return type of a gcc2
19125 builtin and then its argument prototype would still apply. */
19126 char mit_des_cbc_encrypt ();
19128 main ()
19130 mit_des_cbc_encrypt ();
19132 return 0;
19134 _ACEOF
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19137 (eval $ac_link) 2>conftest.er1
19138 ac_status=$?
19139 grep -v '^ *+' conftest.er1 >conftest.err
19140 rm -f conftest.er1
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -z "$ac_c_werror_flag"
19145 || test ! -s conftest.err'
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19148 ac_status=$?
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; } &&
19151 { ac_try='test -s conftest$ac_exeext'
19152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153 (eval $ac_try) 2>&5
19154 ac_status=$?
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; }; then
19157 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19158 else
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19164 rm -f conftest.err conftest.$ac_objext \
19165 conftest$ac_exeext conftest.$ac_ext
19166 LIBS=$ac_check_lib_save_LIBS
19168 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19169 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19170 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_LIBCRYPTO 1
19173 _ACEOF
19175 LIBS="-lcrypto $LIBS"
19180 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19181 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19182 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 else
19185 ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lkrb5 $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h. */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any gcc2 internal prototype to avoid an error. */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 /* We use char because int might match the return type of a gcc2
19199 builtin and then its argument prototype would still apply. */
19200 char krb5_init_context ();
19202 main ()
19204 krb5_init_context ();
19206 return 0;
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19211 (eval $ac_link) 2>conftest.er1
19212 ac_status=$?
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest$ac_exeext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 ac_cv_lib_krb5_krb5_init_context=yes
19232 else
19233 echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19236 ac_cv_lib_krb5_krb5_init_context=no
19238 rm -f conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
19240 LIBS=$ac_check_lib_save_LIBS
19242 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19243 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19244 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19245 cat >>confdefs.h <<_ACEOF
19246 #define HAVE_LIBKRB5 1
19247 _ACEOF
19249 LIBS="-lkrb5 $LIBS"
19253 if test "${with_kerberos5+set}" != set; then
19255 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19256 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19257 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260 ac_check_lib_save_LIBS=$LIBS
19261 LIBS="-ldes425 $LIBS"
19262 cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h. */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19269 /* Override any gcc2 internal prototype to avoid an error. */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 /* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275 char des_cbc_encrypt ();
19277 main ()
19279 des_cbc_encrypt ();
19281 return 0;
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286 (eval $ac_link) 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_lib_des425_des_cbc_encrypt=yes
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 ac_cv_lib_des425_des_cbc_encrypt=no
19313 rm -f conftest.err conftest.$ac_objext \
19314 conftest$ac_exeext conftest.$ac_ext
19315 LIBS=$ac_check_lib_save_LIBS
19317 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19318 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19319 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19320 cat >>confdefs.h <<_ACEOF
19321 #define HAVE_LIBDES425 1
19322 _ACEOF
19324 LIBS="-ldes425 $LIBS"
19326 else
19328 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19329 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19330 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 else
19333 ac_check_lib_save_LIBS=$LIBS
19334 LIBS="-ldes $LIBS"
19335 cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h. */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 /* Override any gcc2 internal prototype to avoid an error. */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 /* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19348 char des_cbc_encrypt ();
19350 main ()
19352 des_cbc_encrypt ();
19354 return 0;
19356 _ACEOF
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359 (eval $ac_link) 2>conftest.er1
19360 ac_status=$?
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_lib_des_des_cbc_encrypt=yes
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_lib_des_des_cbc_encrypt=no
19386 rm -f conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext conftest.$ac_ext
19388 LIBS=$ac_check_lib_save_LIBS
19390 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19391 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19392 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define HAVE_LIBDES 1
19395 _ACEOF
19397 LIBS="-ldes $LIBS"
19404 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19405 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19406 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409 ac_check_lib_save_LIBS=$LIBS
19410 LIBS="-lkrb4 $LIBS"
19411 cat >conftest.$ac_ext <<_ACEOF
19412 /* confdefs.h. */
19413 _ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 /* Override any gcc2 internal prototype to avoid an error. */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19424 char krb_get_cred ();
19426 main ()
19428 krb_get_cred ();
19430 return 0;
19432 _ACEOF
19433 rm -f conftest.$ac_objext conftest$ac_exeext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_c_werror_flag"
19443 || test ! -s conftest.err'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest$ac_exeext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 ac_cv_lib_krb4_krb_get_cred=yes
19456 else
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 ac_cv_lib_krb4_krb_get_cred=no
19462 rm -f conftest.err conftest.$ac_objext \
19463 conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19466 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19467 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19468 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19469 cat >>confdefs.h <<_ACEOF
19470 #define HAVE_LIBKRB4 1
19471 _ACEOF
19473 LIBS="-lkrb4 $LIBS"
19475 else
19477 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19478 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19479 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 else
19482 ac_check_lib_save_LIBS=$LIBS
19483 LIBS="-lkrb $LIBS"
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19491 /* Override any gcc2 internal prototype to avoid an error. */
19492 #ifdef __cplusplus
19493 extern "C"
19494 #endif
19495 /* We use char because int might match the return type of a gcc2
19496 builtin and then its argument prototype would still apply. */
19497 char krb_get_cred ();
19499 main ()
19501 krb_get_cred ();
19503 return 0;
19505 _ACEOF
19506 rm -f conftest.$ac_objext conftest$ac_exeext
19507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19508 (eval $ac_link) 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -z "$ac_c_werror_flag"
19516 || test ! -s conftest.err'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest$ac_exeext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_lib_krb_krb_get_cred=yes
19529 else
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_cv_lib_krb_krb_get_cred=no
19535 rm -f conftest.err conftest.$ac_objext \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19539 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19540 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19541 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_LIBKRB 1
19544 _ACEOF
19546 LIBS="-lkrb $LIBS"
19554 if test "${with_kerberos5+set}" = set; then
19556 for ac_header in krb5.h
19558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19560 echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19567 else
19568 # Is the header compilable?
19569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19571 cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h. */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19577 $ac_includes_default
19578 #include <$ac_header>
19579 _ACEOF
19580 rm -f conftest.$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>conftest.er1
19583 ac_status=$?
19584 grep -v '^ *+' conftest.er1 >conftest.err
19585 rm -f conftest.er1
19586 cat conftest.err >&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
19589 { ac_try='test -z "$ac_c_werror_flag"
19590 || test ! -s conftest.err'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; } &&
19596 { ac_try='test -s conftest.$ac_objext'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; }; then
19602 ac_header_compiler=yes
19603 else
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19607 ac_header_compiler=no
19609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19611 echo "${ECHO_T}$ac_header_compiler" >&6
19613 # Is the header present?
19614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h. */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <$ac_header>
19623 _ACEOF
19624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19626 ac_status=$?
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } >/dev/null; then
19632 if test -s conftest.err; then
19633 ac_cpp_err=$ac_c_preproc_warn_flag
19634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19635 else
19636 ac_cpp_err=
19638 else
19639 ac_cpp_err=yes
19641 if test -z "$ac_cpp_err"; then
19642 ac_header_preproc=yes
19643 else
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 ac_header_preproc=no
19649 rm -f conftest.err conftest.$ac_ext
19650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19651 echo "${ECHO_T}$ac_header_preproc" >&6
19653 # So? What about this header?
19654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19655 yes:no: )
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19660 ac_header_preproc=yes
19662 no:yes:* )
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19676 cat <<\_ASBOX
19677 ## ------------------------------------------ ##
19678 ## Report this to the AC_PACKAGE_NAME lists. ##
19679 ## ------------------------------------------ ##
19680 _ASBOX
19682 sed "s/^/$as_me: WARNING: /" >&2
19684 esac
19685 echo "$as_me:$LINENO: checking for $ac_header" >&5
19686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690 eval "$as_ac_Header=\$ac_header_preproc"
19692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19697 cat >>confdefs.h <<_ACEOF
19698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19699 _ACEOF
19703 done
19705 else
19707 for ac_header in des.h
19709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19711 echo "$as_me:$LINENO: checking for $ac_header" >&5
19712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19718 else
19719 # Is the header compilable?
19720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19722 cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h. */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 $ac_includes_default
19729 #include <$ac_header>
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19733 (eval $ac_compile) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try='test -z "$ac_c_werror_flag"
19741 || test ! -s conftest.err'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest.$ac_objext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 ac_header_compiler=yes
19754 else
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 ac_header_compiler=no
19760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19762 echo "${ECHO_T}$ac_header_compiler" >&6
19764 # Is the header present?
19765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19767 cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h. */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773 #include <$ac_header>
19774 _ACEOF
19775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } >/dev/null; then
19783 if test -s conftest.err; then
19784 ac_cpp_err=$ac_c_preproc_warn_flag
19785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19786 else
19787 ac_cpp_err=
19789 else
19790 ac_cpp_err=yes
19792 if test -z "$ac_cpp_err"; then
19793 ac_header_preproc=yes
19794 else
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 ac_header_preproc=no
19800 rm -f conftest.err conftest.$ac_ext
19801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19802 echo "${ECHO_T}$ac_header_preproc" >&6
19804 # So? What about this header?
19805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19806 yes:no: )
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19811 ac_header_preproc=yes
19813 no:yes:* )
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19827 cat <<\_ASBOX
19828 ## ------------------------------------------ ##
19829 ## Report this to the AC_PACKAGE_NAME lists. ##
19830 ## ------------------------------------------ ##
19831 _ASBOX
19833 sed "s/^/$as_me: WARNING: /" >&2
19835 esac
19836 echo "$as_me:$LINENO: checking for $ac_header" >&5
19837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841 eval "$as_ac_Header=\$ac_header_preproc"
19843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19848 cat >>confdefs.h <<_ACEOF
19849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19850 _ACEOF
19852 else
19854 for ac_header in kerberosIV/des.h
19856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19858 echo "$as_me:$LINENO: checking for $ac_header" >&5
19859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19865 else
19866 # Is the header compilable?
19867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h. */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 $ac_includes_default
19876 #include <$ac_header>
19877 _ACEOF
19878 rm -f conftest.$ac_objext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19880 (eval $ac_compile) 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_c_werror_flag"
19888 || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_header_compiler=yes
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_header_compiler=no
19907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19909 echo "${ECHO_T}$ac_header_compiler" >&6
19911 # Is the header present?
19912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 #include <$ac_header>
19921 _ACEOF
19922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } >/dev/null; then
19930 if test -s conftest.err; then
19931 ac_cpp_err=$ac_c_preproc_warn_flag
19932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19933 else
19934 ac_cpp_err=
19936 else
19937 ac_cpp_err=yes
19939 if test -z "$ac_cpp_err"; then
19940 ac_header_preproc=yes
19941 else
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 ac_header_preproc=no
19947 rm -f conftest.err conftest.$ac_ext
19948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19949 echo "${ECHO_T}$ac_header_preproc" >&6
19951 # So? What about this header?
19952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19953 yes:no: )
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19958 ac_header_preproc=yes
19960 no:yes:* )
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19974 cat <<\_ASBOX
19975 ## ------------------------------------------ ##
19976 ## Report this to the AC_PACKAGE_NAME lists. ##
19977 ## ------------------------------------------ ##
19978 _ASBOX
19980 sed "s/^/$as_me: WARNING: /" >&2
19982 esac
19983 echo "$as_me:$LINENO: checking for $ac_header" >&5
19984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988 eval "$as_ac_Header=\$ac_header_preproc"
19990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19997 _ACEOF
19999 else
20001 for ac_header in kerberos/des.h
20003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20005 echo "$as_me:$LINENO: checking for $ac_header" >&5
20006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20012 else
20013 # Is the header compilable?
20014 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20023 #include <$ac_header>
20024 _ACEOF
20025 rm -f conftest.$ac_objext
20026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20027 (eval $ac_compile) 2>conftest.er1
20028 ac_status=$?
20029 grep -v '^ *+' conftest.er1 >conftest.err
20030 rm -f conftest.er1
20031 cat conftest.err >&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } &&
20034 { ac_try='test -z "$ac_c_werror_flag"
20035 || test ! -s conftest.err'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } &&
20041 { ac_try='test -s conftest.$ac_objext'
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047 ac_header_compiler=yes
20048 else
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_header_compiler=no
20054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20056 echo "${ECHO_T}$ac_header_compiler" >&6
20058 # Is the header present?
20059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20061 cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h. */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 #include <$ac_header>
20068 _ACEOF
20069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } >/dev/null; then
20077 if test -s conftest.err; then
20078 ac_cpp_err=$ac_c_preproc_warn_flag
20079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20080 else
20081 ac_cpp_err=
20083 else
20084 ac_cpp_err=yes
20086 if test -z "$ac_cpp_err"; then
20087 ac_header_preproc=yes
20088 else
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_header_preproc=no
20094 rm -f conftest.err conftest.$ac_ext
20095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20096 echo "${ECHO_T}$ac_header_preproc" >&6
20098 # So? What about this header?
20099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20100 yes:no: )
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20105 ac_header_preproc=yes
20107 no:yes:* )
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20121 cat <<\_ASBOX
20122 ## ------------------------------------------ ##
20123 ## Report this to the AC_PACKAGE_NAME lists. ##
20124 ## ------------------------------------------ ##
20125 _ASBOX
20127 sed "s/^/$as_me: WARNING: /" >&2
20129 esac
20130 echo "$as_me:$LINENO: checking for $ac_header" >&5
20131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135 eval "$as_ac_Header=\$ac_header_preproc"
20137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20142 cat >>confdefs.h <<_ACEOF
20143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20144 _ACEOF
20148 done
20152 done
20156 done
20159 for ac_header in krb.h
20161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163 echo "$as_me:$LINENO: checking for $ac_header" >&5
20164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20170 else
20171 # Is the header compilable?
20172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h. */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 $ac_includes_default
20181 #include <$ac_header>
20182 _ACEOF
20183 rm -f conftest.$ac_objext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185 (eval $ac_compile) 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag"
20193 || test ! -s conftest.err'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest.$ac_objext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 ac_header_compiler=yes
20206 else
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 ac_header_compiler=no
20212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20214 echo "${ECHO_T}$ac_header_compiler" >&6
20216 # Is the header present?
20217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 #include <$ac_header>
20226 _ACEOF
20227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } >/dev/null; then
20235 if test -s conftest.err; then
20236 ac_cpp_err=$ac_c_preproc_warn_flag
20237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20238 else
20239 ac_cpp_err=
20241 else
20242 ac_cpp_err=yes
20244 if test -z "$ac_cpp_err"; then
20245 ac_header_preproc=yes
20246 else
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20250 ac_header_preproc=no
20252 rm -f conftest.err conftest.$ac_ext
20253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20254 echo "${ECHO_T}$ac_header_preproc" >&6
20256 # So? What about this header?
20257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20258 yes:no: )
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20263 ac_header_preproc=yes
20265 no:yes:* )
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20279 cat <<\_ASBOX
20280 ## ------------------------------------------ ##
20281 ## Report this to the AC_PACKAGE_NAME lists. ##
20282 ## ------------------------------------------ ##
20283 _ASBOX
20285 sed "s/^/$as_me: WARNING: /" >&2
20287 esac
20288 echo "$as_me:$LINENO: checking for $ac_header" >&5
20289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293 eval "$as_ac_Header=\$ac_header_preproc"
20295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20300 cat >>confdefs.h <<_ACEOF
20301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20302 _ACEOF
20304 else
20306 for ac_header in kerberosIV/krb.h
20308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20310 echo "$as_me:$LINENO: checking for $ac_header" >&5
20311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20317 else
20318 # Is the header compilable?
20319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 $ac_includes_default
20328 #include <$ac_header>
20329 _ACEOF
20330 rm -f conftest.$ac_objext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332 (eval $ac_compile) 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -z "$ac_c_werror_flag"
20340 || test ! -s conftest.err'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; } &&
20346 { ac_try='test -s conftest.$ac_objext'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
20352 ac_header_compiler=yes
20353 else
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ac_header_compiler=no
20359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20361 echo "${ECHO_T}$ac_header_compiler" >&6
20363 # Is the header present?
20364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20366 cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h. */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 #include <$ac_header>
20373 _ACEOF
20374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } >/dev/null; then
20382 if test -s conftest.err; then
20383 ac_cpp_err=$ac_c_preproc_warn_flag
20384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20385 else
20386 ac_cpp_err=
20388 else
20389 ac_cpp_err=yes
20391 if test -z "$ac_cpp_err"; then
20392 ac_header_preproc=yes
20393 else
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 ac_header_preproc=no
20399 rm -f conftest.err conftest.$ac_ext
20400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20401 echo "${ECHO_T}$ac_header_preproc" >&6
20403 # So? What about this header?
20404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20405 yes:no: )
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20410 ac_header_preproc=yes
20412 no:yes:* )
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20426 cat <<\_ASBOX
20427 ## ------------------------------------------ ##
20428 ## Report this to the AC_PACKAGE_NAME lists. ##
20429 ## ------------------------------------------ ##
20430 _ASBOX
20432 sed "s/^/$as_me: WARNING: /" >&2
20434 esac
20435 echo "$as_me:$LINENO: checking for $ac_header" >&5
20436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440 eval "$as_ac_Header=\$ac_header_preproc"
20442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20447 cat >>confdefs.h <<_ACEOF
20448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20449 _ACEOF
20451 else
20453 for ac_header in kerberos/krb.h
20455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20457 echo "$as_me:$LINENO: checking for $ac_header" >&5
20458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20464 else
20465 # Is the header compilable?
20466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 $ac_includes_default
20475 #include <$ac_header>
20476 _ACEOF
20477 rm -f conftest.$ac_objext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
20486 { ac_try='test -z "$ac_c_werror_flag"
20487 || test ! -s conftest.err'
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest.$ac_objext'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_header_compiler=yes
20500 else
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20504 ac_header_compiler=no
20506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20508 echo "${ECHO_T}$ac_header_compiler" >&6
20510 # Is the header present?
20511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h. */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 #include <$ac_header>
20520 _ACEOF
20521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } >/dev/null; then
20529 if test -s conftest.err; then
20530 ac_cpp_err=$ac_c_preproc_warn_flag
20531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20532 else
20533 ac_cpp_err=
20535 else
20536 ac_cpp_err=yes
20538 if test -z "$ac_cpp_err"; then
20539 ac_header_preproc=yes
20540 else
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 ac_header_preproc=no
20546 rm -f conftest.err conftest.$ac_ext
20547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20548 echo "${ECHO_T}$ac_header_preproc" >&6
20550 # So? What about this header?
20551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20552 yes:no: )
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20557 ac_header_preproc=yes
20559 no:yes:* )
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20573 cat <<\_ASBOX
20574 ## ------------------------------------------ ##
20575 ## Report this to the AC_PACKAGE_NAME lists. ##
20576 ## ------------------------------------------ ##
20577 _ASBOX
20579 sed "s/^/$as_me: WARNING: /" >&2
20581 esac
20582 echo "$as_me:$LINENO: checking for $ac_header" >&5
20583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587 eval "$as_ac_Header=\$ac_header_preproc"
20589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20594 cat >>confdefs.h <<_ACEOF
20595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20596 _ACEOF
20600 done
20604 done
20608 done
20612 for ac_header in com_err.h
20614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20616 echo "$as_me:$LINENO: checking for $ac_header" >&5
20617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20623 else
20624 # Is the header compilable?
20625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h. */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 $ac_includes_default
20634 #include <$ac_header>
20635 _ACEOF
20636 rm -f conftest.$ac_objext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20638 (eval $ac_compile) 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest.$ac_objext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_header_compiler=yes
20659 else
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_header_compiler=no
20665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20667 echo "${ECHO_T}$ac_header_compiler" >&6
20669 # Is the header present?
20670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20672 cat >conftest.$ac_ext <<_ACEOF
20673 /* confdefs.h. */
20674 _ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 #include <$ac_header>
20679 _ACEOF
20680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } >/dev/null; then
20688 if test -s conftest.err; then
20689 ac_cpp_err=$ac_c_preproc_warn_flag
20690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20691 else
20692 ac_cpp_err=
20694 else
20695 ac_cpp_err=yes
20697 if test -z "$ac_cpp_err"; then
20698 ac_header_preproc=yes
20699 else
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_header_preproc=no
20705 rm -f conftest.err conftest.$ac_ext
20706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20707 echo "${ECHO_T}$ac_header_preproc" >&6
20709 # So? What about this header?
20710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20711 yes:no: )
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20716 ac_header_preproc=yes
20718 no:yes:* )
20719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20732 cat <<\_ASBOX
20733 ## ------------------------------------------ ##
20734 ## Report this to the AC_PACKAGE_NAME lists. ##
20735 ## ------------------------------------------ ##
20736 _ASBOX
20738 sed "s/^/$as_me: WARNING: /" >&2
20740 esac
20741 echo "$as_me:$LINENO: checking for $ac_header" >&5
20742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 else
20746 eval "$as_ac_Header=\$ac_header_preproc"
20748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20753 cat >>confdefs.h <<_ACEOF
20754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20755 _ACEOF
20759 done
20763 # Solaris requires -lintl if you want strerror (which calls dgettext)
20764 # to return localized messages.
20766 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20767 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20768 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 else
20771 ac_check_lib_save_LIBS=$LIBS
20772 LIBS="-lintl $LIBS"
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20780 /* Override any gcc2 internal prototype to avoid an error. */
20781 #ifdef __cplusplus
20782 extern "C"
20783 #endif
20784 /* We use char because int might match the return type of a gcc2
20785 builtin and then its argument prototype would still apply. */
20786 char dgettext ();
20788 main ()
20790 dgettext ();
20792 return 0;
20794 _ACEOF
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20797 (eval $ac_link) 2>conftest.er1
20798 ac_status=$?
20799 grep -v '^ *+' conftest.er1 >conftest.err
20800 rm -f conftest.er1
20801 cat conftest.err >&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } &&
20804 { ac_try='test -z "$ac_c_werror_flag"
20805 || test ! -s conftest.err'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; } &&
20811 { ac_try='test -s conftest$ac_exeext'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; }; then
20817 ac_cv_lib_intl_dgettext=yes
20818 else
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_cv_lib_intl_dgettext=no
20824 rm -f conftest.err conftest.$ac_objext \
20825 conftest$ac_exeext conftest.$ac_ext
20826 LIBS=$ac_check_lib_save_LIBS
20828 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20829 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20830 if test $ac_cv_lib_intl_dgettext = yes; then
20831 cat >>confdefs.h <<_ACEOF
20832 #define HAVE_LIBINTL 1
20833 _ACEOF
20835 LIBS="-lintl $LIBS"
20840 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20841 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20842 if test "${emacs_cv_localtime_cache+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 else
20845 if test x$ac_cv_func_tzset = xyes; then
20846 if test "$cross_compiling" = yes; then
20847 # If we have tzset, assume the worst when cross-compiling.
20848 emacs_cv_localtime_cache=yes
20849 else
20850 cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h. */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20856 #include <time.h>
20857 extern char **environ;
20858 unset_TZ ()
20860 char **from, **to;
20861 for (to = from = environ; (*to = *from); from++)
20862 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20863 to++;
20865 char TZ_GMT0[] = "TZ=GMT0";
20866 char TZ_PST8[] = "TZ=PST8";
20867 main()
20869 time_t now = time ((time_t *) 0);
20870 int hour_GMT0, hour_unset;
20871 if (putenv (TZ_GMT0) != 0)
20872 exit (1);
20873 hour_GMT0 = localtime (&now)->tm_hour;
20874 unset_TZ ();
20875 hour_unset = localtime (&now)->tm_hour;
20876 if (putenv (TZ_PST8) != 0)
20877 exit (1);
20878 if (localtime (&now)->tm_hour == hour_GMT0)
20879 exit (1);
20880 unset_TZ ();
20881 if (localtime (&now)->tm_hour != hour_unset)
20882 exit (1);
20883 exit (0);
20885 _ACEOF
20886 rm -f conftest$ac_exeext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20888 (eval $ac_link) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }; then
20897 emacs_cv_localtime_cache=no
20898 else
20899 echo "$as_me: program exited with status $ac_status" >&5
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 ( exit $ac_status )
20904 emacs_cv_localtime_cache=yes
20906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20908 else
20909 # If we lack tzset, report that localtime does not cache TZ,
20910 # since we can't invalidate the cache if we don't have tzset.
20911 emacs_cv_localtime_cache=no
20914 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20915 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20916 if test $emacs_cv_localtime_cache = yes; then
20918 cat >>confdefs.h <<\_ACEOF
20919 #define LOCALTIME_CACHE 1
20920 _ACEOF
20924 if test "x$HAVE_TIMEVAL" = xyes; then
20926 for ac_func in gettimeofday
20928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20929 echo "$as_me:$LINENO: checking for $ac_func" >&5
20930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20931 if eval "test \"\${$as_ac_var+set}\" = set"; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 else
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h. */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20942 #define $ac_func innocuous_$ac_func
20944 /* System header to define __stub macros and hopefully few prototypes,
20945 which can conflict with char $ac_func (); below.
20946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20947 <limits.h> exists even on freestanding compilers. */
20949 #ifdef __STDC__
20950 # include <limits.h>
20951 #else
20952 # include <assert.h>
20953 #endif
20955 #undef $ac_func
20957 /* Override any gcc2 internal prototype to avoid an error. */
20958 #ifdef __cplusplus
20959 extern "C"
20961 #endif
20962 /* We use char because int might match the return type of a gcc2
20963 builtin and then its argument prototype would still apply. */
20964 char $ac_func ();
20965 /* The GNU C library defines this for functions which it implements
20966 to always fail with ENOSYS. Some functions are actually named
20967 something starting with __ and the normal name is an alias. */
20968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20969 choke me
20970 #else
20971 char (*f) () = $ac_func;
20972 #endif
20973 #ifdef __cplusplus
20975 #endif
20978 main ()
20980 return f != $ac_func;
20982 return 0;
20984 _ACEOF
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>conftest.er1
20988 ac_status=$?
20989 grep -v '^ *+' conftest.er1 >conftest.err
20990 rm -f conftest.er1
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } &&
20994 { ac_try='test -z "$ac_c_werror_flag"
20995 || test ! -s conftest.err'
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; } &&
21001 { ac_try='test -s conftest$ac_exeext'
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 eval "$as_ac_var=yes"
21008 else
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 eval "$as_ac_var=no"
21014 rm -f conftest.err conftest.$ac_objext \
21015 conftest$ac_exeext conftest.$ac_ext
21017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21019 if test `eval echo '${'$as_ac_var'}'` = yes; then
21020 cat >>confdefs.h <<_ACEOF
21021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21022 _ACEOF
21025 done
21027 if test $ac_cv_func_gettimeofday = yes; then
21028 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21029 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21030 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h. */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21040 #ifdef TIME_WITH_SYS_TIME
21041 #include <sys/time.h>
21042 #include <time.h>
21043 #else
21044 #ifdef HAVE_SYS_TIME_H
21045 #include <sys/time.h>
21046 #else
21047 #include <time.h>
21048 #endif
21049 #endif
21051 main ()
21053 struct timeval time;
21054 gettimeofday (&time, 0);
21056 return 0;
21058 _ACEOF
21059 rm -f conftest.$ac_objext
21060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21061 (eval $ac_compile) 2>conftest.er1
21062 ac_status=$?
21063 grep -v '^ *+' conftest.er1 >conftest.err
21064 rm -f conftest.er1
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -z "$ac_c_werror_flag"
21069 || test ! -s conftest.err'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 emacs_cv_gettimeofday_two_arguments=yes
21082 else
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 emacs_cv_gettimeofday_two_arguments=no
21088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21090 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21091 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21092 if test $emacs_cv_gettimeofday_two_arguments = no; then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21096 _ACEOF
21102 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21103 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21104 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21105 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h. */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <sys/types.h>
21115 #include <$ac_cv_struct_tm>
21119 main ()
21121 static struct tm ac_aggr;
21122 if (ac_aggr.tm_zone)
21123 return 0;
21125 return 0;
21127 _ACEOF
21128 rm -f conftest.$ac_objext
21129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -z "$ac_c_werror_flag"
21138 || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 ac_cv_member_struct_tm_tm_zone=yes
21151 else
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h. */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <sys/types.h>
21162 #include <$ac_cv_struct_tm>
21166 main ()
21168 static struct tm ac_aggr;
21169 if (sizeof ac_aggr.tm_zone)
21170 return 0;
21172 return 0;
21174 _ACEOF
21175 rm -f conftest.$ac_objext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177 (eval $ac_compile) 2>conftest.er1
21178 ac_status=$?
21179 grep -v '^ *+' conftest.er1 >conftest.err
21180 rm -f conftest.er1
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try='test -z "$ac_c_werror_flag"
21185 || test ! -s conftest.err'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try='test -s conftest.$ac_objext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ac_cv_member_struct_tm_tm_zone=yes
21198 else
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 ac_cv_member_struct_tm_tm_zone=no
21204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21208 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21209 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21210 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21212 cat >>confdefs.h <<_ACEOF
21213 #define HAVE_STRUCT_TM_TM_ZONE 1
21214 _ACEOF
21219 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21221 cat >>confdefs.h <<\_ACEOF
21222 #define HAVE_TM_ZONE 1
21223 _ACEOF
21225 else
21226 echo "$as_me:$LINENO: checking for tzname" >&5
21227 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21228 if test "${ac_cv_var_tzname+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 else
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h. */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237 #include <time.h>
21238 #ifndef tzname /* For SGI. */
21239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21240 #endif
21243 main ()
21245 atoi(*tzname);
21247 return 0;
21249 _ACEOF
21250 rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21252 (eval $ac_link) 2>conftest.er1
21253 ac_status=$?
21254 grep -v '^ *+' conftest.er1 >conftest.err
21255 rm -f conftest.er1
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } &&
21259 { ac_try='test -z "$ac_c_werror_flag"
21260 || test ! -s conftest.err'
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21263 ac_status=$?
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; } &&
21266 { ac_try='test -s conftest$ac_exeext'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; }; then
21272 ac_cv_var_tzname=yes
21273 else
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ac_cv_var_tzname=no
21279 rm -f conftest.err conftest.$ac_objext \
21280 conftest$ac_exeext conftest.$ac_ext
21282 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21283 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21284 if test $ac_cv_var_tzname = yes; then
21286 cat >>confdefs.h <<\_ACEOF
21287 #define HAVE_TZNAME 1
21288 _ACEOF
21294 if test "$ac_cv_func_gettimeofday" = yes; then
21295 echo "$as_me:$LINENO: checking for struct timezone" >&5
21296 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21297 if test "${emacs_cv_struct_timezone+set}" = set; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 else
21300 cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h. */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 #include <sys/time.h>
21308 main ()
21310 struct timezone tz;
21312 return 0;
21314 _ACEOF
21315 rm -f conftest.$ac_objext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21317 (eval $ac_compile) 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } &&
21324 { ac_try='test -z "$ac_c_werror_flag"
21325 || test ! -s conftest.err'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; } &&
21331 { ac_try='test -s conftest.$ac_objext'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 if test "$cross_compiling" = yes; then
21338 emacs_cv_struct_timezone=yes
21339 else
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21347 #ifdef TIME_WITH_SYS_TIME
21348 #include <sys/time.h>
21349 #include <time.h>
21350 #else
21351 #ifdef HAVE_SYS_TIME_H
21352 #include <sys/time.h>
21353 #else
21354 #include <time.h>
21355 #endif
21356 #endif
21357 main () {
21358 struct timeval time;
21359 struct timezone dummy;
21360 exit (gettimeofday (&time, &dummy));
21362 _ACEOF
21363 rm -f conftest$ac_exeext
21364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21365 (eval $ac_link) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374 emacs_cv_struct_timezone=yes
21375 else
21376 echo "$as_me: program exited with status $ac_status" >&5
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21380 ( exit $ac_status )
21381 emacs_cv_struct_timezone=no
21383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21385 else
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 emacs_cv_struct_timezone=no
21391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21393 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21394 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21397 ok_so_far=yes
21398 echo "$as_me:$LINENO: checking for socket" >&5
21399 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21400 if test "${ac_cv_func_socket+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403 cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h. */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21411 #define socket innocuous_socket
21413 /* System header to define __stub macros and hopefully few prototypes,
21414 which can conflict with char socket (); below.
21415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21416 <limits.h> exists even on freestanding compilers. */
21418 #ifdef __STDC__
21419 # include <limits.h>
21420 #else
21421 # include <assert.h>
21422 #endif
21424 #undef socket
21426 /* Override any gcc2 internal prototype to avoid an error. */
21427 #ifdef __cplusplus
21428 extern "C"
21430 #endif
21431 /* We use char because int might match the return type of a gcc2
21432 builtin and then its argument prototype would still apply. */
21433 char socket ();
21434 /* The GNU C library defines this for functions which it implements
21435 to always fail with ENOSYS. Some functions are actually named
21436 something starting with __ and the normal name is an alias. */
21437 #if defined (__stub_socket) || defined (__stub___socket)
21438 choke me
21439 #else
21440 char (*f) () = socket;
21441 #endif
21442 #ifdef __cplusplus
21444 #endif
21447 main ()
21449 return f != socket;
21451 return 0;
21453 _ACEOF
21454 rm -f conftest.$ac_objext conftest$ac_exeext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21456 (eval $ac_link) 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -z "$ac_c_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest$ac_exeext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_cv_func_socket=yes
21477 else
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_cv_func_socket=no
21483 rm -f conftest.err conftest.$ac_objext \
21484 conftest$ac_exeext conftest.$ac_ext
21486 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21487 echo "${ECHO_T}$ac_cv_func_socket" >&6
21488 if test $ac_cv_func_socket = yes; then
21490 else
21491 ok_so_far=no
21494 if test $ok_so_far = yes; then
21495 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21496 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21497 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21502 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21503 else
21504 # Is the header compilable?
21505 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21506 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21507 cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h. */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 $ac_includes_default
21514 #include <netinet/in.h>
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21518 (eval $ac_compile) 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } &&
21525 { ac_try='test -z "$ac_c_werror_flag"
21526 || test ! -s conftest.err'
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); }; } &&
21532 { ac_try='test -s conftest.$ac_objext'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_header_compiler=yes
21539 else
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ac_header_compiler=no
21545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21547 echo "${ECHO_T}$ac_header_compiler" >&6
21549 # Is the header present?
21550 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21551 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21552 cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h. */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 #include <netinet/in.h>
21559 _ACEOF
21560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21562 ac_status=$?
21563 grep -v '^ *+' conftest.er1 >conftest.err
21564 rm -f conftest.er1
21565 cat conftest.err >&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } >/dev/null; then
21568 if test -s conftest.err; then
21569 ac_cpp_err=$ac_c_preproc_warn_flag
21570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21571 else
21572 ac_cpp_err=
21574 else
21575 ac_cpp_err=yes
21577 if test -z "$ac_cpp_err"; then
21578 ac_header_preproc=yes
21579 else
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 ac_header_preproc=no
21585 rm -f conftest.err conftest.$ac_ext
21586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21587 echo "${ECHO_T}$ac_header_preproc" >&6
21589 # So? What about this header?
21590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21591 yes:no: )
21592 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21593 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21595 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21596 ac_header_preproc=yes
21598 no:yes:* )
21599 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21600 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21602 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21604 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21605 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21606 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21607 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21608 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21610 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21612 cat <<\_ASBOX
21613 ## ------------------------------------------ ##
21614 ## Report this to the AC_PACKAGE_NAME lists. ##
21615 ## ------------------------------------------ ##
21616 _ASBOX
21618 sed "s/^/$as_me: WARNING: /" >&2
21620 esac
21621 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21622 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21623 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 else
21626 ac_cv_header_netinet_in_h=$ac_header_preproc
21628 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21629 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21632 if test $ac_cv_header_netinet_in_h = yes; then
21634 else
21635 ok_so_far=no
21640 if test $ok_so_far = yes; then
21641 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21642 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21643 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21644 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21648 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21649 else
21650 # Is the header compilable?
21651 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21652 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21653 cat >conftest.$ac_ext <<_ACEOF
21654 /* confdefs.h. */
21655 _ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 $ac_includes_default
21660 #include <arpa/inet.h>
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>conftest.er1
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_header_compiler=yes
21685 else
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21689 ac_header_compiler=no
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21693 echo "${ECHO_T}$ac_header_compiler" >&6
21695 # Is the header present?
21696 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21697 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21698 cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h. */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 #include <arpa/inet.h>
21705 _ACEOF
21706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } >/dev/null; then
21714 if test -s conftest.err; then
21715 ac_cpp_err=$ac_c_preproc_warn_flag
21716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21717 else
21718 ac_cpp_err=
21720 else
21721 ac_cpp_err=yes
21723 if test -z "$ac_cpp_err"; then
21724 ac_header_preproc=yes
21725 else
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 ac_header_preproc=no
21731 rm -f conftest.err conftest.$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21733 echo "${ECHO_T}$ac_header_preproc" >&6
21735 # So? What about this header?
21736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21737 yes:no: )
21738 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21739 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21741 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21742 ac_header_preproc=yes
21744 no:yes:* )
21745 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21746 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21748 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21750 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21752 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21754 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21756 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21758 cat <<\_ASBOX
21759 ## ------------------------------------------ ##
21760 ## Report this to the AC_PACKAGE_NAME lists. ##
21761 ## ------------------------------------------ ##
21762 _ASBOX
21764 sed "s/^/$as_me: WARNING: /" >&2
21766 esac
21767 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21768 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21769 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772 ac_cv_header_arpa_inet_h=$ac_header_preproc
21774 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21775 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21778 if test $ac_cv_header_arpa_inet_h = yes; then
21780 else
21781 ok_so_far=no
21786 if test $ok_so_far = yes; then
21788 cat >>confdefs.h <<\_ACEOF
21789 #define HAVE_INET_SOCKETS 1
21790 _ACEOF
21795 for ac_header in sys/ioctl.h
21797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21799 echo "$as_me:$LINENO: checking for $ac_header" >&5
21800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21806 else
21807 # Is the header compilable?
21808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21810 cat >conftest.$ac_ext <<_ACEOF
21811 /* confdefs.h. */
21812 _ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21816 $ac_includes_default
21817 #include <$ac_header>
21818 _ACEOF
21819 rm -f conftest.$ac_objext
21820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21821 (eval $ac_compile) 2>conftest.er1
21822 ac_status=$?
21823 grep -v '^ *+' conftest.er1 >conftest.err
21824 rm -f conftest.er1
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } &&
21828 { ac_try='test -z "$ac_c_werror_flag"
21829 || test ! -s conftest.err'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; } &&
21835 { ac_try='test -s conftest.$ac_objext'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21838 ac_status=$?
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; }; then
21841 ac_header_compiler=yes
21842 else
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 ac_header_compiler=no
21848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21850 echo "${ECHO_T}$ac_header_compiler" >&6
21852 # Is the header present?
21853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21855 cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h. */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21861 #include <$ac_header>
21862 _ACEOF
21863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } >/dev/null; then
21871 if test -s conftest.err; then
21872 ac_cpp_err=$ac_c_preproc_warn_flag
21873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21874 else
21875 ac_cpp_err=
21877 else
21878 ac_cpp_err=yes
21880 if test -z "$ac_cpp_err"; then
21881 ac_header_preproc=yes
21882 else
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_header_preproc=no
21888 rm -f conftest.err conftest.$ac_ext
21889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21890 echo "${ECHO_T}$ac_header_preproc" >&6
21892 # So? What about this header?
21893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21894 yes:no: )
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21899 ac_header_preproc=yes
21901 no:yes:* )
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21915 cat <<\_ASBOX
21916 ## ------------------------------------------ ##
21917 ## Report this to the AC_PACKAGE_NAME lists. ##
21918 ## ------------------------------------------ ##
21919 _ASBOX
21921 sed "s/^/$as_me: WARNING: /" >&2
21923 esac
21924 echo "$as_me:$LINENO: checking for $ac_header" >&5
21925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929 eval "$as_ac_Header=\$ac_header_preproc"
21931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21936 cat >>confdefs.h <<_ACEOF
21937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21938 _ACEOF
21942 done
21945 if test -f /usr/lpp/X11/bin/smt.exp; then
21947 cat >>confdefs.h <<\_ACEOF
21948 #define HAVE_AIX_SMT_EXP 1
21949 _ACEOF
21953 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21954 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21955 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21956 echo "$as_me:$LINENO: result: yes" >&5
21957 echo "${ECHO_T}yes" >&6
21959 cat >>confdefs.h <<\_ACEOF
21960 #define HAVE_DEV_PTMX 1
21961 _ACEOF
21963 else
21964 echo "$as_me:$LINENO: result: no" >&5
21965 echo "${ECHO_T}no" >&6
21968 echo "$as_me:$LINENO: checking for pid_t" >&5
21969 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21970 if test "${ac_cv_type_pid_t+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973 cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h. */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 $ac_includes_default
21981 main ()
21983 if ((pid_t *) 0)
21984 return 0;
21985 if (sizeof (pid_t))
21986 return 0;
21988 return 0;
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993 (eval $ac_compile) 2>conftest.er1
21994 ac_status=$?
21995 grep -v '^ *+' conftest.er1 >conftest.err
21996 rm -f conftest.er1
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_c_werror_flag"
22001 || test ! -s conftest.err'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try='test -s conftest.$ac_objext'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 ac_cv_type_pid_t=yes
22014 else
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ac_cv_type_pid_t=no
22020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22022 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22023 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22024 if test $ac_cv_type_pid_t = yes; then
22026 else
22028 cat >>confdefs.h <<_ACEOF
22029 #define pid_t int
22030 _ACEOF
22036 for ac_header in unistd.h vfork.h
22038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22040 echo "$as_me:$LINENO: checking for $ac_header" >&5
22041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22047 else
22048 # Is the header compilable?
22049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 $ac_includes_default
22058 #include <$ac_header>
22059 _ACEOF
22060 rm -f conftest.$ac_objext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22062 (eval $ac_compile) 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try='test -z "$ac_c_werror_flag"
22070 || test ! -s conftest.err'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22073 ac_status=$?
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; } &&
22076 { ac_try='test -s conftest.$ac_objext'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_header_compiler=yes
22083 else
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_header_compiler=no
22089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22091 echo "${ECHO_T}$ac_header_compiler" >&6
22093 # Is the header present?
22094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22096 cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h. */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 #include <$ac_header>
22103 _ACEOF
22104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } >/dev/null; then
22112 if test -s conftest.err; then
22113 ac_cpp_err=$ac_c_preproc_warn_flag
22114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22115 else
22116 ac_cpp_err=
22118 else
22119 ac_cpp_err=yes
22121 if test -z "$ac_cpp_err"; then
22122 ac_header_preproc=yes
22123 else
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_header_preproc=no
22129 rm -f conftest.err conftest.$ac_ext
22130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22131 echo "${ECHO_T}$ac_header_preproc" >&6
22133 # So? What about this header?
22134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22135 yes:no: )
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22140 ac_header_preproc=yes
22142 no:yes:* )
22143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22156 cat <<\_ASBOX
22157 ## ------------------------------------------ ##
22158 ## Report this to the AC_PACKAGE_NAME lists. ##
22159 ## ------------------------------------------ ##
22160 _ASBOX
22162 sed "s/^/$as_me: WARNING: /" >&2
22164 esac
22165 echo "$as_me:$LINENO: checking for $ac_header" >&5
22166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 else
22170 eval "$as_ac_Header=\$ac_header_preproc"
22172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22179 _ACEOF
22183 done
22187 for ac_func in fork vfork
22189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22190 echo "$as_me:$LINENO: checking for $ac_func" >&5
22191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22192 if eval "test \"\${$as_ac_var+set}\" = set"; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22194 else
22195 cat >conftest.$ac_ext <<_ACEOF
22196 /* confdefs.h. */
22197 _ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22203 #define $ac_func innocuous_$ac_func
22205 /* System header to define __stub macros and hopefully few prototypes,
22206 which can conflict with char $ac_func (); below.
22207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22208 <limits.h> exists even on freestanding compilers. */
22210 #ifdef __STDC__
22211 # include <limits.h>
22212 #else
22213 # include <assert.h>
22214 #endif
22216 #undef $ac_func
22218 /* Override any gcc2 internal prototype to avoid an error. */
22219 #ifdef __cplusplus
22220 extern "C"
22222 #endif
22223 /* We use char because int might match the return type of a gcc2
22224 builtin and then its argument prototype would still apply. */
22225 char $ac_func ();
22226 /* The GNU C library defines this for functions which it implements
22227 to always fail with ENOSYS. Some functions are actually named
22228 something starting with __ and the normal name is an alias. */
22229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22230 choke me
22231 #else
22232 char (*f) () = $ac_func;
22233 #endif
22234 #ifdef __cplusplus
22236 #endif
22239 main ()
22241 return f != $ac_func;
22243 return 0;
22245 _ACEOF
22246 rm -f conftest.$ac_objext conftest$ac_exeext
22247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22248 (eval $ac_link) 2>conftest.er1
22249 ac_status=$?
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
22255 { ac_try='test -z "$ac_c_werror_flag"
22256 || test ! -s conftest.err'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest$ac_exeext'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 eval "$as_ac_var=yes"
22269 else
22270 echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22273 eval "$as_ac_var=no"
22275 rm -f conftest.err conftest.$ac_objext \
22276 conftest$ac_exeext conftest.$ac_ext
22278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22280 if test `eval echo '${'$as_ac_var'}'` = yes; then
22281 cat >>confdefs.h <<_ACEOF
22282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22283 _ACEOF
22286 done
22288 if test "x$ac_cv_func_fork" = xyes; then
22289 echo "$as_me:$LINENO: checking for working fork" >&5
22290 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22291 if test "${ac_cv_func_fork_works+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294 if test "$cross_compiling" = yes; then
22295 ac_cv_func_fork_works=cross
22296 else
22297 cat >conftest.$ac_ext <<_ACEOF
22298 /* By Ruediger Kuhlmann. */
22299 #include <sys/types.h>
22300 #if HAVE_UNISTD_H
22301 # include <unistd.h>
22302 #endif
22303 /* Some systems only have a dummy stub for fork() */
22304 int main ()
22306 if (fork() < 0)
22307 exit (1);
22308 exit (0);
22310 _ACEOF
22311 rm -f conftest$ac_exeext
22312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_func_fork_works=yes
22323 else
22324 echo "$as_me: program exited with status $ac_status" >&5
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22328 ( exit $ac_status )
22329 ac_cv_func_fork_works=no
22331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22334 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22335 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22337 else
22338 ac_cv_func_fork_works=$ac_cv_func_fork
22340 if test "x$ac_cv_func_fork_works" = xcross; then
22341 case $host in
22342 *-*-amigaos* | *-*-msdosdjgpp*)
22343 # Override, as these systems have only a dummy fork() stub
22344 ac_cv_func_fork_works=no
22347 ac_cv_func_fork_works=yes
22349 esac
22350 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22351 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22353 ac_cv_func_vfork_works=$ac_cv_func_vfork
22354 if test "x$ac_cv_func_vfork" = xyes; then
22355 echo "$as_me:$LINENO: checking for working vfork" >&5
22356 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22357 if test "${ac_cv_func_vfork_works+set}" = set; then
22358 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 else
22360 if test "$cross_compiling" = yes; then
22361 ac_cv_func_vfork_works=cross
22362 else
22363 cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h. */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 /* Thanks to Paul Eggert for this test. */
22370 #include <stdio.h>
22371 #include <stdlib.h>
22372 #include <sys/types.h>
22373 #include <sys/stat.h>
22374 #include <sys/wait.h>
22375 #if HAVE_UNISTD_H
22376 # include <unistd.h>
22377 #endif
22378 #if HAVE_VFORK_H
22379 # include <vfork.h>
22380 #endif
22381 /* On some sparc systems, changes by the child to local and incoming
22382 argument registers are propagated back to the parent. The compiler
22383 is told about this with #include <vfork.h>, but some compilers
22384 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22385 static variable whose address is put into a register that is
22386 clobbered by the vfork. */
22387 static void
22388 #ifdef __cplusplus
22389 sparc_address_test (int arg)
22390 # else
22391 sparc_address_test (arg) int arg;
22392 #endif
22394 static pid_t child;
22395 if (!child) {
22396 child = vfork ();
22397 if (child < 0) {
22398 perror ("vfork");
22399 _exit(2);
22401 if (!child) {
22402 arg = getpid();
22403 write(-1, "", 0);
22404 _exit (arg);
22410 main ()
22412 pid_t parent = getpid ();
22413 pid_t child;
22415 sparc_address_test (0);
22417 child = vfork ();
22419 if (child == 0) {
22420 /* Here is another test for sparc vfork register problems. This
22421 test uses lots of local variables, at least as many local
22422 variables as main has allocated so far including compiler
22423 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22424 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22425 reuse the register of parent for one of the local variables,
22426 since it will think that parent can't possibly be used any more
22427 in this routine. Assigning to the local variable will thus
22428 munge parent in the parent process. */
22429 pid_t
22430 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22431 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22432 /* Convince the compiler that p..p7 are live; otherwise, it might
22433 use the same hardware register for all 8 local variables. */
22434 if (p != p1 || p != p2 || p != p3 || p != p4
22435 || p != p5 || p != p6 || p != p7)
22436 _exit(1);
22438 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22439 from child file descriptors. If the child closes a descriptor
22440 before it execs or exits, this munges the parent's descriptor
22441 as well. Test for this by closing stdout in the child. */
22442 _exit(close(fileno(stdout)) != 0);
22443 } else {
22444 int status;
22445 struct stat st;
22447 while (wait(&status) != child)
22449 exit(
22450 /* Was there some problem with vforking? */
22451 child < 0
22453 /* Did the child fail? (This shouldn't happen.) */
22454 || status
22456 /* Did the vfork/compiler bug occur? */
22457 || parent != getpid()
22459 /* Did the file descriptor bug occur? */
22460 || fstat(fileno(stdout), &st) != 0
22464 _ACEOF
22465 rm -f conftest$ac_exeext
22466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22467 (eval $ac_link) 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_func_vfork_works=yes
22477 else
22478 echo "$as_me: program exited with status $ac_status" >&5
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ( exit $ac_status )
22483 ac_cv_func_vfork_works=no
22485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22488 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22489 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22492 if test "x$ac_cv_func_fork_works" = xcross; then
22493 ac_cv_func_vfork_works=$ac_cv_func_vfork
22494 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22495 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22498 if test "x$ac_cv_func_vfork_works" = xyes; then
22500 cat >>confdefs.h <<\_ACEOF
22501 #define HAVE_WORKING_VFORK 1
22502 _ACEOF
22504 else
22506 cat >>confdefs.h <<\_ACEOF
22507 #define vfork fork
22508 _ACEOF
22511 if test "x$ac_cv_func_fork_works" = xyes; then
22513 cat >>confdefs.h <<\_ACEOF
22514 #define HAVE_WORKING_FORK 1
22515 _ACEOF
22520 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22521 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22522 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 else
22525 cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h. */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 #include <langinfo.h>
22533 main ()
22535 char* cs = nl_langinfo(CODESET);
22537 return 0;
22539 _ACEOF
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22542 (eval $ac_link) 2>conftest.er1
22543 ac_status=$?
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } &&
22549 { ac_try='test -z "$ac_c_werror_flag"
22550 || test ! -s conftest.err'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; } &&
22556 { ac_try='test -s conftest$ac_exeext'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562 emacs_cv_langinfo_codeset=yes
22563 else
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 emacs_cv_langinfo_codeset=no
22569 rm -f conftest.err conftest.$ac_objext \
22570 conftest$ac_exeext conftest.$ac_ext
22573 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22574 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22575 if test $emacs_cv_langinfo_codeset = yes; then
22577 cat >>confdefs.h <<\_ACEOF
22578 #define HAVE_LANGINFO_CODESET 1
22579 _ACEOF
22583 echo "$as_me:$LINENO: checking for size_t" >&5
22584 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22585 if test "${ac_cv_type_size_t+set}" = set; then
22586 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 else
22588 cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h. */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 $ac_includes_default
22596 main ()
22598 if ((size_t *) 0)
22599 return 0;
22600 if (sizeof (size_t))
22601 return 0;
22603 return 0;
22605 _ACEOF
22606 rm -f conftest.$ac_objext
22607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22608 (eval $ac_compile) 2>conftest.er1
22609 ac_status=$?
22610 grep -v '^ *+' conftest.er1 >conftest.err
22611 rm -f conftest.er1
22612 cat conftest.err >&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } &&
22615 { ac_try='test -z "$ac_c_werror_flag"
22616 || test ! -s conftest.err'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; } &&
22622 { ac_try='test -s conftest.$ac_objext'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; }; then
22628 ac_cv_type_size_t=yes
22629 else
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22633 ac_cv_type_size_t=no
22635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22637 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22638 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22639 if test $ac_cv_type_size_t = yes; then
22641 cat >>confdefs.h <<_ACEOF
22642 #define HAVE_SIZE_T 1
22643 _ACEOF
22649 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22650 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22651 if test "${ac_cv_type_mbstate_t+set}" = set; then
22652 echo $ECHO_N "(cached) $ECHO_C" >&6
22653 else
22654 cat >conftest.$ac_ext <<_ACEOF
22655 /* confdefs.h. */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22660 $ac_includes_default
22661 # include <wchar.h>
22663 main ()
22665 mbstate_t x; return sizeof x;
22667 return 0;
22669 _ACEOF
22670 rm -f conftest.$ac_objext
22671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22672 (eval $ac_compile) 2>conftest.er1
22673 ac_status=$?
22674 grep -v '^ *+' conftest.er1 >conftest.err
22675 rm -f conftest.er1
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } &&
22679 { ac_try='test -z "$ac_c_werror_flag"
22680 || test ! -s conftest.err'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; } &&
22686 { ac_try='test -s conftest.$ac_objext'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
22692 ac_cv_type_mbstate_t=yes
22693 else
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22697 ac_cv_type_mbstate_t=no
22699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22701 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22702 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22703 if test $ac_cv_type_mbstate_t = yes; then
22705 cat >>confdefs.h <<\_ACEOF
22706 #define HAVE_MBSTATE_T 1
22707 _ACEOF
22709 else
22711 cat >>confdefs.h <<\_ACEOF
22712 #define mbstate_t int
22713 _ACEOF
22717 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22718 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22719 if test "${emacs_cv_c_restrict+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722 cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h. */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 void fred (int *restrict x);
22730 main ()
22734 return 0;
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22739 (eval $ac_compile) 2>conftest.er1
22740 ac_status=$?
22741 grep -v '^ *+' conftest.er1 >conftest.err
22742 rm -f conftest.er1
22743 cat conftest.err >&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } &&
22746 { ac_try='test -z "$ac_c_werror_flag"
22747 || test ! -s conftest.err'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; } &&
22753 { ac_try='test -s conftest.$ac_objext'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 emacs_cv_c_restrict=yes
22760 else
22761 echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22764 cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h. */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 void fred (int *__restrict x);
22772 main ()
22776 return 0;
22778 _ACEOF
22779 rm -f conftest.$ac_objext
22780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22781 (eval $ac_compile) 2>conftest.er1
22782 ac_status=$?
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } &&
22788 { ac_try='test -z "$ac_c_werror_flag"
22789 || test ! -s conftest.err'
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; } &&
22795 { ac_try='test -s conftest.$ac_objext'
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; }; then
22801 emacs_cv_c_restrict=__restrict
22802 else
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 emacs_cv_c_restrict=no
22808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22812 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22813 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22814 case "$emacs_cv_c_restrict" in
22815 yes) emacs_restrict=restrict;;
22816 no) emacs_restrict="";;
22817 *) emacs_restrict="$emacs_cv_c_restrict";;
22818 esac
22819 if test "$emacs_restrict" != __restrict; then
22821 cat >>confdefs.h <<_ACEOF
22822 #define __restrict $emacs_restrict
22823 _ACEOF
22827 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22828 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22829 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832 cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h. */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 void fred (int x[__restrict]);
22840 main ()
22844 return 0;
22846 _ACEOF
22847 rm -f conftest.$ac_objext
22848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22849 (eval $ac_compile) 2>conftest.er1
22850 ac_status=$?
22851 grep -v '^ *+' conftest.er1 >conftest.err
22852 rm -f conftest.er1
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } &&
22856 { ac_try='test -z "$ac_c_werror_flag"
22857 || test ! -s conftest.err'
22858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859 (eval $ac_try) 2>&5
22860 ac_status=$?
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }; } &&
22863 { ac_try='test -s conftest.$ac_objext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 emacs_cv_c_restrict_arr=yes
22870 else
22871 echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22874 emacs_cv_c_restrict_arr=no
22876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22878 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22879 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22880 if test "$emacs_cv_c_restrict_arr" = yes; then
22882 cat >>confdefs.h <<\_ACEOF
22883 #define __restrict_arr __restrict
22884 _ACEOF
22890 # Set up the CFLAGS for real compilation, so we can substitute it.
22891 CFLAGS="$REAL_CFLAGS"
22892 CPPFLAGS="$REAL_CPPFLAGS"
22894 #### Find out which version of Emacs this is.
22895 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22896 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22897 if test x"${version}" = x; then
22898 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22899 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22900 { (exit 1); exit 1; }; }
22903 ### Specify what sort of things we'll be editing into Makefile and config.h.
22904 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22940 cat >>confdefs.h <<_ACEOF
22941 #define EMACS_CONFIGURATION "${canonical}"
22942 _ACEOF
22945 cat >>confdefs.h <<_ACEOF
22946 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22947 _ACEOF
22950 cat >>confdefs.h <<_ACEOF
22951 #define config_machfile "${machfile}"
22952 _ACEOF
22955 cat >>confdefs.h <<_ACEOF
22956 #define config_opsysfile "${opsysfile}"
22957 _ACEOF
22960 cat >>confdefs.h <<_ACEOF
22961 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22962 _ACEOF
22965 cat >>confdefs.h <<_ACEOF
22966 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22967 _ACEOF
22970 cat >>confdefs.h <<_ACEOF
22971 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22972 _ACEOF
22975 cat >>confdefs.h <<_ACEOF
22976 #define UNEXEC_SRC ${UNEXEC_SRC}
22977 _ACEOF
22980 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22982 cat >>confdefs.h <<\_ACEOF
22983 #define HAVE_X_WINDOWS 1
22984 _ACEOF
22987 if test "${USE_X_TOOLKIT}" != "none" ; then
22989 cat >>confdefs.h <<\_ACEOF
22990 #define USE_X_TOOLKIT 1
22991 _ACEOF
22994 if test "${HAVE_X11}" = "yes" ; then
22996 cat >>confdefs.h <<\_ACEOF
22997 #define HAVE_X11 1
22998 _ACEOF
23001 if test "${HAVE_XFREE386}" = "yes" ; then
23003 cat >>confdefs.h <<\_ACEOF
23004 #define HAVE_XFREE386 1
23005 _ACEOF
23008 if test "${HAVE_MENUS}" = "yes" ; then
23010 cat >>confdefs.h <<\_ACEOF
23011 #define HAVE_MENUS 1
23012 _ACEOF
23015 if test "${GNU_MALLOC}" = "yes" ; then
23017 cat >>confdefs.h <<\_ACEOF
23018 #define GNU_MALLOC 1
23019 _ACEOF
23022 if test "${REL_ALLOC}" = "yes" ; then
23024 cat >>confdefs.h <<\_ACEOF
23025 #define REL_ALLOC 1
23026 _ACEOF
23034 #### Report on what we decided to do.
23035 #### Report GTK as a toolkit, even if it doesn't use Xt.
23036 #### It makes printing result more understandable as using GTK sets
23037 #### toolkit_scroll_bars to yes by default.
23038 if test "${HAVE_GTK}" = "yes"; then
23039 USE_X_TOOLKIT=GTK
23042 echo "
23043 Configured for \`${canonical}'.
23045 Where should the build process find the source code? ${srcdir}
23046 What operating system and machine description files should Emacs use?
23047 \`${opsysfile}' and \`${machfile}'
23048 What compiler should emacs be built with? ${CC} ${CFLAGS}
23049 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23050 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23051 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23052 What window system should Emacs use? ${window_system}
23053 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23055 if test -n "${x_includes}"; then
23056 echo " Where do we find X Windows header files? ${x_includes}"
23057 else
23058 echo " Where do we find X Windows header files? Standard dirs"
23060 if test -n "${x_libraries}"; then
23061 echo " Where do we find X Windows libraries? ${x_libraries}"
23062 else
23063 echo " Where do we find X Windows libraries? Standard dirs"
23066 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23067 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23068 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23069 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23070 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23071 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23072 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23073 echo
23075 if test $USE_XASSERTS = yes; then
23076 echo " Compiling with asserts turned on."
23077 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23078 echo
23083 # Remove any trailing slashes in these variables.
23084 test "${prefix}" != NONE &&
23085 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23086 test "${exec_prefix}" != NONE &&
23087 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23089 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23090 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23091 ## from Makefile.c can correctly provide the arg `-traditional' to the
23092 ## C preprocessor.
23094 cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h. */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23100 yes..yes
23101 _ACEOF
23102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23103 $EGREP "yes..yes" >/dev/null 2>&1; then
23104 CPP_NEED_TRADITIONAL=no
23105 else
23106 CPP_NEED_TRADITIONAL=yes
23108 rm -f conftest*
23111 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"
23112 ac_config_commands="$ac_config_commands default"
23113 cat >confcache <<\_ACEOF
23114 # This file is a shell script that caches the results of configure
23115 # tests run on this system so they can be shared between configure
23116 # scripts and configure runs, see configure's option --config-cache.
23117 # It is not useful on other systems. If it contains results you don't
23118 # want to keep, you may remove or edit it.
23120 # config.status only pays attention to the cache file if you give it
23121 # the --recheck option to rerun configure.
23123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23125 # following values.
23127 _ACEOF
23129 # The following way of writing the cache mishandles newlines in values,
23130 # but we know of no workaround that is simple, portable, and efficient.
23131 # So, don't put newlines in cache variables' values.
23132 # Ultrix sh set writes to stderr and can't be redirected directly,
23133 # and sets the high bit in the cache file unless we assign to the vars.
23135 (set) 2>&1 |
23136 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23137 *ac_space=\ *)
23138 # `set' does not quote correctly, so add quotes (double-quote
23139 # substitution turns \\\\ into \\, and sed turns \\ into \).
23140 sed -n \
23141 "s/'/'\\\\''/g;
23142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23145 # `set' quotes correctly as required by POSIX, so do not add quotes.
23146 sed -n \
23147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23149 esac;
23151 sed '
23152 t clear
23153 : clear
23154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23155 t end
23156 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23157 : end' >>confcache
23158 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23159 if test -w $cache_file; then
23160 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23161 cat confcache >$cache_file
23162 else
23163 echo "not updating unwritable cache $cache_file"
23166 rm -f confcache
23168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23169 # Let make expand exec_prefix.
23170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23174 # trailing colons and then remove the whole line if VPATH becomes empty
23175 # (actually we leave an empty line to preserve line numbers).
23176 if test "x$srcdir" = x.; then
23177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23178 s/:*\$(srcdir):*/:/;
23179 s/:*\${srcdir}:*/:/;
23180 s/:*@srcdir@:*/:/;
23181 s/^\([^=]*=[ ]*\):*/\1/;
23182 s/:*$//;
23183 s/^[^=]*=[ ]*$//;
23187 DEFS=-DHAVE_CONFIG_H
23189 ac_libobjs=
23190 ac_ltlibobjs=
23191 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23192 # 1. Remove the extension, and $U if already installed.
23193 ac_i=`echo "$ac_i" |
23194 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23195 # 2. Add them.
23196 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23197 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23198 done
23199 LIBOBJS=$ac_libobjs
23201 LTLIBOBJS=$ac_ltlibobjs
23205 : ${CONFIG_STATUS=./config.status}
23206 ac_clean_files_save=$ac_clean_files
23207 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23208 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23209 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23210 cat >$CONFIG_STATUS <<_ACEOF
23211 #! $SHELL
23212 # Generated by $as_me.
23213 # Run this file to recreate the current configuration.
23214 # Compiler output produced by configure, useful for debugging
23215 # configure, is in config.log if it exists.
23217 debug=false
23218 ac_cs_recheck=false
23219 ac_cs_silent=false
23220 SHELL=\${CONFIG_SHELL-$SHELL}
23221 _ACEOF
23223 cat >>$CONFIG_STATUS <<\_ACEOF
23224 ## --------------------- ##
23225 ## M4sh Initialization. ##
23226 ## --------------------- ##
23228 # Be Bourne compatible
23229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23230 emulate sh
23231 NULLCMD=:
23232 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23233 # is contrary to our usage. Disable this feature.
23234 alias -g '${1+"$@"}'='"$@"'
23235 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23236 set -o posix
23238 DUALCASE=1; export DUALCASE # for MKS sh
23240 # Support unset when possible.
23241 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23242 as_unset=unset
23243 else
23244 as_unset=false
23248 # Work around bugs in pre-3.0 UWIN ksh.
23249 $as_unset ENV MAIL MAILPATH
23250 PS1='$ '
23251 PS2='> '
23252 PS4='+ '
23254 # NLS nuisances.
23255 for as_var in \
23256 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23257 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23258 LC_TELEPHONE LC_TIME
23260 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23261 eval $as_var=C; export $as_var
23262 else
23263 $as_unset $as_var
23265 done
23267 # Required to use basename.
23268 if expr a : '\(a\)' >/dev/null 2>&1; then
23269 as_expr=expr
23270 else
23271 as_expr=false
23274 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23275 as_basename=basename
23276 else
23277 as_basename=false
23281 # Name of the executable.
23282 as_me=`$as_basename "$0" ||
23283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23284 X"$0" : 'X\(//\)$' \| \
23285 X"$0" : 'X\(/\)$' \| \
23286 . : '\(.\)' 2>/dev/null ||
23287 echo X/"$0" |
23288 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23289 /^X\/\(\/\/\)$/{ s//\1/; q; }
23290 /^X\/\(\/\).*/{ s//\1/; q; }
23291 s/.*/./; q'`
23294 # PATH needs CR, and LINENO needs CR and PATH.
23295 # Avoid depending upon Character Ranges.
23296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23299 as_cr_digits='0123456789'
23300 as_cr_alnum=$as_cr_Letters$as_cr_digits
23302 # The user is always right.
23303 if test "${PATH_SEPARATOR+set}" != set; then
23304 echo "#! /bin/sh" >conf$$.sh
23305 echo "exit 0" >>conf$$.sh
23306 chmod +x conf$$.sh
23307 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23308 PATH_SEPARATOR=';'
23309 else
23310 PATH_SEPARATOR=:
23312 rm -f conf$$.sh
23316 as_lineno_1=$LINENO
23317 as_lineno_2=$LINENO
23318 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23319 test "x$as_lineno_1" != "x$as_lineno_2" &&
23320 test "x$as_lineno_3" = "x$as_lineno_2" || {
23321 # Find who we are. Look in the path if we contain no path at all
23322 # relative or not.
23323 case $0 in
23324 *[\\/]* ) as_myself=$0 ;;
23325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23326 for as_dir in $PATH
23328 IFS=$as_save_IFS
23329 test -z "$as_dir" && as_dir=.
23330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23331 done
23334 esac
23335 # We did not find ourselves, most probably we were run as `sh COMMAND'
23336 # in which case we are not to be found in the path.
23337 if test "x$as_myself" = x; then
23338 as_myself=$0
23340 if test ! -f "$as_myself"; then
23341 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23342 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23343 { (exit 1); exit 1; }; }
23345 case $CONFIG_SHELL in
23347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23348 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23350 IFS=$as_save_IFS
23351 test -z "$as_dir" && as_dir=.
23352 for as_base in sh bash ksh sh5; do
23353 case $as_dir in
23355 if ("$as_dir/$as_base" -c '
23356 as_lineno_1=$LINENO
23357 as_lineno_2=$LINENO
23358 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23359 test "x$as_lineno_1" != "x$as_lineno_2" &&
23360 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23361 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23362 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23363 CONFIG_SHELL=$as_dir/$as_base
23364 export CONFIG_SHELL
23365 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23366 fi;;
23367 esac
23368 done
23369 done
23371 esac
23373 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23374 # uniformly replaced by the line number. The first 'sed' inserts a
23375 # line-number line before each line; the second 'sed' does the real
23376 # work. The second script uses 'N' to pair each line-number line
23377 # with the numbered line, and appends trailing '-' during
23378 # substitution so that $LINENO is not a special case at line end.
23379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23380 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23381 sed '=' <$as_myself |
23382 sed '
23384 s,$,-,
23385 : loop
23386 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23387 t loop
23388 s,-$,,
23389 s,^['$as_cr_digits']*\n,,
23390 ' >$as_me.lineno &&
23391 chmod +x $as_me.lineno ||
23392 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23393 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23394 { (exit 1); exit 1; }; }
23396 # Don't try to exec as it changes $[0], causing all sort of problems
23397 # (the dirname of $[0] is not the place where we might find the
23398 # original and so on. Autoconf is especially sensible to this).
23399 . ./$as_me.lineno
23400 # Exit status is that of the last command.
23401 exit
23405 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23406 *c*,-n*) ECHO_N= ECHO_C='
23407 ' ECHO_T=' ' ;;
23408 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23409 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23410 esac
23412 if expr a : '\(a\)' >/dev/null 2>&1; then
23413 as_expr=expr
23414 else
23415 as_expr=false
23418 rm -f conf$$ conf$$.exe conf$$.file
23419 echo >conf$$.file
23420 if ln -s conf$$.file conf$$ 2>/dev/null; then
23421 # We could just check for DJGPP; but this test a) works b) is more generic
23422 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23423 if test -f conf$$.exe; then
23424 # Don't use ln at all; we don't have any links
23425 as_ln_s='cp -p'
23426 else
23427 as_ln_s='ln -s'
23429 elif ln conf$$.file conf$$ 2>/dev/null; then
23430 as_ln_s=ln
23431 else
23432 as_ln_s='cp -p'
23434 rm -f conf$$ conf$$.exe conf$$.file
23436 if mkdir -p . 2>/dev/null; then
23437 as_mkdir_p=:
23438 else
23439 test -d ./-p && rmdir ./-p
23440 as_mkdir_p=false
23443 as_executable_p="test -f"
23445 # Sed expression to map a string onto a valid CPP name.
23446 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23448 # Sed expression to map a string onto a valid variable name.
23449 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23452 # IFS
23453 # We need space, tab and new line, in precisely that order.
23454 as_nl='
23456 IFS=" $as_nl"
23458 # CDPATH.
23459 $as_unset CDPATH
23461 exec 6>&1
23463 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23464 # report actual input values of CONFIG_FILES etc. instead of their
23465 # values after options handling. Logging --version etc. is OK.
23466 exec 5>>config.log
23468 echo
23469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23470 ## Running $as_me. ##
23471 _ASBOX
23472 } >&5
23473 cat >&5 <<_CSEOF
23475 This file was extended by $as_me, which was
23476 generated by GNU Autoconf 2.59. Invocation command line was
23478 CONFIG_FILES = $CONFIG_FILES
23479 CONFIG_HEADERS = $CONFIG_HEADERS
23480 CONFIG_LINKS = $CONFIG_LINKS
23481 CONFIG_COMMANDS = $CONFIG_COMMANDS
23482 $ $0 $@
23484 _CSEOF
23485 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23486 echo >&5
23487 _ACEOF
23489 # Files that config.status was made for.
23490 if test -n "$ac_config_files"; then
23491 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23494 if test -n "$ac_config_headers"; then
23495 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23498 if test -n "$ac_config_links"; then
23499 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23502 if test -n "$ac_config_commands"; then
23503 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23506 cat >>$CONFIG_STATUS <<\_ACEOF
23508 ac_cs_usage="\
23509 \`$as_me' instantiates files from templates according to the
23510 current configuration.
23512 Usage: $0 [OPTIONS] [FILE]...
23514 -h, --help print this help, then exit
23515 -V, --version print version number, then exit
23516 -q, --quiet do not print progress messages
23517 -d, --debug don't remove temporary files
23518 --recheck update $as_me by reconfiguring in the same conditions
23519 --file=FILE[:TEMPLATE]
23520 instantiate the configuration file FILE
23521 --header=FILE[:TEMPLATE]
23522 instantiate the configuration header FILE
23524 Configuration files:
23525 $config_files
23527 Configuration headers:
23528 $config_headers
23530 Configuration commands:
23531 $config_commands
23533 Report bugs to <bug-autoconf@gnu.org>."
23534 _ACEOF
23536 cat >>$CONFIG_STATUS <<_ACEOF
23537 ac_cs_version="\\
23538 config.status
23539 configured by $0, generated by GNU Autoconf 2.59,
23540 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23542 Copyright (C) 2003 Free Software Foundation, Inc.
23543 This config.status script is free software; the Free Software Foundation
23544 gives unlimited permission to copy, distribute and modify it."
23545 srcdir=$srcdir
23546 INSTALL="$INSTALL"
23547 _ACEOF
23549 cat >>$CONFIG_STATUS <<\_ACEOF
23550 # If no file are specified by the user, then we need to provide default
23551 # value. By we need to know if files were specified by the user.
23552 ac_need_defaults=:
23553 while test $# != 0
23555 case $1 in
23556 --*=*)
23557 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23558 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23559 ac_shift=:
23562 ac_option=$1
23563 ac_optarg=$2
23564 ac_shift=shift
23566 *) # This is not an option, so the user has probably given explicit
23567 # arguments.
23568 ac_option=$1
23569 ac_need_defaults=false;;
23570 esac
23572 case $ac_option in
23573 # Handling of the options.
23574 _ACEOF
23575 cat >>$CONFIG_STATUS <<\_ACEOF
23576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23577 ac_cs_recheck=: ;;
23578 --version | --vers* | -V )
23579 echo "$ac_cs_version"; exit 0 ;;
23580 --he | --h)
23581 # Conflict between --help and --header
23582 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23583 Try \`$0 --help' for more information." >&5
23584 echo "$as_me: error: ambiguous option: $1
23585 Try \`$0 --help' for more information." >&2;}
23586 { (exit 1); exit 1; }; };;
23587 --help | --hel | -h )
23588 echo "$ac_cs_usage"; exit 0 ;;
23589 --debug | --d* | -d )
23590 debug=: ;;
23591 --file | --fil | --fi | --f )
23592 $ac_shift
23593 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23594 ac_need_defaults=false;;
23595 --header | --heade | --head | --hea )
23596 $ac_shift
23597 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23598 ac_need_defaults=false;;
23599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23601 ac_cs_silent=: ;;
23603 # This is an error.
23604 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23605 Try \`$0 --help' for more information." >&5
23606 echo "$as_me: error: unrecognized option: $1
23607 Try \`$0 --help' for more information." >&2;}
23608 { (exit 1); exit 1; }; } ;;
23610 *) ac_config_targets="$ac_config_targets $1" ;;
23612 esac
23613 shift
23614 done
23616 ac_configure_extra_args=
23618 if $ac_cs_silent; then
23619 exec 6>/dev/null
23620 ac_configure_extra_args="$ac_configure_extra_args --silent"
23623 _ACEOF
23624 cat >>$CONFIG_STATUS <<_ACEOF
23625 if \$ac_cs_recheck; then
23626 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23627 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23630 _ACEOF
23632 cat >>$CONFIG_STATUS <<_ACEOF
23634 # INIT-COMMANDS section.
23637 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23639 _ACEOF
23643 cat >>$CONFIG_STATUS <<\_ACEOF
23644 for ac_config_target in $ac_config_targets
23646 case "$ac_config_target" in
23647 # Handling of arguments.
23648 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23649 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23650 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23651 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23652 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23653 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23654 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23655 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23656 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23657 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23658 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23659 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23660 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23661 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23662 { (exit 1); exit 1; }; };;
23663 esac
23664 done
23666 # If the user did not use the arguments to specify the items to instantiate,
23667 # then the envvar interface is used. Set only those that are not.
23668 # We use the long form for the default assignment because of an extremely
23669 # bizarre bug on SunOS 4.1.3.
23670 if $ac_need_defaults; then
23671 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23672 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23673 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23676 # Have a temporary directory for convenience. Make it in the build tree
23677 # simply because there is no reason to put it here, and in addition,
23678 # creating and moving files from /tmp can sometimes cause problems.
23679 # Create a temporary directory, and hook for its removal unless debugging.
23680 $debug ||
23682 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23683 trap '{ (exit 1); exit 1; }' 1 2 13 15
23686 # Create a (secure) tmp directory for tmp files.
23689 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23690 test -n "$tmp" && test -d "$tmp"
23691 } ||
23693 tmp=./confstat$$-$RANDOM
23694 (umask 077 && mkdir $tmp)
23695 } ||
23697 echo "$me: cannot create a temporary directory in ." >&2
23698 { (exit 1); exit 1; }
23701 _ACEOF
23703 cat >>$CONFIG_STATUS <<_ACEOF
23706 # CONFIG_FILES section.
23709 # No need to generate the scripts if there are no CONFIG_FILES.
23710 # This happens for instance when ./config.status config.h
23711 if test -n "\$CONFIG_FILES"; then
23712 # Protect against being on the right side of a sed subst in config.status.
23713 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23714 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23715 s,@SHELL@,$SHELL,;t t
23716 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23717 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23718 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23719 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23720 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23721 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23722 s,@exec_prefix@,$exec_prefix,;t t
23723 s,@prefix@,$prefix,;t t
23724 s,@program_transform_name@,$program_transform_name,;t t
23725 s,@bindir@,$bindir,;t t
23726 s,@sbindir@,$sbindir,;t t
23727 s,@libexecdir@,$libexecdir,;t t
23728 s,@datadir@,$datadir,;t t
23729 s,@sysconfdir@,$sysconfdir,;t t
23730 s,@sharedstatedir@,$sharedstatedir,;t t
23731 s,@localstatedir@,$localstatedir,;t t
23732 s,@libdir@,$libdir,;t t
23733 s,@includedir@,$includedir,;t t
23734 s,@oldincludedir@,$oldincludedir,;t t
23735 s,@infodir@,$infodir,;t t
23736 s,@mandir@,$mandir,;t t
23737 s,@build_alias@,$build_alias,;t t
23738 s,@host_alias@,$host_alias,;t t
23739 s,@target_alias@,$target_alias,;t t
23740 s,@DEFS@,$DEFS,;t t
23741 s,@ECHO_C@,$ECHO_C,;t t
23742 s,@ECHO_N@,$ECHO_N,;t t
23743 s,@ECHO_T@,$ECHO_T,;t t
23744 s,@LIBS@,$LIBS,;t t
23745 s,@MAINT@,$MAINT,;t t
23746 s,@build@,$build,;t t
23747 s,@build_cpu@,$build_cpu,;t t
23748 s,@build_vendor@,$build_vendor,;t t
23749 s,@build_os@,$build_os,;t t
23750 s,@host@,$host,;t t
23751 s,@host_cpu@,$host_cpu,;t t
23752 s,@host_vendor@,$host_vendor,;t t
23753 s,@host_os@,$host_os,;t t
23754 s,@CC@,$CC,;t t
23755 s,@CFLAGS@,$CFLAGS,;t t
23756 s,@LDFLAGS@,$LDFLAGS,;t t
23757 s,@CPPFLAGS@,$CPPFLAGS,;t t
23758 s,@ac_ct_CC@,$ac_ct_CC,;t t
23759 s,@EXEEXT@,$EXEEXT,;t t
23760 s,@OBJEXT@,$OBJEXT,;t t
23761 s,@CPP@,$CPP,;t t
23762 s,@EGREP@,$EGREP,;t t
23763 s,@LN_S@,$LN_S,;t t
23764 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23765 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23766 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23767 s,@RANLIB@,$RANLIB,;t t
23768 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23769 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23770 s,@GZIP_PROG@,$GZIP_PROG,;t t
23771 s,@LIBSOUND@,$LIBSOUND,;t t
23772 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23773 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23774 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23775 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23776 s,@SET_MAKE@,$SET_MAKE,;t t
23777 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23778 s,@GTK_LIBS@,$GTK_LIBS,;t t
23779 s,@ALLOCA@,$ALLOCA,;t t
23780 s,@liblockfile@,$liblockfile,;t t
23781 s,@LIBOBJS@,$LIBOBJS,;t t
23782 s,@NEED_SETGID@,$NEED_SETGID,;t t
23783 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23784 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23785 s,@GETOPT_H@,$GETOPT_H,;t t
23786 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23787 s,@version@,$version,;t t
23788 s,@configuration@,$configuration,;t t
23789 s,@canonical@,$canonical,;t t
23790 s,@srcdir@,$srcdir,;t t
23791 s,@lispdir@,$lispdir,;t t
23792 s,@locallisppath@,$locallisppath,;t t
23793 s,@lisppath@,$lisppath,;t t
23794 s,@x_default_search_path@,$x_default_search_path,;t t
23795 s,@etcdir@,$etcdir,;t t
23796 s,@archlibdir@,$archlibdir,;t t
23797 s,@docdir@,$docdir,;t t
23798 s,@bitmapdir@,$bitmapdir,;t t
23799 s,@gamedir@,$gamedir,;t t
23800 s,@gameuser@,$gameuser,;t t
23801 s,@c_switch_system@,$c_switch_system,;t t
23802 s,@c_switch_machine@,$c_switch_machine,;t t
23803 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23804 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23805 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23806 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23807 s,@machfile@,$machfile,;t t
23808 s,@opsysfile@,$opsysfile,;t t
23809 s,@carbon_appdir@,$carbon_appdir,;t t
23810 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23811 CEOF
23813 _ACEOF
23815 cat >>$CONFIG_STATUS <<\_ACEOF
23816 # Split the substitutions into bite-sized pieces for seds with
23817 # small command number limits, like on Digital OSF/1 and HP-UX.
23818 ac_max_sed_lines=48
23819 ac_sed_frag=1 # Number of current file.
23820 ac_beg=1 # First line for current file.
23821 ac_end=$ac_max_sed_lines # Line after last line for current file.
23822 ac_more_lines=:
23823 ac_sed_cmds=
23824 while $ac_more_lines; do
23825 if test $ac_beg -gt 1; then
23826 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23827 else
23828 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23830 if test ! -s $tmp/subs.frag; then
23831 ac_more_lines=false
23832 else
23833 # The purpose of the label and of the branching condition is to
23834 # speed up the sed processing (if there are no `@' at all, there
23835 # is no need to browse any of the substitutions).
23836 # These are the two extra sed commands mentioned above.
23837 (echo ':t
23838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23839 if test -z "$ac_sed_cmds"; then
23840 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23841 else
23842 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23844 ac_sed_frag=`expr $ac_sed_frag + 1`
23845 ac_beg=$ac_end
23846 ac_end=`expr $ac_end + $ac_max_sed_lines`
23848 done
23849 if test -z "$ac_sed_cmds"; then
23850 ac_sed_cmds=cat
23852 fi # test -n "$CONFIG_FILES"
23854 _ACEOF
23855 cat >>$CONFIG_STATUS <<\_ACEOF
23856 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23858 case $ac_file in
23859 - | *:- | *:-:* ) # input from stdin
23860 cat >$tmp/stdin
23861 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23863 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23864 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23865 * ) ac_file_in=$ac_file.in ;;
23866 esac
23868 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23869 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23871 X"$ac_file" : 'X\(//\)[^/]' \| \
23872 X"$ac_file" : 'X\(//\)$' \| \
23873 X"$ac_file" : 'X\(/\)' \| \
23874 . : '\(.\)' 2>/dev/null ||
23875 echo X"$ac_file" |
23876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23878 /^X\(\/\/\)$/{ s//\1/; q; }
23879 /^X\(\/\).*/{ s//\1/; q; }
23880 s/.*/./; q'`
23881 { if $as_mkdir_p; then
23882 mkdir -p "$ac_dir"
23883 else
23884 as_dir="$ac_dir"
23885 as_dirs=
23886 while test ! -d "$as_dir"; do
23887 as_dirs="$as_dir $as_dirs"
23888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23890 X"$as_dir" : 'X\(//\)[^/]' \| \
23891 X"$as_dir" : 'X\(//\)$' \| \
23892 X"$as_dir" : 'X\(/\)' \| \
23893 . : '\(.\)' 2>/dev/null ||
23894 echo X"$as_dir" |
23895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23897 /^X\(\/\/\)$/{ s//\1/; q; }
23898 /^X\(\/\).*/{ s//\1/; q; }
23899 s/.*/./; q'`
23900 done
23901 test ! -n "$as_dirs" || mkdir $as_dirs
23902 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23903 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23904 { (exit 1); exit 1; }; }; }
23906 ac_builddir=.
23908 if test "$ac_dir" != .; then
23909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23910 # A "../" for each directory in $ac_dir_suffix.
23911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23912 else
23913 ac_dir_suffix= ac_top_builddir=
23916 case $srcdir in
23917 .) # No --srcdir option. We are building in place.
23918 ac_srcdir=.
23919 if test -z "$ac_top_builddir"; then
23920 ac_top_srcdir=.
23921 else
23922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23923 fi ;;
23924 [\\/]* | ?:[\\/]* ) # Absolute path.
23925 ac_srcdir=$srcdir$ac_dir_suffix;
23926 ac_top_srcdir=$srcdir ;;
23927 *) # Relative path.
23928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23930 esac
23932 # Do not use `cd foo && pwd` to compute absolute paths, because
23933 # the directories may not exist.
23934 case `pwd` in
23935 .) ac_abs_builddir="$ac_dir";;
23937 case "$ac_dir" in
23938 .) ac_abs_builddir=`pwd`;;
23939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23941 esac;;
23942 esac
23943 case $ac_abs_builddir in
23944 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23946 case ${ac_top_builddir}. in
23947 .) ac_abs_top_builddir=$ac_abs_builddir;;
23948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23950 esac;;
23951 esac
23952 case $ac_abs_builddir in
23953 .) ac_abs_srcdir=$ac_srcdir;;
23955 case $ac_srcdir in
23956 .) ac_abs_srcdir=$ac_abs_builddir;;
23957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23959 esac;;
23960 esac
23961 case $ac_abs_builddir in
23962 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23964 case $ac_top_srcdir in
23965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23968 esac;;
23969 esac
23972 case $INSTALL in
23973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23974 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23975 esac
23977 if test x"$ac_file" != x-; then
23978 { echo "$as_me:$LINENO: creating $ac_file" >&5
23979 echo "$as_me: creating $ac_file" >&6;}
23980 rm -f "$ac_file"
23982 # Let's still pretend it is `configure' which instantiates (i.e., don't
23983 # use $as_me), people would be surprised to read:
23984 # /* config.h. Generated by config.status. */
23985 if test x"$ac_file" = x-; then
23986 configure_input=
23987 else
23988 configure_input="$ac_file. "
23990 configure_input=$configure_input"Generated from `echo $ac_file_in |
23991 sed 's,.*/,,'` by configure."
23993 # First look for the input files in the build tree, otherwise in the
23994 # src tree.
23995 ac_file_inputs=`IFS=:
23996 for f in $ac_file_in; do
23997 case $f in
23998 -) echo $tmp/stdin ;;
23999 [\\/$]*)
24000 # Absolute (can't be DOS-style, as IFS=:)
24001 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24002 echo "$as_me: error: cannot find input file: $f" >&2;}
24003 { (exit 1); exit 1; }; }
24004 echo "$f";;
24005 *) # Relative
24006 if test -f "$f"; then
24007 # Build tree
24008 echo "$f"
24009 elif test -f "$srcdir/$f"; then
24010 # Source tree
24011 echo "$srcdir/$f"
24012 else
24013 # /dev/null tree
24014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24015 echo "$as_me: error: cannot find input file: $f" >&2;}
24016 { (exit 1); exit 1; }; }
24017 fi;;
24018 esac
24019 done` || { (exit 1); exit 1; }
24020 _ACEOF
24021 cat >>$CONFIG_STATUS <<_ACEOF
24022 sed "$ac_vpsub
24023 $extrasub
24024 _ACEOF
24025 cat >>$CONFIG_STATUS <<\_ACEOF
24027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24028 s,@configure_input@,$configure_input,;t t
24029 s,@srcdir@,$ac_srcdir,;t t
24030 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24031 s,@top_srcdir@,$ac_top_srcdir,;t t
24032 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24033 s,@builddir@,$ac_builddir,;t t
24034 s,@abs_builddir@,$ac_abs_builddir,;t t
24035 s,@top_builddir@,$ac_top_builddir,;t t
24036 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24037 s,@INSTALL@,$ac_INSTALL,;t t
24038 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24039 rm -f $tmp/stdin
24040 if test x"$ac_file" != x-; then
24041 mv $tmp/out $ac_file
24042 else
24043 cat $tmp/out
24044 rm -f $tmp/out
24047 done
24048 _ACEOF
24049 cat >>$CONFIG_STATUS <<\_ACEOF
24052 # CONFIG_HEADER section.
24055 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24056 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24058 # ac_d sets the value in "#define NAME VALUE" lines.
24059 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24060 ac_dB='[ ].*$,\1#\2'
24061 ac_dC=' '
24062 ac_dD=',;t'
24063 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24064 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24065 ac_uB='$,\1#\2define\3'
24066 ac_uC=' '
24067 ac_uD=',;t'
24069 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24071 case $ac_file in
24072 - | *:- | *:-:* ) # input from stdin
24073 cat >$tmp/stdin
24074 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24076 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24078 * ) ac_file_in=$ac_file.in ;;
24079 esac
24081 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24082 echo "$as_me: creating $ac_file" >&6;}
24084 # First look for the input files in the build tree, otherwise in the
24085 # src tree.
24086 ac_file_inputs=`IFS=:
24087 for f in $ac_file_in; do
24088 case $f in
24089 -) echo $tmp/stdin ;;
24090 [\\/$]*)
24091 # Absolute (can't be DOS-style, as IFS=:)
24092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24093 echo "$as_me: error: cannot find input file: $f" >&2;}
24094 { (exit 1); exit 1; }; }
24095 # Do quote $f, to prevent DOS paths from being IFS'd.
24096 echo "$f";;
24097 *) # Relative
24098 if test -f "$f"; then
24099 # Build tree
24100 echo "$f"
24101 elif test -f "$srcdir/$f"; then
24102 # Source tree
24103 echo "$srcdir/$f"
24104 else
24105 # /dev/null tree
24106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24107 echo "$as_me: error: cannot find input file: $f" >&2;}
24108 { (exit 1); exit 1; }; }
24109 fi;;
24110 esac
24111 done` || { (exit 1); exit 1; }
24112 # Remove the trailing spaces.
24113 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24115 _ACEOF
24117 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24118 # `conftest.undefs', that substitutes the proper values into
24119 # config.h.in to produce config.h. The first handles `#define'
24120 # templates, and the second `#undef' templates.
24121 # And first: Protect against being on the right side of a sed subst in
24122 # config.status. Protect against being in an unquoted here document
24123 # in config.status.
24124 rm -f conftest.defines conftest.undefs
24125 # Using a here document instead of a string reduces the quoting nightmare.
24126 # Putting comments in sed scripts is not portable.
24128 # `end' is used to avoid that the second main sed command (meant for
24129 # 0-ary CPP macros) applies to n-ary macro definitions.
24130 # See the Autoconf documentation for `clear'.
24131 cat >confdef2sed.sed <<\_ACEOF
24132 s/[\\&,]/\\&/g
24133 s,[\\$`],\\&,g
24134 t clear
24135 : clear
24136 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24137 t end
24138 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24139 : end
24140 _ACEOF
24141 # If some macros were called several times there might be several times
24142 # the same #defines, which is useless. Nevertheless, we may not want to
24143 # sort them, since we want the *last* AC-DEFINE to be honored.
24144 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24145 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24146 rm -f confdef2sed.sed
24148 # This sed command replaces #undef with comments. This is necessary, for
24149 # example, in the case of _POSIX_SOURCE, which is predefined and required
24150 # on some systems where configure will not decide to define it.
24151 cat >>conftest.undefs <<\_ACEOF
24152 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24153 _ACEOF
24155 # Break up conftest.defines because some shells have a limit on the size
24156 # of here documents, and old seds have small limits too (100 cmds).
24157 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24158 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24159 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24160 echo ' :' >>$CONFIG_STATUS
24161 rm -f conftest.tail
24162 while grep . conftest.defines >/dev/null
24164 # Write a limited-size here document to $tmp/defines.sed.
24165 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24166 # Speed up: don't consider the non `#define' lines.
24167 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24168 # Work around the forget-to-reset-the-flag bug.
24169 echo 't clr' >>$CONFIG_STATUS
24170 echo ': clr' >>$CONFIG_STATUS
24171 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24172 echo 'CEOF
24173 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24174 rm -f $tmp/in
24175 mv $tmp/out $tmp/in
24176 ' >>$CONFIG_STATUS
24177 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24178 rm -f conftest.defines
24179 mv conftest.tail conftest.defines
24180 done
24181 rm -f conftest.defines
24182 echo ' fi # grep' >>$CONFIG_STATUS
24183 echo >>$CONFIG_STATUS
24185 # Break up conftest.undefs because some shells have a limit on the size
24186 # of here documents, and old seds have small limits too (100 cmds).
24187 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24188 rm -f conftest.tail
24189 while grep . conftest.undefs >/dev/null
24191 # Write a limited-size here document to $tmp/undefs.sed.
24192 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24193 # Speed up: don't consider the non `#undef'
24194 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24195 # Work around the forget-to-reset-the-flag bug.
24196 echo 't clr' >>$CONFIG_STATUS
24197 echo ': clr' >>$CONFIG_STATUS
24198 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24199 echo 'CEOF
24200 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24201 rm -f $tmp/in
24202 mv $tmp/out $tmp/in
24203 ' >>$CONFIG_STATUS
24204 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24205 rm -f conftest.undefs
24206 mv conftest.tail conftest.undefs
24207 done
24208 rm -f conftest.undefs
24210 cat >>$CONFIG_STATUS <<\_ACEOF
24211 # Let's still pretend it is `configure' which instantiates (i.e., don't
24212 # use $as_me), people would be surprised to read:
24213 # /* config.h. Generated by config.status. */
24214 if test x"$ac_file" = x-; then
24215 echo "/* Generated by configure. */" >$tmp/config.h
24216 else
24217 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24219 cat $tmp/in >>$tmp/config.h
24220 rm -f $tmp/in
24221 if test x"$ac_file" != x-; then
24222 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24223 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24224 echo "$as_me: $ac_file is unchanged" >&6;}
24225 else
24226 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24228 X"$ac_file" : 'X\(//\)[^/]' \| \
24229 X"$ac_file" : 'X\(//\)$' \| \
24230 X"$ac_file" : 'X\(/\)' \| \
24231 . : '\(.\)' 2>/dev/null ||
24232 echo X"$ac_file" |
24233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24235 /^X\(\/\/\)$/{ s//\1/; q; }
24236 /^X\(\/\).*/{ s//\1/; q; }
24237 s/.*/./; q'`
24238 { if $as_mkdir_p; then
24239 mkdir -p "$ac_dir"
24240 else
24241 as_dir="$ac_dir"
24242 as_dirs=
24243 while test ! -d "$as_dir"; do
24244 as_dirs="$as_dir $as_dirs"
24245 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247 X"$as_dir" : 'X\(//\)[^/]' \| \
24248 X"$as_dir" : 'X\(//\)$' \| \
24249 X"$as_dir" : 'X\(/\)' \| \
24250 . : '\(.\)' 2>/dev/null ||
24251 echo X"$as_dir" |
24252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24254 /^X\(\/\/\)$/{ s//\1/; q; }
24255 /^X\(\/\).*/{ s//\1/; q; }
24256 s/.*/./; q'`
24257 done
24258 test ! -n "$as_dirs" || mkdir $as_dirs
24259 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24260 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24261 { (exit 1); exit 1; }; }; }
24263 rm -f $ac_file
24264 mv $tmp/config.h $ac_file
24266 else
24267 cat $tmp/config.h
24268 rm -f $tmp/config.h
24270 done
24271 _ACEOF
24272 cat >>$CONFIG_STATUS <<\_ACEOF
24275 # CONFIG_COMMANDS section.
24277 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24278 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24279 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24280 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24281 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24282 X"$ac_dest" : 'X\(//\)[^/]' \| \
24283 X"$ac_dest" : 'X\(//\)$' \| \
24284 X"$ac_dest" : 'X\(/\)' \| \
24285 . : '\(.\)' 2>/dev/null ||
24286 echo X"$ac_dest" |
24287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24289 /^X\(\/\/\)$/{ s//\1/; q; }
24290 /^X\(\/\).*/{ s//\1/; q; }
24291 s/.*/./; q'`
24292 { if $as_mkdir_p; then
24293 mkdir -p "$ac_dir"
24294 else
24295 as_dir="$ac_dir"
24296 as_dirs=
24297 while test ! -d "$as_dir"; do
24298 as_dirs="$as_dir $as_dirs"
24299 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301 X"$as_dir" : 'X\(//\)[^/]' \| \
24302 X"$as_dir" : 'X\(//\)$' \| \
24303 X"$as_dir" : 'X\(/\)' \| \
24304 . : '\(.\)' 2>/dev/null ||
24305 echo X"$as_dir" |
24306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24308 /^X\(\/\/\)$/{ s//\1/; q; }
24309 /^X\(\/\).*/{ s//\1/; q; }
24310 s/.*/./; q'`
24311 done
24312 test ! -n "$as_dirs" || mkdir $as_dirs
24313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24315 { (exit 1); exit 1; }; }; }
24317 ac_builddir=.
24319 if test "$ac_dir" != .; then
24320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24321 # A "../" for each directory in $ac_dir_suffix.
24322 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24323 else
24324 ac_dir_suffix= ac_top_builddir=
24327 case $srcdir in
24328 .) # No --srcdir option. We are building in place.
24329 ac_srcdir=.
24330 if test -z "$ac_top_builddir"; then
24331 ac_top_srcdir=.
24332 else
24333 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24334 fi ;;
24335 [\\/]* | ?:[\\/]* ) # Absolute path.
24336 ac_srcdir=$srcdir$ac_dir_suffix;
24337 ac_top_srcdir=$srcdir ;;
24338 *) # Relative path.
24339 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24340 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24341 esac
24343 # Do not use `cd foo && pwd` to compute absolute paths, because
24344 # the directories may not exist.
24345 case `pwd` in
24346 .) ac_abs_builddir="$ac_dir";;
24348 case "$ac_dir" in
24349 .) ac_abs_builddir=`pwd`;;
24350 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24351 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24352 esac;;
24353 esac
24354 case $ac_abs_builddir in
24355 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24357 case ${ac_top_builddir}. in
24358 .) ac_abs_top_builddir=$ac_abs_builddir;;
24359 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24360 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24361 esac;;
24362 esac
24363 case $ac_abs_builddir in
24364 .) ac_abs_srcdir=$ac_srcdir;;
24366 case $ac_srcdir in
24367 .) ac_abs_srcdir=$ac_abs_builddir;;
24368 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24369 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24370 esac;;
24371 esac
24372 case $ac_abs_builddir in
24373 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24375 case $ac_top_srcdir in
24376 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24377 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24378 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24379 esac;;
24380 esac
24383 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24384 echo "$as_me: executing $ac_dest commands" >&6;}
24385 case $ac_dest in
24386 default )
24388 ### Make the necessary directories, if they don't exist.
24389 for dir in etc lisp ; do
24390 test -d ${dir} || mkdir ${dir}
24391 done
24393 # Build src/Makefile from ${srcdir}/src/Makefile.c
24394 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24395 # This must be done after src/config.h is built, since we rely on that file.
24397 # Now get this: Some word that is part of the ${srcdir} directory name
24398 # or the ${configuration} value might, just might, happen to be an
24399 # identifier like `sun4' or `i386' or something, and be predefined by
24400 # the C preprocessor to some helpful value like 1, or maybe the empty
24401 # string. Needless to say consequent macro substitutions are less
24402 # than conducive to the makefile finding the correct directory.
24403 undefs="`echo $top_srcdir $configuration $canonical |
24404 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24405 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24408 echo creating src/epaths.h
24409 ${MAKE-make} epaths-force
24411 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24412 # `..' to `. .' unless invoked with -traditional
24414 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24415 CPPFLAGS="$CPPFLAGS -traditional"
24418 echo creating lib-src/Makefile
24419 ( cd lib-src
24420 rm -f junk.c junk1.c junk2.c
24421 sed -e '/start of cpp stuff/q' \
24422 < Makefile.c > junk1.c
24423 sed -e '1,/start of cpp stuff/d'\
24424 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24425 < Makefile.c > junk.c
24426 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24427 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24428 cat junk1.c junk2.c > Makefile.new
24429 rm -f junk.c junk1.c junk2.c
24430 chmod 444 Makefile.new
24431 mv -f Makefile.new Makefile
24434 echo creating src/Makefile
24435 ( cd src
24436 rm -f junk.c junk1.c junk2.c
24437 sed -e '/start of cpp stuff/q' \
24438 < Makefile.c > junk1.c
24439 sed -e '1,/start of cpp stuff/d'\
24440 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24441 < Makefile.c > junk.c
24442 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24443 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24444 cat junk1.c junk2.c > Makefile.new
24445 rm -f junk.c junk1.c junk2.c
24446 chmod 444 Makefile.new
24447 mv -f Makefile.new Makefile
24450 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24451 echo creating src/.gdbinit
24452 echo source $srcdir/src/.gdbinit > src/.gdbinit
24455 # This is how we know whether to re-run configure in certain cases.
24456 touch src/config.stamp
24459 esac
24460 done
24461 _ACEOF
24463 cat >>$CONFIG_STATUS <<\_ACEOF
24465 { (exit 0); exit 0; }
24466 _ACEOF
24467 chmod +x $CONFIG_STATUS
24468 ac_clean_files=$ac_clean_files_save
24471 # configure is writing to config.log, and then calls config.status.
24472 # config.status does its own redirection, appending to config.log.
24473 # Unfortunately, on DOS this fails, as config.log is still kept open
24474 # by configure, so config.status won't be able to write to it; its
24475 # output is simply discarded. So we exec the FD to /dev/null,
24476 # effectively closing config.log, so it can be properly (re)opened and
24477 # appended to by config.status. When coming back to configure, we
24478 # need to make the FD available again.
24479 if test "$no_create" != yes; then
24480 ac_cs_success=:
24481 ac_config_status_args=
24482 test "$silent" = yes &&
24483 ac_config_status_args="$ac_config_status_args --quiet"
24484 exec 5>/dev/null
24485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24486 exec 5>>config.log
24487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24488 # would make configure fail if this is the last instruction.
24489 $ac_cs_success || { (exit 1); exit 1; }