Regenerate.
[emacs.git] / configure
blob480561652f2fcd9373d96c6cd08e12386d1381b5
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 ia64-*-freebsd*) machine=ia64 ;;
1721 sparc64-*-freebsd*) machine=sparc ;;
1722 powerpc-*-freebsd*) machine=macppc ;;
1723 i[3456]86-*-freebsd*) machine=intel386 ;;
1724 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1725 esac
1728 ## NetBSD ports
1729 *-*-netbsd* )
1730 opsys=netbsd
1731 if test -f /usr/lib/crti.o; then
1733 cat >>confdefs.h <<\_ACEOF
1734 #define HAVE_CRTIN
1735 _ACEOF
1739 case "${canonical}" in
1740 alpha*-*-netbsd*) machine=alpha ;;
1741 i[3456]86-*-netbsd*) machine=intel386 ;;
1742 m68k-*-netbsd*)
1743 # This is somewhat bogus.
1744 machine=hp9000s300 ;;
1745 powerpc-apple-netbsd*) machine=macppc ;;
1746 mips-*-netbsd*) machine=pmax ;;
1747 mipsel-*-netbsd*) machine=pmax ;;
1748 mipseb-*-netbsd*) machine=pmax ;;
1749 ns32k-*-netbsd*) machine=ns32000 ;;
1750 powerpc-*-netbsd*) machine=macppc ;;
1751 sparc*-*-netbsd*) machine=sparc ;;
1752 vax-*-netbsd*) machine=vax ;;
1753 arm-*-netbsd*) machine=arm ;;
1754 esac
1757 ## OpenBSD ports
1758 *-*-openbsd* )
1759 opsys=openbsd
1760 case "${canonical}" in
1761 alpha*-*-openbsd*) machine=alpha ;;
1762 i386-*-openbsd*) machine=intel386 ;;
1763 x86_64-*-openbsd*) machine=amdx86-64 ;;
1764 m68k-*-openbsd*) machine=hp9000s300 ;;
1765 mipsel-*-openbsd*) machine=pmax ;;
1766 ns32k-*-openbsd*) machine=ns32000 ;;
1767 sparc-*-openbsd*) machine=sparc ;;
1768 vax-*-openbsd*) machine=vax ;;
1769 esac
1772 ## LynxOS ports
1773 *-*-lynxos* )
1774 opsys=lynxos
1775 case "${canonical}" in
1776 i[3456]86-*-lynxos*) machine=intel386 ;;
1777 powerpc-*-lynxos*) machine=powerpc ;;
1778 esac
1781 ## Acorn RISCiX:
1782 arm-acorn-riscix1.1* )
1783 machine=acorn opsys=riscix1-1
1785 arm-acorn-riscix1.2* | arm-acorn-riscix )
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine=acorn opsys=riscix12
1791 ## BSDI ports
1792 *-*-bsdi* )
1793 opsys=bsdi
1794 case "${canonical}" in
1795 i[345]86-*-bsdi*) machine=intel386 ;;
1796 sparc-*-bsdi*) machine=sparc ;;
1797 powerpc-*-bsdi*) machine=macppc ;;
1798 esac
1799 case "${canonical}" in
1800 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1801 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1802 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1803 *-*-bsdi3* ) opsys=bsdos3 ;;
1804 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1805 esac
1808 ## Alliant machines
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1814 fx80-alliant-* )
1815 machine=alliant4 opsys=bsd4-2
1817 i860-alliant-* )
1818 machine=alliant-2800 opsys=bsd4-3
1821 ## Alpha (DEC) machines.
1822 alpha*-dec-osf* )
1823 machine=alpha opsys=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1826 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP=/usr/bin/cpp
1832 case "${canonical}" in
1833 alpha*-dec-osf[5-9]*)
1834 opsys=osf5-0 ;;
1835 esac
1838 alpha*-*-linux-gnu* )
1839 machine=alpha opsys=gnu-linux
1842 arm*-*-linux-gnu* )
1843 machine=arm opsys=gnu-linux
1846 ## Altos 3068
1847 m68*-altos-sysv* )
1848 machine=altos opsys=usg5-2
1851 ## Amdahl UTS
1852 580-amdahl-sysv* )
1853 machine=amdahl opsys=usg5-2-2
1856 ## Apollo, Domain/OS
1857 m68*-apollo-* )
1858 machine=apollo opsys=bsd4-3
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1862 we32k-att-sysv* )
1863 machine=att3b opsys=usg5-2-2
1866 ## AT&T 3b1 - The Mighty Unix PC!
1867 m68*-att-sysv* )
1868 machine=7300 opsys=usg5-2-2
1871 ## Bull dpx20
1872 rs6000-bull-bosx* )
1873 machine=ibmrs6000 opsys=aix3-2
1876 ## Bull dpx2
1877 m68*-bull-sysv3* )
1878 machine=dpx2 opsys=usg5-3
1881 ## Bull sps7
1882 m68*-bull-sysv2* )
1883 machine=sps7 opsys=usg5-2
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1888 ## Celerity
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd* )
1893 machine=celerity opsys=bsd4-2
1896 ## Clipper
1897 ## What operating systems does this chip run that Emacs has been
1898 ## tested on?
1899 clipper-* )
1900 machine=clipper
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1905 ## Compaq Nonstop
1906 mips-compaq-nonstopux* )
1907 machine=nonstopux opsys=nonstopux
1910 ## Convex
1911 *-convex-bsd* | *-convex-convexos* )
1912 machine=convex opsys=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP="cc -E -P"
1917 ## Cubix QBx/386
1918 i[3456]86-cubix-sysv* )
1919 machine=intel386 opsys=usg5-3
1922 ## Cydra 5
1923 cydra*-cydrome-sysv* )
1924 machine=cydra5 opsys=usg5-3
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1934 machine=aviion opsys=dgux4
1936 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine=aviion opsys=dgux5-4-3
1941 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1942 machine=aviion opsys=dgux5-4r2
1944 m88k-dg-dgux* )
1945 machine=aviion opsys=dgux
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i[345]86-dg-dguxR4* )
1952 machine=aviion-intel opsys=dgux4
1955 ## DECstations
1956 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1957 machine=pmax opsys=bsd4-2
1959 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1960 machine=pmax opsys=bsd4-3
1962 mips-dec-ultrix* )
1963 machine=pmax opsys=ultrix4-3
1965 mips-dec-osf* )
1966 machine=pmax opsys=osf1
1968 mips-dec-mach_bsd4.3* )
1969 machine=pmax opsys=mach-bsd4-3
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv* | m68000-motorola-sysv* )
1974 machine=delta opsys=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1976 then
1977 if test -s /etc/167config
1978 then CC="gnucc -m68040"
1979 else CC="gnucc -m68881"
1981 else
1982 if test -z "`type gcc | grep 'not found'`"
1983 then CC=gcc
1984 else CC=cc
1988 m88k-motorola-sysv4* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine=delta88k opsys=usg5-4-2
1995 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1996 machine=delta88k opsys=usg5-3
1999 ## Dual machines
2000 m68*-dual-sysv* )
2001 machine=dual opsys=usg5-2
2003 m68*-dual-uniplus* )
2004 machine=dual opsys=unipl5-2
2007 ## Elxsi 6400
2008 elxsi-elxsi-sysv* )
2009 machine=elxsi opsys=usg5-2
2012 ## Encore machines
2013 ns16k-encore-bsd* )
2014 machine=ns16000 opsys=umax
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2020 ## Gould Power Node and NP1
2021 pn-gould-bsd4.2* )
2022 machine=gould opsys=bsd4-2
2024 pn-gould-bsd4.3* )
2025 machine=gould opsys=bsd4-3
2027 np1-gould-bsd* )
2028 machine=gould-np1 opsys=bsd4-3
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2033 m88k-harris-cxux* )
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2037 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2038 esac
2039 NON_GNU_CPP="/lib/cpp"
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2042 m68k-harris-cxux* )
2043 machine=nh3000 opsys=cxux
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix )
2047 machine=nh6000 opsys=powerunix
2048 NON_GNU_CPP="cc -Xo -E -P"
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1-hitachi-hiuxmpp* )
2052 machine=sr2k opsys=hiuxmpp
2054 hppa1.1-hitachi-hiuxwe2* )
2055 machine=sr2k opsys=hiuxwe2
2057 ## Honeywell XPS100
2058 xps*-honeywell-sysv* )
2059 machine=xps100 opsys=usg5-2
2062 ## HP 9000 series 200 or 300
2063 m68*-hp-bsd* )
2064 machine=hp9000s300 opsys=bsd4-3
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2067 m68*-hp-hpux* )
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2072 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2073 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2074 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2075 *) machine=hp9000s300 opsys=hpux ;;
2076 esac
2079 ## HP 9000 series 700 and 800, running HP/UX
2080 hppa*-hp-hpux7* )
2081 machine=hp800 opsys=hpux
2083 hppa*-hp-hpux8* )
2084 machine=hp800 opsys=hpux8
2086 hppa*-hp-hpux9shr* )
2087 machine=hp800 opsys=hpux9shr
2089 hppa*-hp-hpux9* )
2090 machine=hp800 opsys=hpux9
2092 hppa*-hp-hpux10.2* )
2093 machine=hp800 opsys=hpux10-20
2095 hppa*-hp-hpux10* )
2096 machine=hp800 opsys=hpux10
2098 hppa*-hp-hpux1[1-9]* )
2099 machine=hp800 opsys=hpux11
2100 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2103 hppa*-*-linux-gnu* )
2104 machine=hp800 opsys=gnu-linux
2107 ## HP 9000 series 700 and 800, running HP/UX
2108 hppa*-hp-hpux* )
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2114 *.08.* ) machine=hp800 opsys=hpux8 ;;
2115 *.09.* ) machine=hp800 opsys=hpux9 ;;
2116 *) machine=hp800 opsys=hpux10 ;;
2117 esac
2119 hppa*-*-nextstep* )
2120 machine=hp800 opsys=nextstep
2123 ## Orion machines
2124 orion-orion-bsd* )
2125 machine=orion opsys=bsd4-2
2127 clipper-orion-bsd* )
2128 machine=orion105 opsys=bsd4-2
2131 ## IBM machines
2132 i[3456]86-ibm-aix1.1* )
2133 machine=ibmps2-aix opsys=usg5-2-2
2135 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2136 machine=ibmps2-aix opsys=usg5-3
2138 i370-ibm-aix*)
2139 machine=ibm370aix opsys=usg5-3
2141 s390-*-linux-gnu* )
2142 machine=ibms390 opsys=gnu-linux
2144 s390x-*-linux-gnu* )
2145 machine=ibms390x opsys=gnu-linux
2147 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2148 machine=ibmrs6000 opsys=aix3-1
2150 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2151 machine=ibmrs6000 opsys=aix3-2-5
2153 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2154 machine=ibmrs6000 opsys=aix4-1
2156 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2157 machine=ibmrs6000 opsys=aix4-2
2159 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2160 machine=ibmrs6000 opsys=aix4-2
2162 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2163 machine=ibmrs6000 opsys=aix4
2165 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2166 machine=ibmrs6000 opsys=aix4-1
2168 rs6000-ibm-aix* | powerpc-ibm-aix* )
2169 machine=ibmrs6000 opsys=aix3-2
2171 romp-ibm-bsd4.3* )
2172 machine=ibmrt opsys=bsd4-3
2174 romp-ibm-bsd4.2* )
2175 machine=ibmrt opsys=bsd4-2
2177 romp-ibm-aos4.3* )
2178 machine=ibmrt opsys=bsd4-3
2180 romp-ibm-aos4.2* )
2181 machine=ibmrt opsys=bsd4-2
2183 romp-ibm-aos* )
2184 machine=ibmrt opsys=bsd4-3
2186 romp-ibm-bsd* )
2187 machine=ibmrt opsys=bsd4-3
2189 romp-ibm-aix* )
2190 machine=ibmrt-aix opsys=usg5-2-2
2193 ## Integrated Solutions `Optimum V'
2194 m68*-isi-bsd4.2* )
2195 machine=isi-ov opsys=bsd4-2
2197 m68*-isi-bsd4.3* )
2198 machine=isi-ov opsys=bsd4-3
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i[3456]86-intsys-sysv* )
2203 machine=is386 opsys=usg5-2-2
2206 ## Prime EXL
2207 i[3456]86-prime-sysv* )
2208 machine=i386 opsys=usg5-3
2211 ## Sequent Symmetry running Dynix
2212 i[3456]86-sequent-bsd* )
2213 machine=symmetry opsys=bsd4-3
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2218 machine=sequent-ptx opsys=ptx4
2219 NON_GNU_CPP=/lib/cpp
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i[3456]86-sequent-ptx* )
2225 machine=sequent-ptx opsys=ptx
2226 NON_GNU_CPP="/lib/cpp"
2229 ## ncr machine running svr4.3.
2230 i[3456]86-ncr-sysv4.3 )
2231 machine=ncr386 opsys=usg5-4-3
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i[3456]86-ncr-sysv* )
2237 machine=ncr386 opsys=usg5-4-2
2240 ## Intel Paragon OSF/1
2241 i860-intel-osf1* )
2242 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2245 ## Intel 860
2246 i860-*-sysv4* )
2247 machine=i860 opsys=usg5-4
2248 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2252 ## Macintosh PowerPC
2253 powerpc*-*-linux-gnu* )
2254 machine=macppc opsys=gnu-linux
2257 ## Masscomp machines
2258 m68*-masscomp-rtu* )
2259 machine=masscomp opsys=rtu
2262 ## Megatest machines
2263 m68*-megatest-bsd* )
2264 machine=mega68 opsys=bsd4-2
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2278 mips-mips-usg* )
2279 machine=mips4
2280 ## Fall through to the general code at the bottom to decide on the OS.
2282 mips-mips-riscos4* )
2283 machine=mips4 opsys=bsd4-3
2284 NON_GNU_CC="cc -systype bsd43"
2285 NON_GNU_CPP="cc -systype bsd43 -E"
2287 mips-mips-riscos5* )
2288 machine=mips4 opsys=riscos5
2289 NON_GNU_CC="cc -systype bsd43"
2290 NON_GNU_CPP="cc -systype bsd43 -E"
2292 mips-mips-bsd* )
2293 machine=mips opsys=bsd4-3
2295 mips-mips-* )
2296 machine=mips opsys=usg5-2-2
2299 ## NeXT
2300 m68*-next-* | m68k-*-nextstep* )
2301 machine=m68k opsys=nextstep
2304 ## The complete machine from National Semiconductor
2305 ns32k-ns-genix* )
2306 machine=ns32000 opsys=usg5-2
2309 ## NCR machines
2310 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2311 machine=tower32 opsys=usg5-2-2
2313 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2314 machine=tower32v3 opsys=usg5-3
2317 ## NEC EWS4800
2318 mips-nec-sysv4*)
2319 machine=ews4800 opsys=ux4800
2322 ## Nixdorf Targon 31
2323 m68*-nixdorf-sysv* )
2324 machine=targon31 opsys=usg5-2-2
2327 ## Nu (TI or LMI)
2328 m68*-nu-sysv* )
2329 machine=nu opsys=usg5-2
2332 ## Plexus
2333 m68*-plexus-sysv* )
2334 machine=plexus opsys=usg5-2
2337 ## Pyramid machines
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd* )
2341 machine=pyramid opsys=bsd4-2
2344 ## Sequent Balance
2345 ns32k-sequent-bsd4.2* )
2346 machine=sequent opsys=bsd4-2
2348 ns32k-sequent-bsd4.3* )
2349 machine=sequent opsys=bsd4-3
2352 ## Siemens Nixdorf
2353 mips-siemens-sysv* | mips-sni-sysv*)
2354 machine=mips-siemens opsys=usg5-4
2355 NON_GNU_CC=/usr/ccs/bin/cc
2356 NON_GNU_CPP=/usr/ccs/lib/cpp
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2361 m68*-sgi-iris3.5* )
2362 machine=irist opsys=iris3-5
2364 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2365 machine=irist opsys=iris3-6
2367 ## Iris 4D
2368 mips-sgi-irix3* )
2369 machine=iris4d opsys=irix3-3
2371 mips-sgi-irix4* )
2372 machine=iris4d opsys=irix4-0
2374 mips-sgi-irix6.5 )
2375 machine=iris4d opsys=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2382 mips-sgi-irix6* )
2383 machine=iris4d opsys=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS=-32
2390 mips-sgi-irix5.[01]* )
2391 machine=iris4d opsys=irix5-0
2393 mips-sgi-irix5* | mips-sgi-irix* )
2394 machine=iris4d opsys=irix5-2
2397 ## SONY machines
2398 m68*-sony-bsd4.2* )
2399 machine=news opsys=bsd4-2
2401 m68*-sony-bsd4.3* )
2402 machine=news opsys=bsd4-3
2404 m68*-sony-newsos3* | m68*-sony-news3*)
2405 machine=news opsys=bsd4-3
2407 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2408 machine=news-risc opsys=bsd4-3
2410 mips-sony-newsos6* )
2411 machine=news-r6 opsys=newsos6
2413 mips-sony-news* )
2414 machine=news-risc opsys=newsos5
2417 ## Stride
2418 m68*-stride-sysv* )
2419 machine=stride opsys=usg5-2
2422 ## Suns
2423 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2424 machine=sparc opsys=gnu-linux
2427 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2428 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2429 | rs6000-*-solaris2*)
2430 case "${canonical}" in
2431 m68*-sunos1* ) machine=sun1 ;;
2432 m68*-sunos2* ) machine=sun2 ;;
2433 m68* ) machine=sun3 ;;
2434 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2435 i[3456]86-*-* ) machine=intel386 ;;
2436 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2437 powerpcle* ) machine=powerpcle ;;
2438 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2439 sparc* ) machine=sparc ;;
2440 * ) unported=yes ;;
2441 esac
2442 case "${canonical}" in
2443 ## The Sun386 didn't get past 4.0.
2444 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2445 *-sunos4.0* ) opsys=sunos4-0 ;;
2446 *-sunos4.1.[3-9]*noshare )
2447 ## This name is sunos413 instead of sunos4-1-3
2448 ## to avoid a file name conflict on MSDOS.
2449 opsys=sunos413
2450 NON_GNU_CPP=/usr/lib/cpp
2451 NON_GCC_TEST_OPTIONS=-Bstatic
2452 GCC_TEST_OPTIONS=-static
2454 *-sunos4.1.[3-9]* | *-sunos4shr*)
2455 opsys=sunos4shr
2456 NON_GNU_CPP=/usr/lib/cpp
2458 *-sunos4* | *-sunos )
2459 opsys=sunos4-1
2460 NON_GCC_TEST_OPTIONS=-Bstatic
2461 GCC_TEST_OPTIONS=-static
2463 *-sunos5.3* | *-solaris2.3* )
2464 opsys=sol2-3
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2467 *-sunos5.4* | *-solaris2.4* )
2468 opsys=sol2-4
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2472 *-sunos5.5* | *-solaris2.5* )
2473 opsys=sol2-5
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2475 RANLIB="ar -ts"
2477 *-sunos5.6* | *-solaris2.6* )
2478 opsys=sol2-6
2479 NON_GNU_CPP=/usr/ccs/lib/cpp
2480 RANLIB="ar -ts"
2482 *-sunos5* | *-solaris* )
2483 opsys=sol2-6
2484 NON_GNU_CPP=/usr/ccs/lib/cpp
2486 * ) opsys=bsd4-2 ;;
2487 esac
2488 ## Watch out for a compiler that we know will not work.
2489 case "${canonical}" in
2490 *-solaris* | *-sunos5* )
2491 if [ "x$CC" = x/usr/ucb/cc ]; then
2492 ## /usr/ucb/cc doesn't work;
2493 ## we should find some other compiler that does work.
2494 unset CC
2497 *) ;;
2498 esac
2500 sparc-*-nextstep* )
2501 machine=sparc opsys=nextstep
2504 ## Tadpole 68k
2505 m68*-tadpole-sysv* )
2506 machine=tad68k opsys=usg5-3
2509 ## Tahoe machines
2510 tahoe-tahoe-bsd4.2* )
2511 machine=tahoe opsys=bsd4-2
2513 tahoe-tahoe-bsd4.3* )
2514 machine=tahoe opsys=bsd4-3
2517 ## Tandem Integrity S2
2518 mips-tandem-sysv* )
2519 machine=tandem-s2 opsys=usg5-3
2522 ## Tektronix XD88
2523 m88k-tektronix-sysv3* )
2524 machine=tekxd88 opsys=usg5-3
2527 ## Tektronix 16000 box (6130?)
2528 ns16k-tektronix-bsd* )
2529 machine=ns16000 opsys=bsd4-2
2531 ## Tektronix 4300
2532 ## src/m/tek4300.h hints that this is a m68k machine.
2533 m68*-tektronix-bsd* )
2534 machine=tek4300 opsys=bsd4-3
2537 ## Titan P2 or P3
2538 ## We seem to have lost the machine-description file titan.h!
2539 titan-titan-sysv* )
2540 machine=titan opsys=usg5-3
2543 ## Ustation E30 (SS5E)
2544 m68*-unisys-uniplus* )
2545 machine=ustation opsystem=unipl5-2
2548 ## Vaxen.
2549 vax-dec-* )
2550 machine=vax
2551 case "${canonical}" in
2552 *-bsd4.1* ) opsys=bsd4-1 ;;
2553 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2554 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2555 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2556 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2557 *-vms* ) opsys=vms ;;
2558 * ) unported=yes
2559 esac
2562 ## Whitechapel MG1
2563 ns16k-whitechapel-* )
2564 machine=mg1
2565 ## We don't know what sort of OS runs on these; we'll let the
2566 ## operating system guessing code below try.
2569 ## Wicat
2570 m68*-wicat-sysv* )
2571 machine=wicat opsys=usg5-2
2574 ## IA-64
2575 ia64*-*-linux* )
2576 machine=ia64 opsys=gnu-linux
2579 ## Intel 386 machines where we don't care about the manufacturer
2580 i[3456]86-*-* )
2581 machine=intel386
2582 case "${canonical}" in
2583 *-cygwin ) opsys=cygwin ;;
2584 *-darwin* ) opsys=darwin
2585 CPP="${CC-cc} -E -no-cpp-precomp"
2587 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2588 *-isc2.2* ) opsys=isc2-2 ;;
2589 *-isc4.0* ) opsys=isc4-0 ;;
2590 *-isc4.* ) opsys=isc4-1
2591 GCC_TEST_OPTIONS=-posix
2592 NON_GCC_TEST_OPTIONS=-Xp
2594 *-isc* ) opsys=isc3-0 ;;
2595 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2596 *-esix* ) opsys=esix ;;
2597 *-xenix* ) opsys=xenix ;;
2598 *-linux-gnu* ) opsys=gnu-linux ;;
2599 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2600 *-sco3.2v5* ) opsys=sco5
2601 NON_GNU_CPP=/lib/cpp
2602 # Prevent -belf from being passed to $CPP.
2603 # /lib/cpp does not accept it.
2604 OVERRIDE_CPPFLAGS=" "
2606 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2607 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2608 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2609 *-386bsd* ) opsys=386bsd ;;
2610 *-nextstep* ) opsys=nextstep ;;
2611 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2612 esac
2615 ## m68k Linux-based GNU system
2616 m68k-*-linux-gnu* )
2617 machine=m68k opsys=gnu-linux
2620 ## Mips Linux-based GNU system
2621 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2622 machine=mips opsys=gnu-linux
2625 ## UXP/DS
2626 sparc-fujitsu-sysv4* )
2627 machine=sparc opsys=uxpds
2628 NON_GNU_CPP=/usr/ccs/lib/cpp
2629 RANLIB="ar -ts"
2632 ## UXP/V
2633 f301-fujitsu-uxpv4.1)
2634 machine=f301 opsys=uxpv
2637 ## Darwin / Mac OS X
2638 powerpc-apple-darwin* )
2639 machine=powermac opsys=darwin
2640 # Define CPP as follows to make autoconf work correctly.
2641 CPP="${CC-cc} -E -no-cpp-precomp"
2642 # Use fink packages if available.
2643 if test -d /sw/include && test -d /sw/lib; then
2644 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2645 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2646 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2650 ## AMD x86-64 Linux-based GNU system
2651 x86_64-*-linux-gnu* )
2652 machine=amdx86-64 opsys=gnu-linux
2656 unported=yes
2658 esac
2660 ### If the code above didn't choose an operating system, just choose
2661 ### an operating system based on the configuration name. You really
2662 ### only want to use this when you have no idea what the right
2663 ### operating system is; if you know what operating systems a machine
2664 ### runs, it's cleaner to make it explicit in the case statement
2665 ### above.
2666 if test x"${opsys}" = x; then
2667 case "${canonical}" in
2668 *-gnu* ) opsys=gnu ;;
2669 *-bsd4.[01] ) opsys=bsd4-1 ;;
2670 *-bsd4.2 ) opsys=bsd4-2 ;;
2671 *-bsd4.3 ) opsys=bsd4-3 ;;
2672 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2673 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2674 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2675 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2676 *-sysv4.2uw* ) opsys=unixware ;;
2677 *-sysv5uw* ) opsys=unixware ;;
2678 *-sysv5OpenUNIX* ) opsys=unixware ;;
2679 *-sysv4.1* | *-sysvr4.1* )
2680 NON_GNU_CPP=/usr/lib/cpp
2681 opsys=usg5-4 ;;
2682 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2683 if [ x$NON_GNU_CPP = x ]; then
2684 if [ -f /usr/ccs/lib/cpp ]; then
2685 NON_GNU_CPP=/usr/ccs/lib/cpp
2686 else
2687 NON_GNU_CPP=/lib/cpp
2690 opsys=usg5-4-2 ;;
2691 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2693 unported=yes
2695 esac
2700 if test $unported = yes; then
2701 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2702 Check \`etc/MACHINES' for recognized configuration names." >&5
2703 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2704 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2705 { (exit 1); exit 1; }; }
2708 machfile="m/${machine}.h"
2709 opsysfile="s/${opsys}.h"
2712 #### Choose a compiler.
2713 test -n "$CC" && cc_specified=yes
2715 # Save the value of CFLAGS that the user specified.
2716 SPECIFIED_CFLAGS="$CFLAGS"
2718 case ${with_gcc} in
2719 "yes" ) CC="gcc" GCC=yes ;;
2720 "no" ) : ${CC=cc} ;;
2722 esac
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2765 if test -z "$ac_cv_prog_CC"; then
2766 ac_ct_CC=$CC
2767 # Extract the first word of "gcc", so it can be a program name with args.
2768 set dummy gcc; ac_word=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774 if test -n "$ac_ct_CC"; then
2775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_ac_ct_CC="gcc"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2788 done
2789 done
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2796 echo "${ECHO_T}$ac_ct_CC" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2802 CC=$ac_ct_CC
2803 else
2804 CC="$ac_cv_prog_CC"
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_CC="${ac_tool_prefix}cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837 echo "$as_me:$LINENO: result: $CC" >&5
2838 echo "${ECHO_T}$CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2845 if test -z "$ac_cv_prog_CC"; then
2846 ac_ct_CC=$CC
2847 # Extract the first word of "cc", so it can be a program name with args.
2848 set dummy cc; ac_word=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 if test -n "$ac_ct_CC"; then
2855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_ac_ct_CC="cc"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2868 done
2869 done
2873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2874 if test -n "$ac_ct_CC"; then
2875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2876 echo "${ECHO_T}$ac_ct_CC" >&6
2877 else
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2882 CC=$ac_ct_CC
2883 else
2884 CC="$ac_cv_prog_CC"
2888 if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890 set dummy cc; ac_word=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 ac_prog_rejected=no
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908 ac_prog_rejected=yes
2909 continue
2911 ac_cv_prog_CC="cc"
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2915 done
2916 done
2918 if test $ac_prog_rejected = yes; then
2919 # We found a bogon in the path, so make sure we never use it.
2920 set dummy $ac_cv_prog_CC
2921 shift
2922 if test $# != 0; then
2923 # We chose a different compiler from the bogus one.
2924 # However, it has the same basename, so the bogon will be chosen
2925 # first if we set CC to just the basename; use the full file name.
2926 shift
2927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2932 CC=$ac_cv_prog_CC
2933 if test -n "$CC"; then
2934 echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6
2936 else
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 for ac_prog in cl
2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2948 echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2967 done
2968 done
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 echo "$as_me:$LINENO: result: $CC" >&5
2975 echo "${ECHO_T}$CC" >&6
2976 else
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2981 test -n "$CC" && break
2982 done
2984 if test -z "$CC"; then
2985 ac_ct_CC=$CC
2986 for ac_prog in cl
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 echo "$as_me:$LINENO: checking for $ac_word" >&5
2991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995 if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CC="$ac_prog"
3006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3017 echo "${ECHO_T}$ac_ct_CC" >&6
3018 else
3019 echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3023 test -n "$ac_ct_CC" && break
3024 done
3026 CC=$ac_ct_CC
3032 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: no acceptable C compiler found in \$PATH
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3038 # Provide some information about the compiler.
3039 echo "$as_me:$LINENO:" \
3040 "checking for C compiler version" >&5
3041 ac_compiler=`set X $ac_compile; echo $2`
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3043 (eval $ac_compiler --version </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); }
3052 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3053 (eval $ac_compiler -V </dev/null >&5) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h. */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3066 main ()
3070 return 0;
3072 _ACEOF
3073 ac_clean_files_save=$ac_clean_files
3074 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3075 # Try to create an executable without -o first, disregard a.out.
3076 # It will help us diagnose broken compilers, and finding out an intuition
3077 # of exeext.
3078 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3079 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3080 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3082 (eval $ac_link_default) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # Find the output, starting from the most likely. This scheme is
3087 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3088 # resort.
3090 # Be careful to initialize this variable, since it used to be cached.
3091 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3092 ac_cv_exeext=
3093 # b.out is created by i960 compilers.
3094 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3096 test -f "$ac_file" || continue
3097 case $ac_file in
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3100 conftest.$ac_ext )
3101 # This is the source file.
3103 [ab].out )
3104 # We found the default executable, but exeext='' is most
3105 # certainly right.
3106 break;;
3107 *.* )
3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 # FIXME: I believe we export ac_cv_exeext for Libtool,
3110 # but it would be cool to find out if it's true. Does anybody
3111 # maintain Libtool? --akim.
3112 export ac_cv_exeext
3113 break;;
3115 break;;
3116 esac
3117 done
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3123 See \`config.log' for more details." >&5
3124 echo "$as_me: error: C compiler cannot create executables
3125 See \`config.log' for more details." >&2;}
3126 { (exit 77); exit 77; }; }
3129 ac_exeext=$ac_cv_exeext
3130 echo "$as_me:$LINENO: result: $ac_file" >&5
3131 echo "${ECHO_T}$ac_file" >&6
3133 # Check the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3136 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3137 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3138 # If not cross compiling, check that we can run a simple program.
3139 if test "$cross_compiling" != yes; then
3140 if { ac_try='./$ac_file'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
3151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3152 If you meant to cross compile, use \`--host'.
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot run C compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3161 echo "$as_me:$LINENO: result: yes" >&5
3162 echo "${ECHO_T}yes" >&6
3164 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3165 ac_clean_files=$ac_clean_files_save
3166 # Check the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3169 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3170 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3171 echo "${ECHO_T}$cross_compiling" >&6
3173 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3174 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; then
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 # `rm'.
3184 for ac_file in conftest.exe conftest conftest.*; do
3185 test -f "$ac_file" || continue
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 export ac_cv_exeext
3190 break;;
3191 * ) break;;
3192 esac
3193 done
3194 else
3195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3196 See \`config.log' for more details." >&5
3197 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3198 See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3202 rm -f conftest$ac_cv_exeext
3203 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3204 echo "${ECHO_T}$ac_cv_exeext" >&6
3206 rm -f conftest.$ac_ext
3207 EXEEXT=$ac_cv_exeext
3208 ac_exeext=$EXEEXT
3209 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3210 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3211 if test "${ac_cv_objext+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3222 main ()
3226 return 0;
3228 _ACEOF
3229 rm -f conftest.o conftest.obj
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; then
3235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3239 break;;
3240 esac
3241 done
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3255 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3256 echo "${ECHO_T}$ac_cv_objext" >&6
3257 OBJEXT=$ac_cv_objext
3258 ac_objext=$OBJEXT
3259 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3260 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3261 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264 cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h. */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3272 main ()
3274 #ifndef __GNUC__
3275 choke me
3276 #endif
3279 return 0;
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_compiler_gnu=yes
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 ac_compiler_gnu=no
3311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3315 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3317 GCC=`test $ac_compiler_gnu = yes && echo yes`
3318 ac_test_CFLAGS=${CFLAGS+set}
3319 ac_save_CFLAGS=$CFLAGS
3320 CFLAGS="-g"
3321 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3322 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3323 if test "${ac_cv_prog_cc_g+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3334 main ()
3338 return 0;
3340 _ACEOF
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_prog_cc_g=yes
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 ac_cv_prog_cc_g=no
3370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3374 if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS=$ac_save_CFLAGS
3376 elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3378 CFLAGS="-g -O2"
3379 else
3380 CFLAGS="-g"
3382 else
3383 if test "$GCC" = yes; then
3384 CFLAGS="-O2"
3385 else
3386 CFLAGS=
3389 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3390 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3391 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 ac_cv_prog_cc_stdc=no
3395 ac_save_CC=$CC
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <stdarg.h>
3403 #include <stdio.h>
3404 #include <sys/types.h>
3405 #include <sys/stat.h>
3406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407 struct buf { int x; };
3408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409 static char *e (p, i)
3410 char **p;
3411 int i;
3413 return p[i];
3415 static char *f (char * (*g) (char **, int), char **p, ...)
3417 char *s;
3418 va_list v;
3419 va_start (v,p);
3420 s = g (p, va_arg (v,int));
3421 va_end (v);
3422 return s;
3425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std1 is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std1. */
3432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 int argc;
3439 char **argv;
3441 main ()
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3445 return 0;
3447 _ACEOF
3448 # Don't try gcc -ansi; that turns off useful extensions and
3449 # breaks some systems' header files.
3450 # AIX -qlanglvl=ansi
3451 # Ultrix and OSF/1 -std1
3452 # HP-UX 10.20 and later -Ae
3453 # HP-UX older versions -Aa -D_HPUX_SOURCE
3454 # SVR4 -Xc -D__EXTENSIONS__
3455 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3457 CC="$ac_save_CC $ac_arg"
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_prog_cc_stdc=$ac_arg
3481 break
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f conftest.err conftest.$ac_objext
3488 done
3489 rm -f conftest.$ac_ext conftest.$ac_objext
3490 CC=$ac_save_CC
3494 case "x$ac_cv_prog_cc_stdc" in
3495 x|xno)
3496 echo "$as_me:$LINENO: result: none needed" >&5
3497 echo "${ECHO_T}none needed" >&6 ;;
3499 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3501 CC="$CC $ac_cv_prog_cc_stdc" ;;
3502 esac
3504 # Some people use a C++ compiler to compile C. Since we use `exit',
3505 # in C++ we need to declare it. In case someone uses the same compiler
3506 # for both compiling C and C++ we need to have the C++ compiler decide
3507 # the declaration of exit, since it's the most demanding environment.
3508 cat >conftest.$ac_ext <<_ACEOF
3509 #ifndef __cplusplus
3510 choke me
3511 #endif
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_c_werror_flag"
3523 || test ! -s conftest.err'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 for ac_declaration in \
3536 '' \
3537 'extern "C" void std::exit (int) throw (); using std::exit;' \
3538 'extern "C" void std::exit (int); using std::exit;' \
3539 'extern "C" void exit (int) throw ();' \
3540 'extern "C" void exit (int);' \
3541 'void exit (int);'
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 $ac_declaration
3550 #include <stdlib.h>
3552 main ()
3554 exit (42);
3556 return 0;
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 continue
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 $ac_declaration
3597 main ()
3599 exit (42);
3601 return 0;
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 break
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 done
3634 rm -f conftest*
3635 if test -n "$ac_declaration"; then
3636 echo '#ifdef __cplusplus' >>confdefs.h
3637 echo $ac_declaration >>confdefs.h
3638 echo '#endif' >>confdefs.h
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3656 CPP=
3659 #### Some systems specify a CPP to use unless we are using GCC.
3660 #### Now that we know whether we are using GCC, we can decide whether
3661 #### to use that one.
3662 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3663 then
3664 CPP="$NON_GNU_CPP"
3667 #### Some systems specify a CC to use unless we are using GCC.
3668 #### Now that we know whether we are using GCC, we can decide whether
3669 #### to use that one.
3670 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3671 test x$cc_specified != xyes
3672 then
3673 CC="$NON_GNU_CC"
3676 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3677 then
3678 CC="$CC $GCC_TEST_OPTIONS"
3681 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3682 then
3683 CC="$CC $NON_GCC_TEST_OPTIONS"
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3693 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3694 # On Suns, sometimes $CPP names a directory.
3695 if test -n "$CPP" && test -d "$CPP"; then
3696 CPP=
3698 if test -z "$CPP"; then
3699 if test "${ac_cv_prog_CPP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 # Double quotes because CPP needs to be expanded
3703 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3705 ac_preproc_ok=false
3706 for ac_c_preproc_warn_flag in '' yes
3708 # Use a header file that comes with gcc, so configuring glibc
3709 # with a fresh cross-compiler works.
3710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3711 # <limits.h> exists even on freestanding compilers.
3712 # On the NeXT, cc -E runs the code through the compiler's parser,
3713 # not just through cpp. "Syntax error" is here to catch this case.
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 #ifdef __STDC__
3721 # include <limits.h>
3722 #else
3723 # include <assert.h>
3724 #endif
3725 Syntax error
3726 _ACEOF
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev/null; then
3735 if test -s conftest.err; then
3736 ac_cpp_err=$ac_c_preproc_warn_flag
3737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3738 else
3739 ac_cpp_err=
3741 else
3742 ac_cpp_err=yes
3744 if test -z "$ac_cpp_err"; then
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 # Broken: fails on valid input.
3751 continue
3753 rm -f conftest.err conftest.$ac_ext
3755 # OK, works on sane cases. Now check whether non-existent headers
3756 # can be detected and how.
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h. */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <ac_nonexistent.h>
3764 _ACEOF
3765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } >/dev/null; then
3773 if test -s conftest.err; then
3774 ac_cpp_err=$ac_c_preproc_warn_flag
3775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3776 else
3777 ac_cpp_err=
3779 else
3780 ac_cpp_err=yes
3782 if test -z "$ac_cpp_err"; then
3783 # Broken: success on invalid input.
3784 continue
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 # Passes both tests.
3790 ac_preproc_ok=:
3791 break
3793 rm -f conftest.err conftest.$ac_ext
3795 done
3796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797 rm -f conftest.err conftest.$ac_ext
3798 if $ac_preproc_ok; then
3799 break
3802 done
3803 ac_cv_prog_CPP=$CPP
3806 CPP=$ac_cv_prog_CPP
3807 else
3808 ac_cv_prog_CPP=$CPP
3810 echo "$as_me:$LINENO: result: $CPP" >&5
3811 echo "${ECHO_T}$CPP" >&6
3812 ac_preproc_ok=false
3813 for ac_c_preproc_warn_flag in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #ifdef __STDC__
3828 # include <limits.h>
3829 #else
3830 # include <assert.h>
3831 #endif
3832 Syntax error
3833 _ACEOF
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null; then
3842 if test -s conftest.err; then
3843 ac_cpp_err=$ac_c_preproc_warn_flag
3844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3845 else
3846 ac_cpp_err=
3848 else
3849 ac_cpp_err=yes
3851 if test -z "$ac_cpp_err"; then
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 # Broken: fails on valid input.
3858 continue
3860 rm -f conftest.err conftest.$ac_ext
3862 # OK, works on sane cases. Now check whether non-existent headers
3863 # can be detected and how.
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <ac_nonexistent.h>
3871 _ACEOF
3872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } >/dev/null; then
3880 if test -s conftest.err; then
3881 ac_cpp_err=$ac_c_preproc_warn_flag
3882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3883 else
3884 ac_cpp_err=
3886 else
3887 ac_cpp_err=yes
3889 if test -z "$ac_cpp_err"; then
3890 # Broken: success on invalid input.
3891 continue
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 # Passes both tests.
3897 ac_preproc_ok=:
3898 break
3900 rm -f conftest.err conftest.$ac_ext
3902 done
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.$ac_ext
3905 if $ac_preproc_ok; then
3907 else
3908 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3909 See \`config.log' for more details." >&5
3910 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details." >&2;}
3912 { (exit 1); exit 1; }; }
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 echo "$as_me:$LINENO: checking for egrep" >&5
3923 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3924 if test "${ac_cv_prog_egrep+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3928 then ac_cv_prog_egrep='grep -E'
3929 else ac_cv_prog_egrep='egrep'
3932 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3933 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3934 EGREP=$ac_cv_prog_egrep
3938 echo "$as_me:$LINENO: checking for AIX" >&5
3939 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #ifdef _AIX
3948 #endif
3950 _ACEOF
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "yes" >/dev/null 2>&1; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6
3955 cat >>confdefs.h <<\_ACEOF
3956 #define _ALL_SOURCE 1
3957 _ACEOF
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3963 rm -f conftest*
3967 cat >>confdefs.h <<\_ACEOF
3968 #define _GNU_SOURCE 1
3969 _ACEOF
3973 ### Use -Wno-pointer-sign if the compiler supports it
3974 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3975 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3976 SAVE_CFLAGS="$CFLAGS"
3977 CFLAGS="$CFLAGS -Wno-pointer-sign"
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3986 main ()
3990 return 0;
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3996 ac_status=$?
3997 grep -v '^ *+' conftest.er1 >conftest.err
3998 rm -f conftest.er1
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 has_option=yes
4016 else
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 has_option=no
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023 if test $has_option = yes; then
4024 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4026 echo "$as_me:$LINENO: result: $has_option" >&5
4027 echo "${ECHO_T}$has_option" >&6
4028 CFLAGS="$SAVE_CFLAGS"
4029 unset has_option
4030 unset SAVE_CFLAGS
4032 #### Some other nice autoconf tests.
4034 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4035 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4036 LN_S=$as_ln_s
4037 if test "$LN_S" = "ln -s"; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039 echo "${ECHO_T}yes" >&6
4040 else
4041 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4042 echo "${ECHO_T}no, using $LN_S" >&6
4045 ac_ext=c
4046 ac_cpp='$CPP $CPPFLAGS'
4047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4051 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4052 # On Suns, sometimes $CPP names a directory.
4053 if test -n "$CPP" && test -d "$CPP"; then
4054 CPP=
4056 if test -z "$CPP"; then
4057 if test "${ac_cv_prog_CPP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 # Double quotes because CPP needs to be expanded
4061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 ac_preproc_ok=false
4064 for ac_c_preproc_warn_flag in '' yes
4066 # Use a header file that comes with gcc, so configuring glibc
4067 # with a fresh cross-compiler works.
4068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4069 # <limits.h> exists even on freestanding compilers.
4070 # On the NeXT, cc -E runs the code through the compiler's parser,
4071 # not just through cpp. "Syntax error" is here to catch this case.
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 #ifdef __STDC__
4079 # include <limits.h>
4080 #else
4081 # include <assert.h>
4082 #endif
4083 Syntax error
4084 _ACEOF
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4099 else
4100 ac_cpp_err=yes
4102 if test -z "$ac_cpp_err"; then
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Broken: fails on valid input.
4109 continue
4111 rm -f conftest.err conftest.$ac_ext
4113 # OK, works on sane cases. Now check whether non-existent headers
4114 # can be detected and how.
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h. */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <ac_nonexistent.h>
4122 _ACEOF
4123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } >/dev/null; then
4131 if test -s conftest.err; then
4132 ac_cpp_err=$ac_c_preproc_warn_flag
4133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4134 else
4135 ac_cpp_err=
4137 else
4138 ac_cpp_err=yes
4140 if test -z "$ac_cpp_err"; then
4141 # Broken: success on invalid input.
4142 continue
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Passes both tests.
4148 ac_preproc_ok=:
4149 break
4151 rm -f conftest.err conftest.$ac_ext
4153 done
4154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155 rm -f conftest.err conftest.$ac_ext
4156 if $ac_preproc_ok; then
4157 break
4160 done
4161 ac_cv_prog_CPP=$CPP
4164 CPP=$ac_cv_prog_CPP
4165 else
4166 ac_cv_prog_CPP=$CPP
4168 echo "$as_me:$LINENO: result: $CPP" >&5
4169 echo "${ECHO_T}$CPP" >&6
4170 ac_preproc_ok=false
4171 for ac_c_preproc_warn_flag in '' yes
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h. */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 #ifdef __STDC__
4186 # include <limits.h>
4187 #else
4188 # include <assert.h>
4189 #endif
4190 Syntax error
4191 _ACEOF
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null; then
4200 if test -s conftest.err; then
4201 ac_cpp_err=$ac_c_preproc_warn_flag
4202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 else
4204 ac_cpp_err=
4206 else
4207 ac_cpp_err=yes
4209 if test -z "$ac_cpp_err"; then
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 # Broken: fails on valid input.
4216 continue
4218 rm -f conftest.err conftest.$ac_ext
4220 # OK, works on sane cases. Now check whether non-existent headers
4221 # can be detected and how.
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <ac_nonexistent.h>
4229 _ACEOF
4230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev/null; then
4238 if test -s conftest.err; then
4239 ac_cpp_err=$ac_c_preproc_warn_flag
4240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4241 else
4242 ac_cpp_err=
4244 else
4245 ac_cpp_err=yes
4247 if test -z "$ac_cpp_err"; then
4248 # Broken: success on invalid input.
4249 continue
4250 else
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4255 ac_preproc_ok=:
4256 break
4258 rm -f conftest.err conftest.$ac_ext
4260 done
4261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4262 rm -f conftest.err conftest.$ac_ext
4263 if $ac_preproc_ok; then
4265 else
4266 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4267 See \`config.log' for more details." >&5
4268 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4269 See \`config.log' for more details." >&2;}
4270 { (exit 1); exit 1; }; }
4273 ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 # Find a good install program. We prefer a C program (faster),
4280 # so one script is as good as another. But avoid the broken or
4281 # incompatible versions:
4282 # SysV /etc/install, /usr/sbin/install
4283 # SunOS /usr/etc/install
4284 # IRIX /sbin/install
4285 # AIX /bin/install
4286 # AmigaOS /C/install, which installs bootblocks on floppy discs
4287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4290 # OS/2's system install, which has a completely different semantic
4291 # ./install, which can be erroneously created by make from ./install.sh.
4292 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4294 if test -z "$INSTALL"; then
4295 if test "${ac_cv_path_install+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 # Account for people who put trailing slashes in PATH elements.
4304 case $as_dir/ in
4305 ./ | .// | /cC/* | \
4306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4307 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4308 /usr/ucb/* ) ;;
4310 # OSF1 and SCO ODT 3.0 have their own names for install.
4311 # Don't use installbsd from OSF since it installs stuff as root
4312 # by default.
4313 for ac_prog in ginstall scoinst install; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4316 if test $ac_prog = install &&
4317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4318 # AIX install. It has an incompatible calling convention.
4320 elif test $ac_prog = install &&
4321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4322 # program-specific install script used by HP pwplus--don't use.
4324 else
4325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4326 break 3
4329 done
4330 done
4332 esac
4333 done
4337 if test "${ac_cv_path_install+set}" = set; then
4338 INSTALL=$ac_cv_path_install
4339 else
4340 # As a last resort, use the slow shell script. We don't cache a
4341 # path for INSTALL within a source directory, because that will
4342 # break other packages using the cache if that directory is
4343 # removed, or if the path is relative.
4344 INSTALL=$ac_install_sh
4347 echo "$as_me:$LINENO: result: $INSTALL" >&5
4348 echo "${ECHO_T}$INSTALL" >&6
4350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4351 # It thinks the first close brace ends the variable substitution.
4352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4358 if test "x$RANLIB" = x; then
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4362 echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_prog_RANLIB+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 if test -n "$RANLIB"; then
4368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4381 done
4382 done
4386 RANLIB=$ac_cv_prog_RANLIB
4387 if test -n "$RANLIB"; then
4388 echo "$as_me:$LINENO: result: $RANLIB" >&5
4389 echo "${ECHO_T}$RANLIB" >&6
4390 else
4391 echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6
4396 if test -z "$ac_cv_prog_RANLIB"; then
4397 ac_ct_RANLIB=$RANLIB
4398 # Extract the first word of "ranlib", so it can be a program name with args.
4399 set dummy ranlib; ac_word=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 if test -n "$ac_ct_RANLIB"; then
4406 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_ac_ct_RANLIB="ranlib"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4422 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4425 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4426 if test -n "$ac_ct_RANLIB"; then
4427 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4429 else
4430 echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4434 RANLIB=$ac_ct_RANLIB
4435 else
4436 RANLIB="$ac_cv_prog_RANLIB"
4440 # Extract the first word of "install-info", so it can be a program name with args.
4441 set dummy install-info; ac_word=$2
4442 echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 case $INSTALL_INFO in
4448 [\\/]* | ?:[\\/]*)
4449 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4467 esac
4469 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4471 if test -n "$INSTALL_INFO"; then
4472 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4473 echo "${ECHO_T}$INSTALL_INFO" >&6
4474 else
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4479 # Extract the first word of "install-info", so it can be a program name with args.
4480 set dummy install-info; ac_word=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 case $INSTALL_INFO in
4487 [\\/]* | ?:[\\/]*)
4488 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in /usr/sbin
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4506 esac
4508 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4510 if test -n "$INSTALL_INFO"; then
4511 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4512 echo "${ECHO_T}$INSTALL_INFO" >&6
4513 else
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4518 # Extract the first word of "install-info", so it can be a program name with args.
4519 set dummy install-info; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 case $INSTALL_INFO in
4526 [\\/]* | ?:[\\/]*)
4527 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in /sbin
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4544 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4546 esac
4548 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4550 if test -n "$INSTALL_INFO"; then
4551 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4552 echo "${ECHO_T}$INSTALL_INFO" >&6
4553 else
4554 echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4558 # Extract the first word of "gzip", so it can be a program name with args.
4559 set dummy gzip; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 case $GZIP_PROG in
4566 [\\/]* | ?:[\\/]*)
4567 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4585 esac
4587 GZIP_PROG=$ac_cv_path_GZIP_PROG
4589 if test -n "$GZIP_PROG"; then
4590 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4591 echo "${ECHO_T}$GZIP_PROG" >&6
4592 else
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4599 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4600 then
4601 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4604 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4605 then
4606 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4610 late_LDFLAGS=$LDFLAGS
4611 if test "$GCC" = yes; then
4612 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4613 else
4614 LDFLAGS="$LDFLAGS -znocombreloc"
4617 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4618 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4619 cat >conftest.$ac_ext <<_ACEOF
4620 main(){return 0;}
4621 _ACEOF
4622 rm -f conftest.$ac_objext conftest$ac_exeext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4624 (eval $ac_link) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try='test -s conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 LDFLAGS=$late_LDFLAGS
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4654 rm -f conftest.err conftest.$ac_objext \
4655 conftest$ac_exeext conftest.$ac_ext
4657 #### Extract some information from the operating system and machine files.
4659 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4660 - which libraries the lib-src programs will want, and
4661 - whether the GNU malloc routines are usable..." >&5
4662 echo "$as_me: checking the machine- and system-dependent files to find out
4663 - which libraries the lib-src programs will want, and
4664 - whether the GNU malloc routines are usable..." >&6;}
4666 ### First figure out CFLAGS (which we use for running the compiler here)
4667 ### and REAL_CFLAGS (which we use for real compilation).
4668 ### The two are the same except on a few systems, where they are made
4669 ### different to work around various lossages. For example,
4670 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4671 ### as implying static linking.
4673 ### If the CFLAGS env var is specified, we use that value
4674 ### instead of the default.
4676 ### It's not important that this name contain the PID; you can't run
4677 ### two configures in the same directory and have anything work
4678 ### anyway.
4679 tempcname="conftest.c"
4681 echo '
4682 #include "'${srcdir}'/src/'${opsysfile}'"
4683 #include "'${srcdir}'/src/'${machfile}'"
4684 #ifndef LIBS_MACHINE
4685 #define LIBS_MACHINE
4686 #endif
4687 #ifndef LIBS_SYSTEM
4688 #define LIBS_SYSTEM
4689 #endif
4690 #ifndef C_SWITCH_SYSTEM
4691 #define C_SWITCH_SYSTEM
4692 #endif
4693 #ifndef C_SWITCH_MACHINE
4694 #define C_SWITCH_MACHINE
4695 #endif
4696 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4697 configure___ c_switch_system=C_SWITCH_SYSTEM
4698 configure___ c_switch_machine=C_SWITCH_MACHINE
4700 #ifndef LIB_X11_LIB
4701 #define LIB_X11_LIB -lX11
4702 #endif
4704 #ifndef LIBX11_MACHINE
4705 #define LIBX11_MACHINE
4706 #endif
4708 #ifndef LIBX11_SYSTEM
4709 #define LIBX11_SYSTEM
4710 #endif
4711 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4713 #ifdef UNEXEC
4714 configure___ unexec=UNEXEC
4715 #else
4716 configure___ unexec=unexec.o
4717 #endif
4719 #ifdef SYSTEM_MALLOC
4720 configure___ system_malloc=yes
4721 #else
4722 configure___ system_malloc=no
4723 #endif
4725 #ifdef USE_MMAP_FOR_BUFFERS
4726 configure___ use_mmap_for_buffers=yes
4727 #else
4728 configure___ use_mmap_for_buffers=no
4729 #endif
4731 #ifndef C_DEBUG_SWITCH
4732 #define C_DEBUG_SWITCH -g
4733 #endif
4735 #ifndef C_OPTIMIZE_SWITCH
4736 #ifdef __GNUC__
4737 #define C_OPTIMIZE_SWITCH -O2
4738 #else
4739 #define C_OPTIMIZE_SWITCH -O
4740 #endif
4741 #endif
4743 #ifndef C_WARNINGS_SWITCH
4744 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4745 #endif
4747 #ifndef LD_SWITCH_MACHINE
4748 #define LD_SWITCH_MACHINE
4749 #endif
4751 #ifndef LD_SWITCH_SYSTEM
4752 #define LD_SWITCH_SYSTEM
4753 #endif
4755 #ifndef LD_SWITCH_X_SITE_AUX
4756 #define LD_SWITCH_X_SITE_AUX
4757 #endif
4759 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4760 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4762 #ifdef THIS_IS_CONFIGURE
4764 /* Get the CFLAGS for tests in configure. */
4765 #ifdef __GNUC__
4766 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4767 #else
4768 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4769 #endif
4771 #else /* not THIS_IS_CONFIGURE */
4773 /* Get the CFLAGS for real compilation. */
4774 #ifdef __GNUC__
4775 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4776 #else
4777 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4778 #endif
4780 #endif /* not THIS_IS_CONFIGURE */
4781 ' > ${tempcname}
4783 # The value of CPP is a quoted variable reference, so we need to do this
4784 # to get its actual value...
4785 CPP=`eval "echo $CPP"`
4786 eval `${CPP} -Isrc ${tempcname} \
4787 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4788 if test "x$SPECIFIED_CFLAGS" = x; then
4789 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4790 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4791 else
4792 REAL_CFLAGS="$CFLAGS"
4794 rm ${tempcname}
4796 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4798 ### Make sure subsequent tests use flags consistent with the build flags.
4800 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4801 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4802 else
4803 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4808 # Check whether --enable-largefile or --disable-largefile was given.
4809 if test "${enable_largefile+set}" = set; then
4810 enableval="$enable_largefile"
4813 if test "$enable_largefile" != no; then
4815 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4816 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4817 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 ac_cv_sys_largefile_CC=no
4821 if test "$GCC" != yes; then
4822 ac_save_CC=$CC
4823 while :; do
4824 # IRIX 6.2 and later do not support large files by default,
4825 # so use the C compiler's -n32 option if that helps.
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #include <sys/types.h>
4833 /* Check that off_t can represent 2**63 - 1 correctly.
4834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4835 since some C++ compilers masquerading as C compilers
4836 incorrectly reject 9223372036854775807. */
4837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4839 && LARGE_OFF_T % 2147483647 == 1)
4840 ? 1 : -1];
4842 main ()
4846 return 0;
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -z "$ac_c_werror_flag"
4859 || test ! -s conftest.err'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4871 break
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4877 rm -f conftest.err conftest.$ac_objext
4878 CC="$CC -n32"
4879 rm -f conftest.$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_sys_largefile_CC=' -n32'; break
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4907 rm -f conftest.err conftest.$ac_objext
4908 break
4909 done
4910 CC=$ac_save_CC
4911 rm -f conftest.$ac_ext
4914 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4915 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4916 if test "$ac_cv_sys_largefile_CC" != no; then
4917 CC=$CC$ac_cv_sys_largefile_CC
4920 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4921 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4922 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 while :; do
4926 ac_cv_sys_file_offset_bits=no
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <sys/types.h>
4934 /* Check that off_t can represent 2**63 - 1 correctly.
4935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4936 since some C++ compilers masquerading as C compilers
4937 incorrectly reject 9223372036854775807. */
4938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4940 && LARGE_OFF_T % 2147483647 == 1)
4941 ? 1 : -1];
4943 main ()
4947 return 0;
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -z "$ac_c_werror_flag"
4960 || test ! -s conftest.err'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 break
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #define _FILE_OFFSET_BITS 64
4986 #include <sys/types.h>
4987 /* Check that off_t can represent 2**63 - 1 correctly.
4988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4989 since some C++ compilers masquerading as C compilers
4990 incorrectly reject 9223372036854775807. */
4991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4993 && LARGE_OFF_T % 2147483647 == 1)
4994 ? 1 : -1];
4996 main ()
5000 return 0;
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_cv_sys_file_offset_bits=64; break
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 break
5033 done
5035 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5036 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5037 if test "$ac_cv_sys_file_offset_bits" != no; then
5039 cat >>confdefs.h <<_ACEOF
5040 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5041 _ACEOF
5044 rm -f conftest*
5045 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5046 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5047 if test "${ac_cv_sys_large_files+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050 while :; do
5051 ac_cv_sys_large_files=no
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <sys/types.h>
5059 /* Check that off_t can represent 2**63 - 1 correctly.
5060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5061 since some C++ compilers masquerading as C compilers
5062 incorrectly reject 9223372036854775807. */
5063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5065 && LARGE_OFF_T % 2147483647 == 1)
5066 ? 1 : -1];
5068 main ()
5072 return 0;
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try='test -z "$ac_c_werror_flag"
5085 || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 break
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #define _LARGE_FILES 1
5111 #include <sys/types.h>
5112 /* Check that off_t can represent 2**63 - 1 correctly.
5113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5114 since some C++ compilers masquerading as C compilers
5115 incorrectly reject 9223372036854775807. */
5116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5118 && LARGE_OFF_T % 2147483647 == 1)
5119 ? 1 : -1];
5121 main ()
5125 return 0;
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_sys_large_files=1; break
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5157 break
5158 done
5160 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5161 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5162 if test "$ac_cv_sys_large_files" != no; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define _LARGE_FILES $ac_cv_sys_large_files
5166 _ACEOF
5169 rm -f conftest*
5174 ### The standard library on x86-64 GNU/Linux distributions can
5175 ### be located in either /usr/lib64 or /usr/lib.
5176 case "${canonical}" in
5177 x86_64-*-linux-gnu* )
5178 if test -d /usr/lib64; then
5180 cat >>confdefs.h <<\_ACEOF
5181 #define HAVE_X86_64_LIB64_DIR 1
5182 _ACEOF
5185 esac
5190 if test "${with_sound}" != "no"; then
5191 # Sound support for GNU/Linux and the free BSDs.
5192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5194 if test "${ac_cv_header_stdc+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <stdlib.h>
5204 #include <stdarg.h>
5205 #include <string.h>
5206 #include <float.h>
5209 main ()
5213 return 0;
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_header_stdc=yes
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 ac_cv_header_stdc=no
5245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 if test $ac_cv_header_stdc = yes; then
5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249 cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <string.h>
5257 _ACEOF
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev/null 2>&1; then
5261 else
5262 ac_cv_header_stdc=no
5264 rm -f conftest*
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h. */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276 #include <stdlib.h>
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "free" >/dev/null 2>&1; then
5282 else
5283 ac_cv_header_stdc=no
5285 rm -f conftest*
5289 if test $ac_cv_header_stdc = yes; then
5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291 if test "$cross_compiling" = yes; then
5293 else
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ctype.h>
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 #else
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310 #endif
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 main ()
5316 int i;
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5320 exit(2);
5321 exit (0);
5323 _ACEOF
5324 rm -f conftest$ac_exeext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5336 else
5337 echo "$as_me: program exited with status $ac_status" >&5
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 ( exit $ac_status )
5342 ac_cv_header_stdc=no
5344 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5350 if test $ac_cv_header_stdc = yes; then
5352 cat >>confdefs.h <<\_ACEOF
5353 #define STDC_HEADERS 1
5354 _ACEOF
5358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5369 inttypes.h stdint.h unistd.h
5371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372 echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h. */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 $ac_includes_default
5385 #include <$ac_header>
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 (eval $ac_try) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 eval "$as_ac_Header=yes"
5410 else
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 eval "$as_ac_Header=no"
5416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5421 cat >>confdefs.h <<_ACEOF
5422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5423 _ACEOF
5427 done
5433 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437 echo "$as_me:$LINENO: checking for $ac_header" >&5
5438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 else
5445 # Is the header compilable?
5446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 #include <$ac_header>
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459 (eval $ac_compile) 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -z "$ac_c_werror_flag"
5467 || test ! -s conftest.err'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_header_compiler=yes
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 ac_header_compiler=no
5486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 echo "${ECHO_T}$ac_header_compiler" >&6
5490 # Is the header present?
5491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <$ac_header>
5500 _ACEOF
5501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev/null; then
5509 if test -s conftest.err; then
5510 ac_cpp_err=$ac_c_preproc_warn_flag
5511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5512 else
5513 ac_cpp_err=
5515 else
5516 ac_cpp_err=yes
5518 if test -z "$ac_cpp_err"; then
5519 ac_header_preproc=yes
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_header_preproc=no
5526 rm -f conftest.err conftest.$ac_ext
5527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5528 echo "${ECHO_T}$ac_header_preproc" >&6
5530 # So? What about this header?
5531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5532 yes:no: )
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5537 ac_header_preproc=yes
5539 no:yes:* )
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553 cat <<\_ASBOX
5554 ## ------------------------------------------ ##
5555 ## Report this to the AC_PACKAGE_NAME lists. ##
5556 ## ------------------------------------------ ##
5557 _ASBOX
5559 sed "s/^/$as_me: WARNING: /" >&2
5561 esac
5562 echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 eval "$as_ac_Header=\$ac_header_preproc"
5569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 _ACEOF
5580 done
5582 # Emulation library used on NetBSD.
5583 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5584 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5585 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588 ac_check_lib_save_LIBS=$LIBS
5589 LIBS="-lossaudio $LIBS"
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5597 /* Override any gcc2 internal prototype to avoid an error. */
5598 #ifdef __cplusplus
5599 extern "C"
5600 #endif
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603 char _oss_ioctl ();
5605 main ()
5607 _oss_ioctl ();
5609 return 0;
5611 _ACEOF
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -z "$ac_c_werror_flag"
5622 || test ! -s conftest.err'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try='test -s conftest$ac_exeext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_lib_ossaudio__oss_ioctl=yes
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_cv_lib_ossaudio__oss_ioctl=no
5641 rm -f conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
5643 LIBS=$ac_check_lib_save_LIBS
5645 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5646 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5647 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5648 LIBSOUND=-lossaudio
5649 else
5650 LIBSOUND=
5655 ALSA_REQUIRED=1.0.0
5656 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5657 if test "X${with_pkg_config_prog}" != X; then
5658 PKG_CONFIG="${with_pkg_config_prog}"
5661 succeeded=no
5663 if test -z "$PKG_CONFIG"; then
5664 # Extract the first word of "pkg-config", so it can be a program name with args.
5665 set dummy pkg-config; ac_word=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 case $PKG_CONFIG in
5672 [\\/]* | ?:[\\/]*)
5673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5692 esac
5694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5696 if test -n "$PKG_CONFIG"; then
5697 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5698 echo "${ECHO_T}$PKG_CONFIG" >&6
5699 else
5700 echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5706 if test "$PKG_CONFIG" = "no" ; then
5707 HAVE_ALSA=no
5708 else
5709 PKG_CONFIG_MIN_VERSION=0.9.0
5710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5711 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5712 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5714 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716 echo "${ECHO_T}yes" >&6
5717 succeeded=yes
5719 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5720 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5721 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5722 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5723 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5725 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5726 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5727 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5728 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5729 echo "${ECHO_T}$ALSA_LIBS" >&6
5730 else
5731 echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6
5733 ALSA_CFLAGS=""
5734 ALSA_LIBS=""
5735 ## If we have a custom action on failure, don't print errors, but
5736 ## do set a variable so people can do so.
5737 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5743 else
5744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5749 if test $succeeded = yes; then
5750 HAVE_ALSA=yes
5751 else
5752 HAVE_ALSA=no
5755 if test $HAVE_ALSA = yes; then
5756 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5757 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5759 cat >>confdefs.h <<\_ACEOF
5760 #define HAVE_ALSA 1
5761 _ACEOF
5792 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5793 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5794 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5795 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5796 sys/utsname.h pwd.h
5798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5800 echo "$as_me:$LINENO: checking for $ac_header" >&5
5801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5807 else
5808 # Is the header compilable?
5809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5818 #include <$ac_header>
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_header_compiler=yes
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 ac_header_compiler=no
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5851 echo "${ECHO_T}$ac_header_compiler" >&6
5853 # Is the header present?
5854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <$ac_header>
5863 _ACEOF
5864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null; then
5872 if test -s conftest.err; then
5873 ac_cpp_err=$ac_c_preproc_warn_flag
5874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5875 else
5876 ac_cpp_err=
5878 else
5879 ac_cpp_err=yes
5881 if test -z "$ac_cpp_err"; then
5882 ac_header_preproc=yes
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ac_header_preproc=no
5889 rm -f conftest.err conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5891 echo "${ECHO_T}$ac_header_preproc" >&6
5893 # So? What about this header?
5894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5895 yes:no: )
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5900 ac_header_preproc=yes
5902 no:yes:* )
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5916 cat <<\_ASBOX
5917 ## ------------------------------------------ ##
5918 ## Report this to the AC_PACKAGE_NAME lists. ##
5919 ## ------------------------------------------ ##
5920 _ASBOX
5922 sed "s/^/$as_me: WARNING: /" >&2
5924 esac
5925 echo "$as_me:$LINENO: checking for $ac_header" >&5
5926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 eval "$as_ac_Header=\$ac_header_preproc"
5932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5937 cat >>confdefs.h <<_ACEOF
5938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 _ACEOF
5943 done
5946 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5947 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <sys/personality.h>
5956 main ()
5958 personality (PER_LINUX32)
5960 return 0;
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 (eval $ac_try) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try='test -s conftest.$ac_objext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 emacs_cv_personality_linux32=yes
5986 else
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5990 emacs_cv_personality_linux32=no
5992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5993 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5994 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5996 if test $emacs_cv_personality_linux32 = yes; then
5998 cat >>confdefs.h <<\_ACEOF
5999 #define HAVE_PERSONALITY_LINUX32 1
6000 _ACEOF
6005 for ac_header in term.h
6007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6008 echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <$ac_header>
6020 _ACEOF
6021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev/null; then
6029 if test -s conftest.err; then
6030 ac_cpp_err=$ac_c_preproc_warn_flag
6031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6032 else
6033 ac_cpp_err=
6035 else
6036 ac_cpp_err=yes
6038 if test -z "$ac_cpp_err"; then
6039 eval "$as_ac_Header=yes"
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 eval "$as_ac_Header=no"
6046 rm -f conftest.err conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6053 _ACEOF
6057 done
6059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6061 if test "${ac_cv_header_stdc+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <stdlib.h>
6071 #include <stdarg.h>
6072 #include <string.h>
6073 #include <float.h>
6076 main ()
6080 return 0;
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_header_stdc=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_cv_header_stdc=no
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114 if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 #include <string.h>
6124 _ACEOF
6125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6126 $EGREP "memchr" >/dev/null 2>&1; then
6128 else
6129 ac_cv_header_stdc=no
6131 rm -f conftest*
6135 if test $ac_cv_header_stdc = yes; then
6136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <stdlib.h>
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "free" >/dev/null 2>&1; then
6149 else
6150 ac_cv_header_stdc=no
6152 rm -f conftest*
6156 if test $ac_cv_header_stdc = yes; then
6157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158 if test "$cross_compiling" = yes; then
6160 else
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <ctype.h>
6168 #if ((' ' & 0x0FF) == 0x020)
6169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6171 #else
6172 # define ISLOWER(c) \
6173 (('a' <= (c) && (c) <= 'i') \
6174 || ('j' <= (c) && (c) <= 'r') \
6175 || ('s' <= (c) && (c) <= 'z'))
6176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6177 #endif
6179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6181 main ()
6183 int i;
6184 for (i = 0; i < 256; i++)
6185 if (XOR (islower (i), ISLOWER (i))
6186 || toupper (i) != TOUPPER (i))
6187 exit(2);
6188 exit (0);
6190 _ACEOF
6191 rm -f conftest$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6203 else
6204 echo "$as_me: program exited with status $ac_status" >&5
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 ( exit $ac_status )
6209 ac_cv_header_stdc=no
6211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6217 if test $ac_cv_header_stdc = yes; then
6219 cat >>confdefs.h <<\_ACEOF
6220 #define STDC_HEADERS 1
6221 _ACEOF
6225 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6227 if test "${ac_cv_header_time+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6237 #include <sys/time.h>
6238 #include <time.h>
6241 main ()
6243 if ((struct tm *) 0)
6244 return 0;
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_header_time=yes
6272 else
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ac_cv_header_time=no
6278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6281 echo "${ECHO_T}$ac_cv_header_time" >&6
6282 if test $ac_cv_header_time = yes; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define TIME_WITH_SYS_TIME 1
6286 _ACEOF
6290 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6291 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6292 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6303 main ()
6305 #ifndef sys_siglist
6306 char *p = (char *) sys_siglist;
6307 #endif
6310 return 0;
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_have_decl_sys_siglist=yes
6336 else
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_cv_have_decl_sys_siglist=no
6342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6345 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6346 if test $ac_cv_have_decl_sys_siglist = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define HAVE_DECL_SYS_SIGLIST 1
6350 _ACEOF
6353 else
6354 cat >>confdefs.h <<_ACEOF
6355 #define HAVE_DECL_SYS_SIGLIST 0
6356 _ACEOF
6362 if test $ac_cv_have_decl_sys_siglist != yes; then
6363 # For Tru64, at least:
6364 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6365 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6366 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 $ac_includes_default
6377 main ()
6379 #ifndef __sys_siglist
6380 char *p = (char *) __sys_siglist;
6381 #endif
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_cv_have_decl___sys_siglist=yes
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_cv_have_decl___sys_siglist=no
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6419 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6420 if test $ac_cv_have_decl___sys_siglist = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423 #define HAVE_DECL___SYS_SIGLIST 1
6424 _ACEOF
6427 else
6428 cat >>confdefs.h <<_ACEOF
6429 #define HAVE_DECL___SYS_SIGLIST 0
6430 _ACEOF
6436 if test $ac_cv_have_decl___sys_siglist = yes; then
6438 cat >>confdefs.h <<\_ACEOF
6439 #define sys_siglist __sys_siglist
6440 _ACEOF
6444 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6445 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6446 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <sys/types.h>
6456 #include <sys/wait.h>
6457 #ifndef WEXITSTATUS
6458 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6459 #endif
6460 #ifndef WIFEXITED
6461 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6462 #endif
6465 main ()
6467 int s;
6468 wait (&s);
6469 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6471 return 0;
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_header_sys_wait_h=yes
6497 else
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_cv_header_sys_wait_h=no
6503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6505 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6506 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6507 if test $ac_cv_header_sys_wait_h = yes; then
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_SYS_WAIT_H 1
6511 _ACEOF
6516 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6517 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6518 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #ifdef TIME_WITH_SYS_TIME
6528 #include <sys/time.h>
6529 #include <time.h>
6530 #else
6531 #ifdef HAVE_SYS_TIME_H
6532 #include <sys/time.h>
6533 #else
6534 #include <time.h>
6535 #endif
6536 #endif
6537 #ifdef HAVE_UTIME_H
6538 #include <utime.h>
6539 #endif
6541 main ()
6543 static struct utimbuf x; x.actime = x.modtime;
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 emacs_cv_struct_utimbuf=yes
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 emacs_cv_struct_utimbuf=no
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6580 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6581 if test $emacs_cv_struct_utimbuf = yes; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_STRUCT_UTIMBUF 1
6585 _ACEOF
6589 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6590 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6591 if test "${ac_cv_type_signal+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h. */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 #include <sys/types.h>
6601 #include <signal.h>
6602 #ifdef signal
6603 # undef signal
6604 #endif
6605 #ifdef __cplusplus
6606 extern "C" void (*signal (int, void (*)(int)))(int);
6607 #else
6608 void (*signal ()) ();
6609 #endif
6612 main ()
6614 int i;
6616 return 0;
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_type_signal=void
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_cv_type_signal=int
6648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6651 echo "${ECHO_T}$ac_cv_type_signal" >&6
6653 cat >>confdefs.h <<_ACEOF
6654 #define RETSIGTYPE $ac_cv_type_signal
6655 _ACEOF
6659 echo "$as_me:$LINENO: checking for speed_t" >&5
6660 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6661 if test "${emacs_cv_speed_t+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <termios.h>
6672 main ()
6674 speed_t x = 1;
6676 return 0;
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 emacs_cv_speed_t=yes
6702 else
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 emacs_cv_speed_t=no
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6711 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6712 if test $emacs_cv_speed_t = yes; then
6714 cat >>confdefs.h <<\_ACEOF
6715 #define HAVE_SPEED_T 1
6716 _ACEOF
6720 echo "$as_me:$LINENO: checking for struct timeval" >&5
6721 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6722 if test "${emacs_cv_struct_timeval+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #ifdef TIME_WITH_SYS_TIME
6732 #include <sys/time.h>
6733 #include <time.h>
6734 #else
6735 #ifdef HAVE_SYS_TIME_H
6736 #include <sys/time.h>
6737 #else
6738 #include <time.h>
6739 #endif
6740 #endif
6742 main ()
6744 static struct timeval x; x.tv_sec = x.tv_usec;
6746 return 0;
6748 _ACEOF
6749 rm -f conftest.$ac_objext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6751 (eval $ac_compile) 2>conftest.er1
6752 ac_status=$?
6753 grep -v '^ *+' conftest.er1 >conftest.err
6754 rm -f conftest.er1
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -z "$ac_c_werror_flag"
6759 || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 emacs_cv_struct_timeval=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 emacs_cv_struct_timeval=no
6778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6781 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6782 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6783 if test $emacs_cv_struct_timeval = yes; then
6785 cat >>confdefs.h <<\_ACEOF
6786 #define HAVE_TIMEVAL 1
6787 _ACEOF
6791 echo "$as_me:$LINENO: checking for struct exception" >&5
6792 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6793 if test "${emacs_cv_struct_exception+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <math.h>
6804 main ()
6806 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6808 return 0;
6810 _ACEOF
6811 rm -f conftest.$ac_objext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813 (eval $ac_compile) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 emacs_cv_struct_exception=yes
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 emacs_cv_struct_exception=no
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6842 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6843 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6844 HAVE_EXCEPTION=$emacs_cv_struct_exception
6845 if test $emacs_cv_struct_exception != yes; then
6847 cat >>confdefs.h <<\_ACEOF
6848 #define NO_MATHERR 1
6849 _ACEOF
6854 for ac_header in sys/socket.h
6856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6858 echo "$as_me:$LINENO: checking for $ac_header" >&5
6859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6865 else
6866 # Is the header compilable?
6867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6876 #include <$ac_header>
6877 _ACEOF
6878 rm -f conftest.$ac_objext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 (eval $ac_compile) 2>conftest.er1
6881 ac_status=$?
6882 grep -v '^ *+' conftest.er1 >conftest.err
6883 rm -f conftest.er1
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -z "$ac_c_werror_flag"
6888 || test ! -s conftest.err'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; } &&
6894 { ac_try='test -s conftest.$ac_objext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 ac_header_compiler=yes
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 ac_header_compiler=no
6907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6909 echo "${ECHO_T}$ac_header_compiler" >&6
6911 # Is the header present?
6912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <$ac_header>
6921 _ACEOF
6922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev/null; then
6930 if test -s conftest.err; then
6931 ac_cpp_err=$ac_c_preproc_warn_flag
6932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6933 else
6934 ac_cpp_err=
6936 else
6937 ac_cpp_err=yes
6939 if test -z "$ac_cpp_err"; then
6940 ac_header_preproc=yes
6941 else
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 ac_header_preproc=no
6947 rm -f conftest.err conftest.$ac_ext
6948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6949 echo "${ECHO_T}$ac_header_preproc" >&6
6951 # So? What about this header?
6952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6953 yes:no: )
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6958 ac_header_preproc=yes
6960 no:yes:* )
6961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6974 cat <<\_ASBOX
6975 ## ------------------------------------------ ##
6976 ## Report this to the AC_PACKAGE_NAME lists. ##
6977 ## ------------------------------------------ ##
6978 _ASBOX
6980 sed "s/^/$as_me: WARNING: /" >&2
6982 esac
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 eval "$as_ac_Header=\$ac_header_preproc"
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995 cat >>confdefs.h <<_ACEOF
6996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6997 _ACEOF
7001 done
7004 for ac_header in net/if.h
7006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 echo "$as_me:$LINENO: checking for $ac_header" >&5
7008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 #if HAVE_SYS_SOCKET_H
7020 #include <sys/socket.h>
7021 #endif
7023 #include <$ac_header>
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 eval "$as_ac_Header=yes"
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 eval "$as_ac_Header=no"
7054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7061 _ACEOF
7065 done
7068 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7069 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7070 if test "${ac_cv_struct_tm+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 #include <sys/types.h>
7080 #include <time.h>
7083 main ()
7085 struct tm *tp; tp->tm_sec;
7087 return 0;
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_cv_struct_tm=time.h
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7117 ac_cv_struct_tm=sys/time.h
7119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7122 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7123 if test $ac_cv_struct_tm = sys/time.h; then
7125 cat >>confdefs.h <<\_ACEOF
7126 #define TM_IN_SYS_TIME 1
7127 _ACEOF
7131 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7132 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7133 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <sys/types.h>
7143 #include <$ac_cv_struct_tm>
7147 main ()
7149 static struct tm ac_aggr;
7150 if (ac_aggr.tm_zone)
7151 return 0;
7153 return 0;
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_member_struct_tm_tm_zone=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 #include <sys/types.h>
7190 #include <$ac_cv_struct_tm>
7194 main ()
7196 static struct tm ac_aggr;
7197 if (sizeof ac_aggr.tm_zone)
7198 return 0;
7200 return 0;
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -z "$ac_c_werror_flag"
7213 || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 ac_cv_member_struct_tm_tm_zone=yes
7226 else
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7230 ac_cv_member_struct_tm_tm_zone=no
7232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7236 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7237 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7238 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7240 cat >>confdefs.h <<_ACEOF
7241 #define HAVE_STRUCT_TM_TM_ZONE 1
7242 _ACEOF
7247 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7249 cat >>confdefs.h <<\_ACEOF
7250 #define HAVE_TM_ZONE 1
7251 _ACEOF
7253 else
7254 echo "$as_me:$LINENO: checking for tzname" >&5
7255 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7256 if test "${ac_cv_var_tzname+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <time.h>
7266 #ifndef tzname /* For SGI. */
7267 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7268 #endif
7271 main ()
7273 atoi(*tzname);
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_c_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_var_tzname=yes
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_var_tzname=no
7307 rm -f conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7310 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7311 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7312 if test $ac_cv_var_tzname = yes; then
7314 cat >>confdefs.h <<\_ACEOF
7315 #define HAVE_TZNAME 1
7316 _ACEOF
7321 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7322 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7323 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 #include <time.h>
7335 main ()
7337 static struct tm ac_aggr;
7338 if (ac_aggr.tm_gmtoff)
7339 return 0;
7341 return 0;
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_member_struct_tm_tm_gmtoff=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h. */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 #include <time.h>
7380 main ()
7382 static struct tm ac_aggr;
7383 if (sizeof ac_aggr.tm_gmtoff)
7384 return 0;
7386 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_member_struct_tm_tm_gmtoff=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_cv_member_struct_tm_tm_gmtoff=no
7418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7423 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7424 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_TM_GMTOFF 1
7428 _ACEOF
7432 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7433 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7434 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7446 #endif
7447 #if HAVE_NET_IF_H
7448 #include <net/if.h>
7449 #endif
7452 main ()
7454 static struct ifreq ac_aggr;
7455 if (ac_aggr.ifr_flags)
7456 return 0;
7458 return 0;
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_member_struct_ifreq_ifr_flags=yes
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 #if HAVE_SYS_SOCKET_H
7496 #include <sys/socket.h>
7497 #endif
7498 #if HAVE_NET_IF_H
7499 #include <net/if.h>
7500 #endif
7503 main ()
7505 static struct ifreq ac_aggr;
7506 if (sizeof ac_aggr.ifr_flags)
7507 return 0;
7509 return 0;
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try='test -z "$ac_c_werror_flag"
7522 || test ! -s conftest.err'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; } &&
7528 { ac_try='test -s conftest.$ac_objext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 (eval $ac_try) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_member_struct_ifreq_ifr_flags=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 ac_cv_member_struct_ifreq_ifr_flags=no
7541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7547 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7549 cat >>confdefs.h <<_ACEOF
7550 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7551 _ACEOF
7555 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7556 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7557 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7567 #if HAVE_SYS_SOCKET_H
7568 #include <sys/socket.h>
7569 #endif
7570 #if HAVE_NET_IF_H
7571 #include <net/if.h>
7572 #endif
7575 main ()
7577 static struct ifreq ac_aggr;
7578 if (ac_aggr.ifr_hwaddr)
7579 return 0;
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 #if HAVE_SYS_SOCKET_H
7619 #include <sys/socket.h>
7620 #endif
7621 #if HAVE_NET_IF_H
7622 #include <net/if.h>
7623 #endif
7626 main ()
7628 static struct ifreq ac_aggr;
7629 if (sizeof ac_aggr.ifr_hwaddr)
7630 return 0;
7632 return 0;
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>conftest.er1
7638 ac_status=$?
7639 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -f conftest.er1
7641 cat conftest.err >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try='test -z "$ac_c_werror_flag"
7645 || test ! -s conftest.err'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; } &&
7651 { ac_try='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 (eval $ac_try) 2>&5
7654 ac_status=$?
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7658 else
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7668 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7669 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7670 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7674 _ACEOF
7678 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7679 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7680 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 #if HAVE_SYS_SOCKET_H
7691 #include <sys/socket.h>
7692 #endif
7693 #if HAVE_NET_IF_H
7694 #include <net/if.h>
7695 #endif
7698 main ()
7700 static struct ifreq ac_aggr;
7701 if (ac_aggr.ifr_netmask)
7702 return 0;
7704 return 0;
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_member_struct_ifreq_ifr_netmask=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h. */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 $ac_includes_default
7741 #if HAVE_SYS_SOCKET_H
7742 #include <sys/socket.h>
7743 #endif
7744 #if HAVE_NET_IF_H
7745 #include <net/if.h>
7746 #endif
7749 main ()
7751 static struct ifreq ac_aggr;
7752 if (sizeof ac_aggr.ifr_netmask)
7753 return 0;
7755 return 0;
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -z "$ac_c_werror_flag"
7768 || test ! -s conftest.err'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; } &&
7774 { ac_try='test -s conftest.$ac_objext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_cv_member_struct_ifreq_ifr_netmask=yes
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 ac_cv_member_struct_ifreq_ifr_netmask=no
7787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7792 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7793 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7795 cat >>confdefs.h <<_ACEOF
7796 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7797 _ACEOF
7801 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7802 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7803 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 $ac_includes_default
7813 #if HAVE_SYS_SOCKET_H
7814 #include <sys/socket.h>
7815 #endif
7816 #if HAVE_NET_IF_H
7817 #include <net/if.h>
7818 #endif
7821 main ()
7823 static struct ifreq ac_aggr;
7824 if (ac_aggr.ifr_broadaddr)
7825 return 0;
7827 return 0;
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_c_werror_flag"
7840 || test ! -s conftest.err'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7853 else
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7864 #if HAVE_SYS_SOCKET_H
7865 #include <sys/socket.h>
7866 #endif
7867 #if HAVE_NET_IF_H
7868 #include <net/if.h>
7869 #endif
7872 main ()
7874 static struct ifreq ac_aggr;
7875 if (sizeof ac_aggr.ifr_broadaddr)
7876 return 0;
7878 return 0;
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7915 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7916 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7918 cat >>confdefs.h <<_ACEOF
7919 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7920 _ACEOF
7924 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7925 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7926 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h. */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 $ac_includes_default
7936 #if HAVE_SYS_SOCKET_H
7937 #include <sys/socket.h>
7938 #endif
7939 #if HAVE_NET_IF_H
7940 #include <net/if.h>
7941 #endif
7944 main ()
7946 static struct ifreq ac_aggr;
7947 if (ac_aggr.ifr_addr)
7948 return 0;
7950 return 0;
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7955 (eval $ac_compile) 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest.$ac_objext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_member_struct_ifreq_ifr_addr=yes
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 #if HAVE_SYS_SOCKET_H
7988 #include <sys/socket.h>
7989 #endif
7990 #if HAVE_NET_IF_H
7991 #include <net/if.h>
7992 #endif
7995 main ()
7997 static struct ifreq ac_aggr;
7998 if (sizeof ac_aggr.ifr_addr)
7999 return 0;
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8006 (eval $ac_compile) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest.$ac_objext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_member_struct_ifreq_ifr_addr=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_member_struct_ifreq_ifr_addr=no
8033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8038 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8039 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8043 _ACEOF
8050 echo "$as_me:$LINENO: checking for function prototypes" >&5
8051 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8052 if test "$ac_cv_prog_cc_stdc" != no; then
8053 echo "$as_me:$LINENO: result: yes" >&5
8054 echo "${ECHO_T}yes" >&6
8056 cat >>confdefs.h <<\_ACEOF
8057 #define PROTOTYPES 1
8058 _ACEOF
8061 cat >>confdefs.h <<\_ACEOF
8062 #define __PROTOTYPES 1
8063 _ACEOF
8065 else
8066 echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8070 echo "$as_me:$LINENO: checking for working volatile" >&5
8071 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8072 if test "${ac_cv_c_volatile+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8083 main ()
8086 volatile int x;
8087 int * volatile y;
8089 return 0;
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 ac_cv_c_volatile=yes
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_cv_c_volatile=no
8121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8123 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8124 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8125 if test $ac_cv_c_volatile = no; then
8127 cat >>confdefs.h <<\_ACEOF
8128 #define volatile
8129 _ACEOF
8133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8135 if test "${ac_cv_c_const+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8146 main ()
8148 /* FIXME: Include the comments suggested by Paul. */
8149 #ifndef __cplusplus
8150 /* Ultrix mips cc rejects this. */
8151 typedef int charset[2];
8152 const charset x;
8153 /* SunOS 4.1.1 cc rejects this. */
8154 char const *const *ccp;
8155 char **p;
8156 /* NEC SVR4.0.2 mips cc rejects this. */
8157 struct point {int x, y;};
8158 static struct point const zero = {0,0};
8159 /* AIX XL C 1.02.0.0 rejects this.
8160 It does not let you subtract one const X* pointer from another in
8161 an arm of an if-expression whose if-part is not a constant
8162 expression */
8163 const char *g = "string";
8164 ccp = &g + (g ? g-g : 0);
8165 /* HPUX 7.0 cc rejects these. */
8166 ++ccp;
8167 p = (char**) ccp;
8168 ccp = (char const *const *) p;
8169 { /* SCO 3.2v4 cc rejects this. */
8170 char *t;
8171 char const *s = 0 ? (char *) 0 : (char const *) 0;
8173 *t++ = 0;
8175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8176 int x[] = {25, 17};
8177 const int *foo = &x[0];
8178 ++foo;
8180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8181 typedef const int *iptr;
8182 iptr p = 0;
8183 ++p;
8185 { /* AIX XL C 1.02.0.0 rejects this saying
8186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8187 struct s { int j; const int *ap[3]; };
8188 struct s *b; b->j = 5;
8190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8191 const int foo = 10;
8193 #endif
8196 return 0;
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag"
8209 || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest.$ac_objext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 ac_cv_c_const=yes
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_cv_c_const=no
8228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8231 echo "${ECHO_T}$ac_cv_c_const" >&6
8232 if test $ac_cv_c_const = no; then
8234 cat >>confdefs.h <<\_ACEOF
8235 #define const
8236 _ACEOF
8240 echo "$as_me:$LINENO: checking for void * support" >&5
8241 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8242 if test "${emacs_cv_void_star+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8253 main ()
8255 void * foo;
8257 return 0;
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 emacs_cv_void_star=yes
8283 else
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 emacs_cv_void_star=no
8289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8292 echo "${ECHO_T}$emacs_cv_void_star" >&6
8293 if test $emacs_cv_void_star = yes; then
8294 cat >>confdefs.h <<\_ACEOF
8295 #define POINTER_TYPE void
8296 _ACEOF
8298 else
8299 cat >>confdefs.h <<\_ACEOF
8300 #define POINTER_TYPE char
8301 _ACEOF
8309 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8310 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8311 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8312 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315 cat >conftest.make <<\_ACEOF
8316 all:
8317 @echo 'ac_maketemp="$(MAKE)"'
8318 _ACEOF
8319 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8320 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8321 if test -n "$ac_maketemp"; then
8322 eval ac_cv_prog_make_${ac_make}_set=yes
8323 else
8324 eval ac_cv_prog_make_${ac_make}_set=no
8326 rm -f conftest.make
8328 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8331 SET_MAKE=
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6
8335 SET_MAKE="MAKE=${MAKE-make}"
8339 echo "$as_me:$LINENO: checking for long file names" >&5
8340 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8341 if test "${ac_cv_sys_long_file_names+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 ac_cv_sys_long_file_names=yes
8345 # Test for long file names in all the places we know might matter:
8346 # . the current directory, where building will happen
8347 # $prefix/lib where we will be installing things
8348 # $exec_prefix/lib likewise
8349 # eval it to expand exec_prefix.
8350 # $TMPDIR if set, where it might want to write temporary files
8351 # if $TMPDIR is not set:
8352 # /tmp where it might want to write temporary files
8353 # /var/tmp likewise
8354 # /usr/tmp likewise
8355 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8356 ac_tmpdirs=$TMPDIR
8357 else
8358 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8360 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8361 test -d $ac_dir || continue
8362 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8363 ac_xdir=$ac_dir/cf$$
8364 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8365 ac_tf1=$ac_xdir/conftest9012345
8366 ac_tf2=$ac_xdir/conftest9012346
8367 (echo 1 >$ac_tf1) 2>/dev/null
8368 (echo 2 >$ac_tf2) 2>/dev/null
8369 ac_val=`cat $ac_tf1 2>/dev/null`
8370 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8371 ac_cv_sys_long_file_names=no
8372 rm -rf $ac_xdir 2>/dev/null
8373 break
8375 rm -rf $ac_xdir 2>/dev/null
8376 done
8378 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8379 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8380 if test $ac_cv_sys_long_file_names = yes; then
8382 cat >>confdefs.h <<\_ACEOF
8383 #define HAVE_LONG_FILE_NAMES 1
8384 _ACEOF
8389 #### Choose a window system.
8391 echo "$as_me:$LINENO: checking for X" >&5
8392 echo $ECHO_N "checking for X... $ECHO_C" >&6
8394 ac_path_x_has_been_run=yes
8396 # Check whether --with-x or --without-x was given.
8397 if test "${with_x+set}" = set; then
8398 withval="$with_x"
8401 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8402 if test "x$with_x" = xno; then
8403 # The user explicitly disabled X.
8404 have_x=disabled
8405 else
8406 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8407 # Both variables are already set.
8408 have_x=yes
8409 else
8410 if test "${ac_cv_have_x+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 # One or both of the vars are not set, and there is no cached value.
8414 ac_x_includes=no ac_x_libraries=no
8415 rm -fr conftest.dir
8416 if mkdir conftest.dir; then
8417 cd conftest.dir
8418 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8419 cat >Imakefile <<'_ACEOF'
8420 acfindx:
8421 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8422 _ACEOF
8423 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8425 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8426 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8427 for ac_extension in a so sl; do
8428 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8429 test -f $ac_im_libdir/libX11.$ac_extension; then
8430 ac_im_usrlibdir=$ac_im_libdir; break
8432 done
8433 # Screen out bogus values from the imake configuration. They are
8434 # bogus both because they are the default anyway, and because
8435 # using them would break gcc on systems where it needs fixed includes.
8436 case $ac_im_incroot in
8437 /usr/include) ;;
8438 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8439 esac
8440 case $ac_im_usrlibdir in
8441 /usr/lib | /lib) ;;
8442 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8443 esac
8445 cd ..
8446 rm -fr conftest.dir
8449 # Standard set of common directories for X headers.
8450 # Check X11 before X11Rn because it is often a symlink to the current release.
8451 ac_x_header_dirs='
8452 /usr/X11/include
8453 /usr/X11R6/include
8454 /usr/X11R5/include
8455 /usr/X11R4/include
8457 /usr/include/X11
8458 /usr/include/X11R6
8459 /usr/include/X11R5
8460 /usr/include/X11R4
8462 /usr/local/X11/include
8463 /usr/local/X11R6/include
8464 /usr/local/X11R5/include
8465 /usr/local/X11R4/include
8467 /usr/local/include/X11
8468 /usr/local/include/X11R6
8469 /usr/local/include/X11R5
8470 /usr/local/include/X11R4
8472 /usr/X386/include
8473 /usr/x386/include
8474 /usr/XFree86/include/X11
8476 /usr/include
8477 /usr/local/include
8478 /usr/unsupported/include
8479 /usr/athena/include
8480 /usr/local/x11r5/include
8481 /usr/lpp/Xamples/include
8483 /usr/openwin/include
8484 /usr/openwin/share/include'
8486 if test "$ac_x_includes" = no; then
8487 # Guess where to find include files, by looking for a specified header file.
8488 # First, try using that file with no special directory specified.
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <X11/Intrinsic.h>
8496 _ACEOF
8497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } >/dev/null; then
8505 if test -s conftest.err; then
8506 ac_cpp_err=$ac_c_preproc_warn_flag
8507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8508 else
8509 ac_cpp_err=
8511 else
8512 ac_cpp_err=yes
8514 if test -z "$ac_cpp_err"; then
8515 # We can compile using X headers with no special include directory.
8516 ac_x_includes=
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8521 for ac_dir in $ac_x_header_dirs; do
8522 if test -r "$ac_dir/X11/Intrinsic.h"; then
8523 ac_x_includes=$ac_dir
8524 break
8526 done
8528 rm -f conftest.err conftest.$ac_ext
8529 fi # $ac_x_includes = no
8531 if test "$ac_x_libraries" = no; then
8532 # Check for the libraries.
8533 # See if we find them without any special options.
8534 # Don't add to $LIBS permanently.
8535 ac_save_LIBS=$LIBS
8536 LIBS="-lXt $LIBS"
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 #include <X11/Intrinsic.h>
8545 main ()
8547 XtMalloc (0)
8549 return 0;
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag"
8562 || test ! -s conftest.err'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest$ac_exeext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 LIBS=$ac_save_LIBS
8575 # We can link X programs with no special library path.
8576 ac_x_libraries=
8577 else
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 LIBS=$ac_save_LIBS
8582 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8584 # Don't even attempt the hair of trying to link an X program!
8585 for ac_extension in a so sl; do
8586 if test -r $ac_dir/libXt.$ac_extension; then
8587 ac_x_libraries=$ac_dir
8588 break 2
8590 done
8591 done
8593 rm -f conftest.err conftest.$ac_objext \
8594 conftest$ac_exeext conftest.$ac_ext
8595 fi # $ac_x_libraries = no
8597 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8598 # Didn't find X anywhere. Cache the known absence of X.
8599 ac_cv_have_x="have_x=no"
8600 else
8601 # Record where we found X for the cache.
8602 ac_cv_have_x="have_x=yes \
8603 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8608 eval "$ac_cv_have_x"
8609 fi # $with_x != no
8611 if test "$have_x" != yes; then
8612 echo "$as_me:$LINENO: result: $have_x" >&5
8613 echo "${ECHO_T}$have_x" >&6
8614 no_x=yes
8615 else
8616 # If each of the values was on the command line, it overrides each guess.
8617 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8618 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8619 # Update the cache value to reflect the command line values.
8620 ac_cv_have_x="have_x=yes \
8621 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8622 # It might be that x_includes is empty (headers are found in the
8623 # standard search path. Then output the corresponding message
8624 ac_out_x_includes=$x_includes
8625 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8626 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8627 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8630 if test "$no_x" = yes; then
8631 window_system=none
8632 else
8633 window_system=x11
8636 if test "${x_libraries}" != NONE; then
8637 if test -n "${x_libraries}"; then
8638 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8639 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8641 x_default_search_path=""
8642 x_search_path=${x_libraries}
8643 if test -z "${x_search_path}"; then
8644 x_search_path=/usr/lib
8646 for x_library in `echo ${x_search_path}: | \
8647 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8648 x_search_path="\
8649 ${x_library}/X11/%L/%T/%N%C%S:\
8650 ${x_library}/X11/%l/%T/%N%C%S:\
8651 ${x_library}/X11/%T/%N%C%S:\
8652 ${x_library}/X11/%L/%T/%N%S:\
8653 ${x_library}/X11/%l/%T/%N%S:\
8654 ${x_library}/X11/%T/%N%S"
8655 if test x"${x_default_search_path}" = x; then
8656 x_default_search_path=${x_search_path}
8657 else
8658 x_default_search_path="${x_search_path}:${x_default_search_path}"
8660 done
8662 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8663 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8666 if test x"${x_includes}" = x; then
8667 bitmapdir=/usr/include/X11/bitmaps
8668 else
8669 # accumulate include directories that have X11 bitmap subdirectories
8670 bmd_acc="dummyval"
8671 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8672 if test -d "${bmd}/X11/bitmaps"; then
8673 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8675 if test -d "${bmd}/bitmaps"; then
8676 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8678 done
8679 if test ${bmd_acc} != "dummyval"; then
8680 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8684 HAVE_CARBON=no
8685 if test "${with_carbon}" != no; then
8686 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8687 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8688 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8689 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8693 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8694 else
8695 # Is the header compilable?
8696 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8697 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 #include <Carbon/Carbon.h>
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8709 (eval $ac_compile) 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_header_compiler=yes
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_header_compiler=no
8736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8738 echo "${ECHO_T}$ac_header_compiler" >&6
8740 # Is the header present?
8741 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8742 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 #include <Carbon/Carbon.h>
8750 _ACEOF
8751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } >/dev/null; then
8759 if test -s conftest.err; then
8760 ac_cpp_err=$ac_c_preproc_warn_flag
8761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8762 else
8763 ac_cpp_err=
8765 else
8766 ac_cpp_err=yes
8768 if test -z "$ac_cpp_err"; then
8769 ac_header_preproc=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_header_preproc=no
8776 rm -f conftest.err conftest.$ac_ext
8777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8778 echo "${ECHO_T}$ac_header_preproc" >&6
8780 # So? What about this header?
8781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8782 yes:no: )
8783 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8784 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8786 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8787 ac_header_preproc=yes
8789 no:yes:* )
8790 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8791 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8793 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8795 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8796 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8797 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8798 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8799 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8800 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8801 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8803 cat <<\_ASBOX
8804 ## ------------------------------------------ ##
8805 ## Report this to the AC_PACKAGE_NAME lists. ##
8806 ## ------------------------------------------ ##
8807 _ASBOX
8809 sed "s/^/$as_me: WARNING: /" >&2
8811 esac
8812 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8813 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8814 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8819 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8820 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8823 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8824 HAVE_CARBON=yes
8829 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8830 if test "${with_carbon+set}" != set \
8831 && test "${carbon_appdir_x+set}" != set; then
8832 for var in with_x with_x_toolkit with_gtk with_xim \
8833 with_xpm with_jpeg with_tiff with_gif with_png; do
8834 if eval test \"\${$var+set}\" = set; then
8835 HAVE_CARBON=no
8836 break
8838 done
8841 if test "${HAVE_CARBON}" = yes; then
8842 window_system=mac
8845 case "${window_system}" in
8846 x11 )
8847 HAVE_X_WINDOWS=yes
8848 HAVE_X11=yes
8849 case "${with_x_toolkit}" in
8850 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8851 motif ) USE_X_TOOLKIT=MOTIF ;;
8852 gtk ) with_gtk=yes
8853 USE_X_TOOLKIT=none ;;
8854 no ) USE_X_TOOLKIT=none ;;
8855 * ) USE_X_TOOLKIT=maybe ;;
8856 esac
8858 mac | none )
8859 HAVE_X_WINDOWS=no
8860 HAVE_X11=no
8861 USE_X_TOOLKIT=none
8863 esac
8865 ### If we're using X11, we should use the X menu package.
8866 HAVE_MENUS=no
8867 case ${HAVE_X11} in
8868 yes ) HAVE_MENUS=yes ;;
8869 esac
8871 if test "${opsys}" = "hpux9"; then
8872 case "${x_libraries}" in
8873 *X11R4* )
8874 opsysfile="s/hpux9-x11r4.h"
8876 esac
8879 if test "${opsys}" = "hpux9shr"; then
8880 case "${x_libraries}" in
8881 *X11R4* )
8882 opsysfile="s/hpux9shxr4.h"
8884 esac
8887 ### Compute the unexec source name from the object name.
8888 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8890 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8891 # Assume not, until told otherwise.
8892 GNU_MALLOC=yes
8893 doug_lea_malloc=yes
8894 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8895 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8896 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8907 #define malloc_get_state innocuous_malloc_get_state
8909 /* System header to define __stub macros and hopefully few prototypes,
8910 which can conflict with char malloc_get_state (); below.
8911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912 <limits.h> exists even on freestanding compilers. */
8914 #ifdef __STDC__
8915 # include <limits.h>
8916 #else
8917 # include <assert.h>
8918 #endif
8920 #undef malloc_get_state
8922 /* Override any gcc2 internal prototype to avoid an error. */
8923 #ifdef __cplusplus
8924 extern "C"
8926 #endif
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8929 char malloc_get_state ();
8930 /* The GNU C library defines this for functions which it implements
8931 to always fail with ENOSYS. Some functions are actually named
8932 something starting with __ and the normal name is an alias. */
8933 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8934 choke me
8935 #else
8936 char (*f) () = malloc_get_state;
8937 #endif
8938 #ifdef __cplusplus
8940 #endif
8943 main ()
8945 return f != malloc_get_state;
8947 return 0;
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_func_malloc_get_state=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_cv_func_malloc_get_state=no
8979 rm -f conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8983 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8984 if test $ac_cv_func_malloc_get_state = yes; then
8986 else
8987 doug_lea_malloc=no
8990 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8991 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8992 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h. */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9003 #define malloc_set_state innocuous_malloc_set_state
9005 /* System header to define __stub macros and hopefully few prototypes,
9006 which can conflict with char malloc_set_state (); below.
9007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008 <limits.h> exists even on freestanding compilers. */
9010 #ifdef __STDC__
9011 # include <limits.h>
9012 #else
9013 # include <assert.h>
9014 #endif
9016 #undef malloc_set_state
9018 /* Override any gcc2 internal prototype to avoid an error. */
9019 #ifdef __cplusplus
9020 extern "C"
9022 #endif
9023 /* We use char because int might match the return type of a gcc2
9024 builtin and then its argument prototype would still apply. */
9025 char malloc_set_state ();
9026 /* The GNU C library defines this for functions which it implements
9027 to always fail with ENOSYS. Some functions are actually named
9028 something starting with __ and the normal name is an alias. */
9029 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9030 choke me
9031 #else
9032 char (*f) () = malloc_set_state;
9033 #endif
9034 #ifdef __cplusplus
9036 #endif
9039 main ()
9041 return f != malloc_set_state;
9043 return 0;
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_func_malloc_set_state=yes
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ac_cv_func_malloc_set_state=no
9075 rm -f conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9079 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9080 if test $ac_cv_func_malloc_set_state = yes; then
9082 else
9083 doug_lea_malloc=no
9086 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9087 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9088 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 extern void (* __after_morecore_hook)();
9099 main ()
9101 __after_morecore_hook = 0
9103 return 0;
9105 _ACEOF
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try='test -s conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 emacs_cv_var___after_morecore_hook=yes
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 emacs_cv_var___after_morecore_hook=no
9135 rm -f conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9139 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9140 if test $emacs_cv_var___after_morecore_hook = no; then
9141 doug_lea_malloc=no
9143 if test "${system_malloc}" = "yes"; then
9144 GNU_MALLOC=no
9145 GNU_MALLOC_reason="
9146 (The GNU allocators don't work with this system configuration.)"
9148 if test "$doug_lea_malloc" = "yes" ; then
9149 if test "$GNU_MALLOC" = yes ; then
9150 GNU_MALLOC_reason="
9151 (Using Doug Lea's new malloc from the GNU C Library.)"
9154 cat >>confdefs.h <<\_ACEOF
9155 #define DOUG_LEA_MALLOC 1
9156 _ACEOF
9160 if test x"${REL_ALLOC}" = x; then
9161 REL_ALLOC=${GNU_MALLOC}
9167 for ac_header in stdlib.h unistd.h
9169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171 echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178 else
9179 # Is the header compilable?
9180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 #include <$ac_header>
9190 _ACEOF
9191 rm -f conftest.$ac_objext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9193 (eval $ac_compile) 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -z "$ac_c_werror_flag"
9201 || test ! -s conftest.err'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; } &&
9207 { ac_try='test -s conftest.$ac_objext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 (eval $ac_try) 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_header_compiler=yes
9214 else
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 ac_header_compiler=no
9220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9222 echo "${ECHO_T}$ac_header_compiler" >&6
9224 # Is the header present?
9225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 #include <$ac_header>
9234 _ACEOF
9235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev/null; then
9243 if test -s conftest.err; then
9244 ac_cpp_err=$ac_c_preproc_warn_flag
9245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9246 else
9247 ac_cpp_err=
9249 else
9250 ac_cpp_err=yes
9252 if test -z "$ac_cpp_err"; then
9253 ac_header_preproc=yes
9254 else
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 ac_header_preproc=no
9260 rm -f conftest.err conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9262 echo "${ECHO_T}$ac_header_preproc" >&6
9264 # So? What about this header?
9265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9266 yes:no: )
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9271 ac_header_preproc=yes
9273 no:yes:* )
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9287 cat <<\_ASBOX
9288 ## ------------------------------------------ ##
9289 ## Report this to the AC_PACKAGE_NAME lists. ##
9290 ## ------------------------------------------ ##
9291 _ASBOX
9293 sed "s/^/$as_me: WARNING: /" >&2
9295 esac
9296 echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301 eval "$as_ac_Header=\$ac_header_preproc"
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9308 cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 _ACEOF
9314 done
9317 for ac_func in getpagesize
9319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9320 echo "$as_me:$LINENO: checking for $ac_func" >&5
9321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_var+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9333 #define $ac_func innocuous_$ac_func
9335 /* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char $ac_func (); below.
9337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9338 <limits.h> exists even on freestanding compilers. */
9340 #ifdef __STDC__
9341 # include <limits.h>
9342 #else
9343 # include <assert.h>
9344 #endif
9346 #undef $ac_func
9348 /* Override any gcc2 internal prototype to avoid an error. */
9349 #ifdef __cplusplus
9350 extern "C"
9352 #endif
9353 /* We use char because int might match the return type of a gcc2
9354 builtin and then its argument prototype would still apply. */
9355 char $ac_func ();
9356 /* The GNU C library defines this for functions which it implements
9357 to always fail with ENOSYS. Some functions are actually named
9358 something starting with __ and the normal name is an alias. */
9359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9360 choke me
9361 #else
9362 char (*f) () = $ac_func;
9363 #endif
9364 #ifdef __cplusplus
9366 #endif
9369 main ()
9371 return f != $ac_func;
9373 return 0;
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 eval "$as_ac_var=yes"
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 eval "$as_ac_var=no"
9405 rm -f conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9410 if test `eval echo '${'$as_ac_var'}'` = yes; then
9411 cat >>confdefs.h <<_ACEOF
9412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9413 _ACEOF
9416 done
9418 echo "$as_me:$LINENO: checking for working mmap" >&5
9419 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9420 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 if test "$cross_compiling" = yes; then
9424 ac_cv_func_mmap_fixed_mapped=no
9425 else
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9433 /* malloc might have been renamed as rpl_malloc. */
9434 #undef malloc
9436 /* Thanks to Mike Haertel and Jim Avera for this test.
9437 Here is a matrix of mmap possibilities:
9438 mmap private not fixed
9439 mmap private fixed at somewhere currently unmapped
9440 mmap private fixed at somewhere already mapped
9441 mmap shared not fixed
9442 mmap shared fixed at somewhere currently unmapped
9443 mmap shared fixed at somewhere already mapped
9444 For private mappings, we should verify that changes cannot be read()
9445 back from the file, nor mmap's back from the file at a different
9446 address. (There have been systems where private was not correctly
9447 implemented like the infamous i386 svr4.0, and systems where the
9448 VM page cache was not coherent with the file system buffer cache
9449 like early versions of FreeBSD and possibly contemporary NetBSD.)
9450 For shared mappings, we should conversely verify that changes get
9451 propagated back to all the places they're supposed to be.
9453 Grep wants private fixed already mapped.
9454 The main things grep needs to know about mmap are:
9455 * does it exist and is it safe to write into the mmap'd area
9456 * how to use it (BSD variants) */
9458 #include <fcntl.h>
9459 #include <sys/mman.h>
9461 #if !STDC_HEADERS && !HAVE_STDLIB_H
9462 char *malloc ();
9463 #endif
9465 /* This mess was copied from the GNU getpagesize.h. */
9466 #if !HAVE_GETPAGESIZE
9467 /* Assume that all systems that can run configure have sys/param.h. */
9468 # if !HAVE_SYS_PARAM_H
9469 # define HAVE_SYS_PARAM_H 1
9470 # endif
9472 # ifdef _SC_PAGESIZE
9473 # define getpagesize() sysconf(_SC_PAGESIZE)
9474 # else /* no _SC_PAGESIZE */
9475 # if HAVE_SYS_PARAM_H
9476 # include <sys/param.h>
9477 # ifdef EXEC_PAGESIZE
9478 # define getpagesize() EXEC_PAGESIZE
9479 # else /* no EXEC_PAGESIZE */
9480 # ifdef NBPG
9481 # define getpagesize() NBPG * CLSIZE
9482 # ifndef CLSIZE
9483 # define CLSIZE 1
9484 # endif /* no CLSIZE */
9485 # else /* no NBPG */
9486 # ifdef NBPC
9487 # define getpagesize() NBPC
9488 # else /* no NBPC */
9489 # ifdef PAGESIZE
9490 # define getpagesize() PAGESIZE
9491 # endif /* PAGESIZE */
9492 # endif /* no NBPC */
9493 # endif /* no NBPG */
9494 # endif /* no EXEC_PAGESIZE */
9495 # else /* no HAVE_SYS_PARAM_H */
9496 # define getpagesize() 8192 /* punt totally */
9497 # endif /* no HAVE_SYS_PARAM_H */
9498 # endif /* no _SC_PAGESIZE */
9500 #endif /* no HAVE_GETPAGESIZE */
9503 main ()
9505 char *data, *data2, *data3;
9506 int i, pagesize;
9507 int fd;
9509 pagesize = getpagesize ();
9511 /* First, make a file with some known garbage in it. */
9512 data = (char *) malloc (pagesize);
9513 if (!data)
9514 exit (1);
9515 for (i = 0; i < pagesize; ++i)
9516 *(data + i) = rand ();
9517 umask (0);
9518 fd = creat ("conftest.mmap", 0600);
9519 if (fd < 0)
9520 exit (1);
9521 if (write (fd, data, pagesize) != pagesize)
9522 exit (1);
9523 close (fd);
9525 /* Next, try to mmap the file at a fixed address which already has
9526 something else allocated at it. If we can, also make sure that
9527 we see the same garbage. */
9528 fd = open ("conftest.mmap", O_RDWR);
9529 if (fd < 0)
9530 exit (1);
9531 data2 = (char *) malloc (2 * pagesize);
9532 if (!data2)
9533 exit (1);
9534 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9535 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9536 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9537 exit (1);
9538 for (i = 0; i < pagesize; ++i)
9539 if (*(data + i) != *(data2 + i))
9540 exit (1);
9542 /* Finally, make sure that changes to the mapped area do not
9543 percolate back to the file as seen by read(). (This is a bug on
9544 some variants of i386 svr4.0.) */
9545 for (i = 0; i < pagesize; ++i)
9546 *(data2 + i) = *(data2 + i) + 1;
9547 data3 = (char *) malloc (pagesize);
9548 if (!data3)
9549 exit (1);
9550 if (read (fd, data3, pagesize) != pagesize)
9551 exit (1);
9552 for (i = 0; i < pagesize; ++i)
9553 if (*(data + i) != *(data3 + i))
9554 exit (1);
9555 close (fd);
9556 exit (0);
9558 _ACEOF
9559 rm -f conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_func_mmap_fixed_mapped=yes
9571 else
9572 echo "$as_me: program exited with status $ac_status" >&5
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ( exit $ac_status )
9577 ac_cv_func_mmap_fixed_mapped=no
9579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9582 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9583 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9586 cat >>confdefs.h <<\_ACEOF
9587 #define HAVE_MMAP 1
9588 _ACEOF
9591 rm -f conftest.mmap
9593 if test $use_mmap_for_buffers = yes; then
9594 REL_ALLOC=no
9597 LIBS="$libsrc_libs $LIBS"
9600 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9601 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9602 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605 ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-ldnet $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any gcc2 internal prototype to avoid an error. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 /* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9620 char dnet_ntoa ();
9622 main ()
9624 dnet_ntoa ();
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag"
9639 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_dnet_dnet_ntoa=yes
9652 else
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_lib_dnet_dnet_ntoa=no
9658 rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 LIBS=$ac_check_lib_save_LIBS
9662 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9663 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9664 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9665 cat >>confdefs.h <<_ACEOF
9666 #define HAVE_LIBDNET 1
9667 _ACEOF
9669 LIBS="-ldnet $LIBS"
9674 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9675 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9676 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679 ac_check_lib_save_LIBS=$LIBS
9680 LIBS="-lXbsd $LIBS"
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9690 main ()
9692 main ();
9694 return 0;
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699 (eval $ac_link) 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag"
9707 || test ! -s conftest.err'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_lib_Xbsd_main=yes
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_cv_lib_Xbsd_main=no
9726 rm -f conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9731 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9732 if test $ac_cv_lib_Xbsd_main = yes; then
9733 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9738 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9739 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9740 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743 ac_check_lib_save_LIBS=$LIBS
9744 LIBS="-lpthreads $LIBS"
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any gcc2 internal prototype to avoid an error. */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758 char cma_open ();
9760 main ()
9762 cma_open ();
9764 return 0;
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -z "$ac_c_werror_flag"
9777 || test ! -s conftest.err'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_cv_lib_pthreads_cma_open=yes
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9794 ac_cv_lib_pthreads_cma_open=no
9796 rm -f conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9800 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9801 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9802 if test $ac_cv_lib_pthreads_cma_open = yes; then
9803 cat >>confdefs.h <<_ACEOF
9804 #define HAVE_LIBPTHREADS 1
9805 _ACEOF
9807 LIBS="-lpthreads $LIBS"
9812 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9813 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9814 if test -d /usr/X386/include; then
9815 HAVE_XFREE386=yes
9816 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9817 else
9818 HAVE_XFREE386=no
9820 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9821 echo "${ECHO_T}$HAVE_XFREE386" >&6
9824 case ${host_os} in
9825 aix*)
9826 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9827 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9828 if test "${gdb_cv_bigtoc+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9832 case $GCC in
9833 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9834 *) gdb_cv_bigtoc=-bbigtoc ;;
9835 esac
9837 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9846 main ()
9848 int i;
9850 return 0;
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 gdb_cv_bigtoc=
9882 rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9886 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9887 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9889 esac
9891 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9892 # used for the tests that follow. We set them back to REAL_CFLAGS and
9893 # REAL_CPPFLAGS later on.
9895 REAL_CPPFLAGS="$CPPFLAGS"
9897 if test "${HAVE_X11}" = "yes"; then
9898 DEFS="$C_SWITCH_X_SITE $DEFS"
9899 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9900 LIBS="$LIBX $LIBS"
9901 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9902 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9904 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9905 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9906 # but it's more convenient here to set LD_RUN_PATH
9907 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9908 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9909 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9910 export LD_RUN_PATH
9913 if test "${opsys}" = "gnu-linux"; then
9914 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9915 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9924 main ()
9926 XOpenDisplay ("foo");
9928 return 0;
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -z "$ac_c_werror_flag"
9941 || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 xlinux_first_failure=no
9954 else
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9958 xlinux_first_failure=yes
9960 rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test "${xlinux_first_failure}" = "yes"; then
9963 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9964 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9965 OLD_CPPFLAGS="$CPPFLAGS"
9966 OLD_LIBS="$LIBS"
9967 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9968 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9969 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9970 LIBS="$LIBS -b i486-linuxaout"
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9979 main ()
9981 XOpenDisplay ("foo");
9983 return 0;
9985 _ACEOF
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 xlinux_second_failure=no
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 xlinux_second_failure=yes
10015 rm -f conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 if test "${xlinux_second_failure}" = "yes"; then
10018 # If we get the same failure with -b, there is no use adding -b.
10019 # So take it out. This plays safe.
10020 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10021 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10022 CPPFLAGS="$OLD_CPPFLAGS"
10023 LIBS="$OLD_LIBS"
10024 echo "$as_me:$LINENO: result: no" >&5
10025 echo "${ECHO_T}no" >&6
10026 else
10027 echo "$as_me:$LINENO: result: yes" >&5
10028 echo "${ECHO_T}yes" >&6
10030 else
10031 echo "$as_me:$LINENO: result: no" >&5
10032 echo "${ECHO_T}no" >&6
10036 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10037 # header files included from there.
10038 echo "$as_me:$LINENO: checking for Xkb" >&5
10039 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <X11/Xlib.h>
10047 #include <X11/XKBlib.h>
10049 main ()
10051 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10053 return 0;
10055 _ACEOF
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058 (eval $ac_link) 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag"
10066 || test ! -s conftest.err'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 emacs_xkb=yes
10079 else
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 emacs_xkb=no
10085 rm -f conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10088 echo "${ECHO_T}$emacs_xkb" >&6
10089 if test $emacs_xkb = yes; then
10091 cat >>confdefs.h <<\_ACEOF
10092 #define HAVE_XKBGETKEYBOARD 1
10093 _ACEOF
10101 for ac_func in XrmSetDatabase XScreenResourceString \
10102 XScreenNumberOfScreen XSetWMProtocols
10104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10107 if eval "test \"\${$as_ac_var+set}\" = set"; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118 #define $ac_func innocuous_$ac_func
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char $ac_func (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10125 #ifdef __STDC__
10126 # include <limits.h>
10127 #else
10128 # include <assert.h>
10129 #endif
10131 #undef $ac_func
10133 /* Override any gcc2 internal prototype to avoid an error. */
10134 #ifdef __cplusplus
10135 extern "C"
10137 #endif
10138 /* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10140 char $ac_func ();
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10145 choke me
10146 #else
10147 char (*f) () = $ac_func;
10148 #endif
10149 #ifdef __cplusplus
10151 #endif
10154 main ()
10156 return f != $ac_func;
10158 return 0;
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>conftest.er1
10164 ac_status=$?
10165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -z "$ac_c_werror_flag"
10171 || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 eval "$as_ac_var=yes"
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 eval "$as_ac_var=no"
10190 rm -f conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10195 if test `eval echo '${'$as_ac_var'}'` = yes; then
10196 cat >>confdefs.h <<_ACEOF
10197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10198 _ACEOF
10201 done
10205 if test "${window_system}" = "x11"; then
10206 echo "$as_me:$LINENO: checking X11 version 6" >&5
10207 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10208 if test "${emacs_cv_x11_version_6+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 #include <X11/Xlib.h>
10219 main ()
10221 #if XlibSpecificationRelease < 6
10222 fail;
10223 #endif
10226 return 0;
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_c_werror_flag"
10239 || test ! -s conftest.err'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try='test -s conftest$ac_exeext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 emacs_cv_x11_version_6=yes
10252 else
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 emacs_cv_x11_version_6=no
10258 rm -f conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10262 if test $emacs_cv_x11_version_6 = yes; then
10263 echo "$as_me:$LINENO: result: 6 or newer" >&5
10264 echo "${ECHO_T}6 or newer" >&6
10266 cat >>confdefs.h <<\_ACEOF
10267 #define HAVE_X11R6 1
10268 _ACEOF
10270 else
10271 echo "$as_me:$LINENO: result: before 6" >&5
10272 echo "${ECHO_T}before 6" >&6
10276 if test "${window_system}" = "x11"; then
10277 echo "$as_me:$LINENO: checking X11 version 5" >&5
10278 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10279 if test "${emacs_cv_x11_version_5+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <X11/Xlib.h>
10290 main ()
10292 #if XlibSpecificationRelease < 5
10293 fail;
10294 #endif
10297 return 0;
10299 _ACEOF
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302 (eval $ac_link) 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest$ac_exeext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 emacs_cv_x11_version_5=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 emacs_cv_x11_version_5=no
10329 rm -f conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10333 if test $emacs_cv_x11_version_5 = yes; then
10334 echo "$as_me:$LINENO: result: 5 or newer" >&5
10335 echo "${ECHO_T}5 or newer" >&6
10336 HAVE_X11R5=yes
10338 cat >>confdefs.h <<\_ACEOF
10339 #define HAVE_X11R5 1
10340 _ACEOF
10342 else
10343 HAVE_X11R5=no
10344 echo "$as_me:$LINENO: result: before 5" >&5
10345 echo "${ECHO_T}before 5" >&6
10349 HAVE_GTK=no
10350 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10351 USE_X_TOOLKIT=none
10353 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10354 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10355 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10356 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10357 { (exit 1); exit 1; }; };
10359 GLIB_REQUIRED=2.4
10360 GTK_REQUIRED=2.4
10361 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10363 if test "X${with_pkg_config_prog}" != X; then
10364 PKG_CONFIG="${with_pkg_config_prog}"
10367 succeeded=no
10369 if test -z "$PKG_CONFIG"; then
10370 # Extract the first word of "pkg-config", so it can be a program name with args.
10371 set dummy pkg-config; ac_word=$2
10372 echo "$as_me:$LINENO: checking for $ac_word" >&5
10373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10374 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377 case $PKG_CONFIG in
10378 [\\/]* | ?:[\\/]*)
10379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383 for as_dir in $PATH
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 for ac_exec_ext in '' $ac_executable_extensions; do
10388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10391 break 2
10393 done
10394 done
10396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10398 esac
10400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10402 if test -n "$PKG_CONFIG"; then
10403 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10404 echo "${ECHO_T}$PKG_CONFIG" >&6
10405 else
10406 echo "$as_me:$LINENO: result: no" >&5
10407 echo "${ECHO_T}no" >&6
10412 if test "$PKG_CONFIG" = "no" ; then
10413 { { echo "$as_me:$LINENO: error:
10414 *** 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
10415 echo "$as_me: error:
10416 *** 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;}
10417 { (exit 1); exit 1; }; }
10418 else
10419 PKG_CONFIG_MIN_VERSION=0.9.0
10420 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10421 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10422 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10424 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10425 echo "$as_me:$LINENO: result: yes" >&5
10426 echo "${ECHO_T}yes" >&6
10427 succeeded=yes
10429 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10430 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10431 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10432 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10433 echo "${ECHO_T}$GTK_CFLAGS" >&6
10435 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10436 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10437 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10438 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10439 echo "${ECHO_T}$GTK_LIBS" >&6
10440 else
10441 echo "$as_me:$LINENO: result: no" >&5
10442 echo "${ECHO_T}no" >&6
10443 GTK_CFLAGS=""
10444 GTK_LIBS=""
10445 ## If we have a custom action on failure, don't print errors, but
10446 ## do set a variable so people can do so.
10447 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10448 echo $GTK_PKG_ERRORS
10453 else
10454 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10455 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10459 if test $succeeded = yes; then
10461 else
10462 { { 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
10463 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;}
10464 { (exit 1); exit 1; }; }
10469 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10470 CFLAGS="$CFLAGS $GTK_CFLAGS"
10471 LIBS="$GTK_LIBS $LIBS"
10472 GTK_COMPILES=no
10474 for ac_func in gtk_main
10476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10477 echo "$as_me:$LINENO: checking for $ac_func" >&5
10478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10479 if eval "test \"\${$as_ac_var+set}\" = set"; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10490 #define $ac_func innocuous_$ac_func
10492 /* System header to define __stub macros and hopefully few prototypes,
10493 which can conflict with char $ac_func (); below.
10494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10495 <limits.h> exists even on freestanding compilers. */
10497 #ifdef __STDC__
10498 # include <limits.h>
10499 #else
10500 # include <assert.h>
10501 #endif
10503 #undef $ac_func
10505 /* Override any gcc2 internal prototype to avoid an error. */
10506 #ifdef __cplusplus
10507 extern "C"
10509 #endif
10510 /* We use char because int might match the return type of a gcc2
10511 builtin and then its argument prototype would still apply. */
10512 char $ac_func ();
10513 /* The GNU C library defines this for functions which it implements
10514 to always fail with ENOSYS. Some functions are actually named
10515 something starting with __ and the normal name is an alias. */
10516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10517 choke me
10518 #else
10519 char (*f) () = $ac_func;
10520 #endif
10521 #ifdef __cplusplus
10523 #endif
10526 main ()
10528 return f != $ac_func;
10530 return 0;
10532 _ACEOF
10533 rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535 (eval $ac_link) 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try='test -z "$ac_c_werror_flag"
10543 || test ! -s conftest.err'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; } &&
10549 { ac_try='test -s conftest$ac_exeext'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 eval "$as_ac_var=yes"
10556 else
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 eval "$as_ac_var=no"
10562 rm -f conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10567 if test `eval echo '${'$as_ac_var'}'` = yes; then
10568 cat >>confdefs.h <<_ACEOF
10569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10570 _ACEOF
10571 GTK_COMPILES=yes
10573 done
10575 if test "${GTK_COMPILES}" != "yes"; then
10576 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10577 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10578 { (exit 1); exit 1; }; };
10581 HAVE_GTK=yes
10583 cat >>confdefs.h <<\_ACEOF
10584 #define HAVE_GTK 1
10585 _ACEOF
10587 USE_X_TOOLKIT=none
10589 if test "$with_toolkit_scroll_bars" != no; then
10590 with_toolkit_scroll_bars=yes
10593 HAVE_GTK_MULTIDISPLAY=no
10595 for ac_func in gdk_display_open
10597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10598 echo "$as_me:$LINENO: checking for $ac_func" >&5
10599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_var+set}\" = set"; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h. */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10611 #define $ac_func innocuous_$ac_func
10613 /* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char $ac_func (); below.
10615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616 <limits.h> exists even on freestanding compilers. */
10618 #ifdef __STDC__
10619 # include <limits.h>
10620 #else
10621 # include <assert.h>
10622 #endif
10624 #undef $ac_func
10626 /* Override any gcc2 internal prototype to avoid an error. */
10627 #ifdef __cplusplus
10628 extern "C"
10630 #endif
10631 /* We use char because int might match the return type of a gcc2
10632 builtin and then its argument prototype would still apply. */
10633 char $ac_func ();
10634 /* The GNU C library defines this for functions which it implements
10635 to always fail with ENOSYS. Some functions are actually named
10636 something starting with __ and the normal name is an alias. */
10637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10638 choke me
10639 #else
10640 char (*f) () = $ac_func;
10641 #endif
10642 #ifdef __cplusplus
10644 #endif
10647 main ()
10649 return f != $ac_func;
10651 return 0;
10653 _ACEOF
10654 rm -f conftest.$ac_objext conftest$ac_exeext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10656 (eval $ac_link) 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -z "$ac_c_werror_flag"
10664 || test ! -s conftest.err'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; } &&
10670 { ac_try='test -s conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 eval "$as_ac_var=yes"
10677 else
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 eval "$as_ac_var=no"
10683 rm -f conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10688 if test `eval echo '${'$as_ac_var'}'` = yes; then
10689 cat >>confdefs.h <<_ACEOF
10690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10691 _ACEOF
10692 HAVE_GTK_MULTIDISPLAY=yes
10694 done
10696 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10698 cat >>confdefs.h <<\_ACEOF
10699 #define HAVE_GTK_MULTIDISPLAY 1
10700 _ACEOF
10703 HAVE_GTK_FILE_SELECTION=no
10705 for ac_func in gtk_file_selection_new
10707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10708 echo "$as_me:$LINENO: checking for $ac_func" >&5
10709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10710 if eval "test \"\${$as_ac_var+set}\" = set"; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10721 #define $ac_func innocuous_$ac_func
10723 /* System header to define __stub macros and hopefully few prototypes,
10724 which can conflict with char $ac_func (); below.
10725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10726 <limits.h> exists even on freestanding compilers. */
10728 #ifdef __STDC__
10729 # include <limits.h>
10730 #else
10731 # include <assert.h>
10732 #endif
10734 #undef $ac_func
10736 /* Override any gcc2 internal prototype to avoid an error. */
10737 #ifdef __cplusplus
10738 extern "C"
10740 #endif
10741 /* We use char because int might match the return type of a gcc2
10742 builtin and then its argument prototype would still apply. */
10743 char $ac_func ();
10744 /* The GNU C library defines this for functions which it implements
10745 to always fail with ENOSYS. Some functions are actually named
10746 something starting with __ and the normal name is an alias. */
10747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10748 choke me
10749 #else
10750 char (*f) () = $ac_func;
10751 #endif
10752 #ifdef __cplusplus
10754 #endif
10757 main ()
10759 return f != $ac_func;
10761 return 0;
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766 (eval $ac_link) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag"
10774 || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest$ac_exeext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 eval "$as_ac_var=yes"
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 eval "$as_ac_var=no"
10793 rm -f conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10798 if test `eval echo '${'$as_ac_var'}'` = yes; then
10799 cat >>confdefs.h <<_ACEOF
10800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10801 _ACEOF
10802 HAVE_GTK_FILE_SELECTION=yes
10804 done
10807 HAVE_GTK_FILE_CHOOSER=no
10809 for ac_func in gtk_file_chooser_dialog_new
10811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10812 echo "$as_me:$LINENO: checking for $ac_func" >&5
10813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10814 if eval "test \"\${$as_ac_var+set}\" = set"; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10825 #define $ac_func innocuous_$ac_func
10827 /* System header to define __stub macros and hopefully few prototypes,
10828 which can conflict with char $ac_func (); below.
10829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10830 <limits.h> exists even on freestanding compilers. */
10832 #ifdef __STDC__
10833 # include <limits.h>
10834 #else
10835 # include <assert.h>
10836 #endif
10838 #undef $ac_func
10840 /* Override any gcc2 internal prototype to avoid an error. */
10841 #ifdef __cplusplus
10842 extern "C"
10844 #endif
10845 /* We use char because int might match the return type of a gcc2
10846 builtin and then its argument prototype would still apply. */
10847 char $ac_func ();
10848 /* The GNU C library defines this for functions which it implements
10849 to always fail with ENOSYS. Some functions are actually named
10850 something starting with __ and the normal name is an alias. */
10851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10852 choke me
10853 #else
10854 char (*f) () = $ac_func;
10855 #endif
10856 #ifdef __cplusplus
10858 #endif
10861 main ()
10863 return f != $ac_func;
10865 return 0;
10867 _ACEOF
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
10877 { ac_try='test -z "$ac_c_werror_flag"
10878 || test ! -s conftest.err'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest$ac_exeext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 eval "$as_ac_var=yes"
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 eval "$as_ac_var=no"
10897 rm -f conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10902 if test `eval echo '${'$as_ac_var'}'` = yes; then
10903 cat >>confdefs.h <<_ACEOF
10904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10905 _ACEOF
10906 HAVE_GTK_FILE_CHOOSER=yes
10908 done
10911 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10912 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_GTK_FILE_BOTH 1
10916 _ACEOF
10920 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10921 HAVE_GTK_AND_PTHREAD=no
10923 for ac_header in pthread.h
10925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10927 echo "$as_me:$LINENO: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10934 else
10935 # Is the header compilable?
10936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h. */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 $ac_includes_default
10945 #include <$ac_header>
10946 _ACEOF
10947 rm -f conftest.$ac_objext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949 (eval $ac_compile) 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag"
10957 || test ! -s conftest.err'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; } &&
10963 { ac_try='test -s conftest.$ac_objext'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_header_compiler=yes
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_header_compiler=no
10976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10978 echo "${ECHO_T}$ac_header_compiler" >&6
10980 # Is the header present?
10981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h. */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <$ac_header>
10990 _ACEOF
10991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null; then
10999 if test -s conftest.err; then
11000 ac_cpp_err=$ac_c_preproc_warn_flag
11001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11002 else
11003 ac_cpp_err=
11005 else
11006 ac_cpp_err=yes
11008 if test -z "$ac_cpp_err"; then
11009 ac_header_preproc=yes
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_header_preproc=no
11016 rm -f conftest.err conftest.$ac_ext
11017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11018 echo "${ECHO_T}$ac_header_preproc" >&6
11020 # So? What about this header?
11021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11022 yes:no: )
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11027 ac_header_preproc=yes
11029 no:yes:* )
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11043 cat <<\_ASBOX
11044 ## ------------------------------------------ ##
11045 ## Report this to the AC_PACKAGE_NAME lists. ##
11046 ## ------------------------------------------ ##
11047 _ASBOX
11049 sed "s/^/$as_me: WARNING: /" >&2
11051 esac
11052 echo "$as_me:$LINENO: checking for $ac_header" >&5
11053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057 eval "$as_ac_Header=\$ac_header_preproc"
11059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064 cat >>confdefs.h <<_ACEOF
11065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11066 _ACEOF
11070 done
11072 if test "$ac_cv_header_pthread_h"; then
11073 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11074 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
11075 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 ac_check_lib_save_LIBS=$LIBS
11079 LIBS="-lpthread $LIBS"
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11087 /* Override any gcc2 internal prototype to avoid an error. */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11093 char pthread_self ();
11095 main ()
11097 pthread_self ();
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 ac_cv_lib_pthread_pthread_self=yes
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 ac_cv_lib_pthread_pthread_self=no
11131 rm -f conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11136 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11137 if test $ac_cv_lib_pthread_pthread_self = yes; then
11138 HAVE_GTK_AND_PTHREAD=yes
11142 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11143 GTK_LIBS="$GTK_LIBS -lpthread"
11145 cat >>confdefs.h <<\_ACEOF
11146 #define HAVE_GTK_AND_PTHREAD 1
11147 _ACEOF
11153 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11154 if test x"${HAVE_X11R5}" = xyes; then
11155 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11156 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11157 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11167 #include <X11/Intrinsic.h>
11168 #include <X11/Xaw/Simple.h>
11170 main ()
11174 return 0;
11176 _ACEOF
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179 (eval $ac_link) 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -z "$ac_c_werror_flag"
11187 || test ! -s conftest.err'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; } &&
11193 { ac_try='test -s conftest$ac_exeext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 emacs_cv_x11_version_5_with_xaw=yes
11200 else
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 emacs_cv_x11_version_5_with_xaw=no
11206 rm -f conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11210 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11211 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11212 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11213 USE_X_TOOLKIT=LUCID
11214 else
11215 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11216 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11217 USE_X_TOOLKIT=none
11219 else
11220 USE_X_TOOLKIT=none
11224 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11226 if test "${USE_X_TOOLKIT}" != "none"; then
11227 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11228 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11229 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 #include <X11/Intrinsic.h>
11240 main ()
11242 #if XtSpecificationRelease < 6
11243 fail;
11244 #endif
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } &&
11259 { ac_try='test -z "$ac_c_werror_flag"
11260 || test ! -s conftest.err'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest$ac_exeext'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
11272 emacs_cv_x11_toolkit_version_6=yes
11273 else
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 emacs_cv_x11_toolkit_version_6=no
11279 rm -f conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11283 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11284 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11285 echo "$as_me:$LINENO: result: 6 or newer" >&5
11286 echo "${ECHO_T}6 or newer" >&6
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_X11XTR6 1
11290 _ACEOF
11292 else
11293 echo "$as_me:$LINENO: result: before 6" >&5
11294 echo "${ECHO_T}before 6" >&6
11297 OLDLIBS="$LIBS"
11298 if test x$HAVE_X11XTR6 = xyes; then
11299 LIBS="-lXt -lSM -lICE $LIBS"
11300 else
11301 LIBS="-lXt $LIBS"
11304 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11305 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11306 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 ac_check_lib_save_LIBS=$LIBS
11310 LIBS="-lXmu $LIBS"
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11318 /* Override any gcc2 internal prototype to avoid an error. */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 /* We use char because int might match the return type of a gcc2
11323 builtin and then its argument prototype would still apply. */
11324 char XmuConvertStandardSelection ();
11326 main ()
11328 XmuConvertStandardSelection ();
11330 return 0;
11332 _ACEOF
11333 rm -f conftest.$ac_objext conftest$ac_exeext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11335 (eval $ac_link) 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -z "$ac_c_werror_flag"
11343 || test ! -s conftest.err'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest$ac_exeext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11362 rm -f conftest.err conftest.$ac_objext \
11363 conftest$ac_exeext conftest.$ac_ext
11364 LIBS=$ac_check_lib_save_LIBS
11366 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11367 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11368 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11369 cat >>confdefs.h <<_ACEOF
11370 #define HAVE_LIBXMU 1
11371 _ACEOF
11373 LIBS="-lXmu $LIBS"
11377 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11380 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11381 if test "${HAVE_X11}" = "yes"; then
11382 if test "${USE_X_TOOLKIT}" != "none"; then
11384 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11385 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11386 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389 ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-lXext $LIBS"
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h. */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11398 /* Override any gcc2 internal prototype to avoid an error. */
11399 #ifdef __cplusplus
11400 extern "C"
11401 #endif
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11404 char XShapeQueryExtension ();
11406 main ()
11408 XShapeQueryExtension ();
11410 return 0;
11412 _ACEOF
11413 rm -f conftest.$ac_objext conftest$ac_exeext
11414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11415 (eval $ac_link) 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -z "$ac_c_werror_flag"
11423 || test ! -s conftest.err'
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); }; } &&
11429 { ac_try='test -s conftest$ac_exeext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_lib_Xext_XShapeQueryExtension=yes
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_cv_lib_Xext_XShapeQueryExtension=no
11442 rm -f conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11446 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11447 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11448 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11449 cat >>confdefs.h <<_ACEOF
11450 #define HAVE_LIBXEXT 1
11451 _ACEOF
11453 LIBS="-lXext $LIBS"
11460 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11461 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11462 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11463 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
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 <Xm/Xm.h>
11474 main ()
11476 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11477 int x = 5;
11478 #else
11479 Motif version prior to 2.1.
11480 #endif
11482 return 0;
11484 _ACEOF
11485 rm -f conftest.$ac_objext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_c_werror_flag"
11495 || test ! -s conftest.err'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest.$ac_objext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 emacs_cv_motif_version_2_1=yes
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 emacs_cv_motif_version_2_1=no
11514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11517 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11518 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11519 if test $emacs_cv_motif_version_2_1 = yes; then
11520 HAVE_LIBXP=no
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_MOTIF_2_1 1
11524 _ACEOF
11526 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11527 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11528 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531 ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-lXp $LIBS"
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11540 /* Override any gcc2 internal prototype to avoid an error. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 /* We use char because int might match the return type of a gcc2
11545 builtin and then its argument prototype would still apply. */
11546 char XpCreateContext ();
11548 main ()
11550 XpCreateContext ();
11552 return 0;
11554 _ACEOF
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11557 (eval $ac_link) 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -z "$ac_c_werror_flag"
11565 || test ! -s conftest.err'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; } &&
11571 { ac_try='test -s conftest$ac_exeext'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 ac_cv_lib_Xp_XpCreateContext=yes
11578 else
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 ac_cv_lib_Xp_XpCreateContext=no
11584 rm -f conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11586 LIBS=$ac_check_lib_save_LIBS
11588 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11589 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11590 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11591 HAVE_LIBXP=yes
11594 if test ${HAVE_LIBXP} = yes; then
11596 cat >>confdefs.h <<\_ACEOF
11597 #define HAVE_LIBXP 1
11598 _ACEOF
11601 else
11602 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11603 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11604 if test "${emacs_cv_lesstif+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607 # We put this in CFLAGS temporarily to precede other -I options
11608 # that might be in CFLAGS temporarily.
11609 # We put this in CPPFLAGS where it precedes the other -I options.
11610 OLD_CPPFLAGS=$CPPFLAGS
11611 OLD_CFLAGS=$CFLAGS
11612 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11613 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h. */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11622 main ()
11624 int x = 5;
11626 return 0;
11628 _ACEOF
11629 rm -f conftest.$ac_objext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 emacs_cv_lesstif=yes
11652 else
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 emacs_cv_lesstif=no
11658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11661 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11662 if test $emacs_cv_lesstif = yes; then
11663 # Make sure this -I option remains in CPPFLAGS after it is set
11664 # back to REAL_CPPFLAGS.
11665 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11666 # have those other -I options anyway. Ultimately, having this
11667 # directory ultimately in CPPFLAGS will be enough.
11668 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11669 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11670 else
11671 CFLAGS=$OLD_CFLAGS
11672 CPPFLAGS=$OLD_CPPFLAGS
11677 ### Is -lXaw3d available?
11678 HAVE_XAW3D=no
11679 if test "${HAVE_X11}" = "yes"; then
11680 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11681 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11682 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11683 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <X11/Xaw3d/Scrollbar.h>
11693 _ACEOF
11694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } >/dev/null; then
11702 if test -s conftest.err; then
11703 ac_cpp_err=$ac_c_preproc_warn_flag
11704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11705 else
11706 ac_cpp_err=
11708 else
11709 ac_cpp_err=yes
11711 if test -z "$ac_cpp_err"; then
11712 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11713 else
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11719 rm -f conftest.err conftest.$ac_ext
11721 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11722 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11723 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11724 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11725 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11726 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729 ac_check_lib_save_LIBS=$LIBS
11730 LIBS="-lXaw3d $LIBS"
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11738 /* Override any gcc2 internal prototype to avoid an error. */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 /* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11744 char XawScrollbarSetThumb ();
11746 main ()
11748 XawScrollbarSetThumb ();
11750 return 0;
11752 _ACEOF
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11755 (eval $ac_link) 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_c_werror_flag"
11763 || test ! -s conftest.err'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest$ac_exeext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11776 else
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11782 rm -f conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11784 LIBS=$ac_check_lib_save_LIBS
11786 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11787 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11788 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11789 HAVE_XAW3D=yes
11795 if test "${HAVE_XAW3D}" = "yes"; then
11797 cat >>confdefs.h <<\_ACEOF
11798 #define HAVE_XAW3D 1
11799 _ACEOF
11807 USE_TOOLKIT_SCROLL_BARS=no
11808 if test "${with_toolkit_scroll_bars}" != "no"; then
11809 if test "${USE_X_TOOLKIT}" != "none"; then
11810 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11811 cat >>confdefs.h <<\_ACEOF
11812 #define USE_TOOLKIT_SCROLL_BARS 1
11813 _ACEOF
11815 HAVE_XAW3D=no
11816 USE_TOOLKIT_SCROLL_BARS=yes
11817 elif test "${HAVE_XAW3D}" = "yes"; then
11818 cat >>confdefs.h <<\_ACEOF
11819 #define USE_TOOLKIT_SCROLL_BARS 1
11820 _ACEOF
11822 USE_TOOLKIT_SCROLL_BARS=yes
11824 elif test "${HAVE_GTK}" = "yes"; then
11825 cat >>confdefs.h <<\_ACEOF
11826 #define USE_TOOLKIT_SCROLL_BARS 1
11827 _ACEOF
11829 USE_TOOLKIT_SCROLL_BARS=yes
11830 elif test "${HAVE_CARBON}" = "yes"; then
11831 cat >>confdefs.h <<\_ACEOF
11832 #define USE_TOOLKIT_SCROLL_BARS 1
11833 _ACEOF
11835 USE_TOOLKIT_SCROLL_BARS=yes
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11846 #include <X11/Xlib.h>
11847 #include <X11/Xresource.h>
11849 main ()
11851 XIMProc callback;
11853 return 0;
11855 _ACEOF
11856 rm -f conftest.$ac_objext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>conftest.er1
11859 ac_status=$?
11860 grep -v '^ *+' conftest.er1 >conftest.err
11861 rm -f conftest.er1
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -z "$ac_c_werror_flag"
11866 || test ! -s conftest.err'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest.$ac_objext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 HAVE_XIM=yes
11880 cat >>confdefs.h <<\_ACEOF
11881 #define HAVE_XIM 1
11882 _ACEOF
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 HAVE_XIM=no
11890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11893 if test "${with_xim}" != "no"; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define USE_XIM 1
11897 _ACEOF
11902 if test "${HAVE_XIM}" != "no"; then
11903 late_CFLAGS=$CFLAGS
11904 if test "$GCC" = yes; then
11905 CFLAGS="$CFLAGS --pedantic-errors"
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11914 #include <X11/Xlib.h>
11915 #include <X11/Xresource.h>
11917 main ()
11919 Display *display;
11920 XrmDatabase db;
11921 char *res_name;
11922 char *res_class;
11923 XIMProc callback;
11924 XPointer *client_data;
11925 #ifndef __GNUC__
11926 /* If we're not using GCC, it's probably not XFree86, and this is
11927 probably right, but we can't use something like --pedantic-errors. */
11928 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11929 char*, XIMProc, XPointer*);
11930 #endif
11931 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11932 client_data);
11934 return 0;
11936 _ACEOF
11937 rm -f conftest.$ac_objext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939 (eval $ac_compile) 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 emacs_cv_arg6_star=yes
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11967 if test "$emacs_cv_arg6_star" = yes; then
11968 cat >>confdefs.h <<\_ACEOF
11969 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11970 _ACEOF
11972 else
11973 cat >>confdefs.h <<\_ACEOF
11974 #define XRegisterIMInstantiateCallback_arg6 XPointer
11975 _ACEOF
11978 CFLAGS=$late_CFLAGS
11981 ### Use -lXpm if available, unless `--with-xpm=no'.
11982 HAVE_XPM=no
11983 if test "${HAVE_X11}" = "yes"; then
11984 if test "${with_xpm}" != "no"; then
11985 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11986 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11987 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11988 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11992 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11993 else
11994 # Is the header compilable?
11995 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11996 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 $ac_includes_default
12004 #include <X11/xpm.h>
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -z "$ac_c_werror_flag"
12016 || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest.$ac_objext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_header_compiler=yes
12029 else
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_header_compiler=no
12035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12037 echo "${ECHO_T}$ac_header_compiler" >&6
12039 # Is the header present?
12040 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12041 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 #include <X11/xpm.h>
12049 _ACEOF
12050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } >/dev/null; then
12058 if test -s conftest.err; then
12059 ac_cpp_err=$ac_c_preproc_warn_flag
12060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12061 else
12062 ac_cpp_err=
12064 else
12065 ac_cpp_err=yes
12067 if test -z "$ac_cpp_err"; then
12068 ac_header_preproc=yes
12069 else
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 ac_header_preproc=no
12075 rm -f conftest.err conftest.$ac_ext
12076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12077 echo "${ECHO_T}$ac_header_preproc" >&6
12079 # So? What about this header?
12080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12081 yes:no: )
12082 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12083 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12085 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12086 ac_header_preproc=yes
12088 no:yes:* )
12089 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12090 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12092 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12094 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12096 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12098 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12100 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12102 cat <<\_ASBOX
12103 ## ------------------------------------------ ##
12104 ## Report this to the AC_PACKAGE_NAME lists. ##
12105 ## ------------------------------------------ ##
12106 _ASBOX
12108 sed "s/^/$as_me: WARNING: /" >&2
12110 esac
12111 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12112 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12113 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116 ac_cv_header_X11_xpm_h=$ac_header_preproc
12118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12119 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12122 if test $ac_cv_header_X11_xpm_h = yes; then
12123 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12124 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12125 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lXpm -lX11 $LIBS"
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12137 /* Override any gcc2 internal prototype to avoid an error. */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 /* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12143 char XpmReadFileToPixmap ();
12145 main ()
12147 XpmReadFileToPixmap ();
12149 return 0;
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>conftest.er1
12155 ac_status=$?
12156 grep -v '^ *+' conftest.er1 >conftest.err
12157 rm -f conftest.er1
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -z "$ac_c_werror_flag"
12162 || test ! -s conftest.err'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; } &&
12168 { ac_try='test -s conftest$ac_exeext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12175 else
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12181 rm -f conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12185 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12186 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12187 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12188 HAVE_XPM=yes
12194 if test "${HAVE_XPM}" = "yes"; then
12195 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12196 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h. */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 #include "X11/xpm.h"
12204 #ifndef XpmReturnAllocPixels
12205 no_return_alloc_pixels
12206 #endif
12208 _ACEOF
12209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12210 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12211 HAVE_XPM=no
12212 else
12213 HAVE_XPM=yes
12215 rm -f conftest*
12218 if test "${HAVE_XPM}" = "yes"; then
12219 echo "$as_me:$LINENO: result: yes" >&5
12220 echo "${ECHO_T}yes" >&6
12221 else
12222 echo "$as_me:$LINENO: result: no" >&5
12223 echo "${ECHO_T}no" >&6
12228 if test "${HAVE_XPM}" = "yes"; then
12230 cat >>confdefs.h <<\_ACEOF
12231 #define HAVE_XPM 1
12232 _ACEOF
12237 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12238 HAVE_JPEG=no
12239 if test "${HAVE_X11}" = "yes"; then
12240 if test "${with_jpeg}" != "no"; then
12241 if test "${ac_cv_header_jerror_h+set}" = set; then
12242 echo "$as_me:$LINENO: checking for jerror.h" >&5
12243 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12244 if test "${ac_cv_header_jerror_h+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12248 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12249 else
12250 # Is the header compilable?
12251 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12252 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h. */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 $ac_includes_default
12260 #include <jerror.h>
12261 _ACEOF
12262 rm -f conftest.$ac_objext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264 (eval $ac_compile) 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -z "$ac_c_werror_flag"
12272 || test ! -s conftest.err'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest.$ac_objext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_header_compiler=yes
12285 else
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_header_compiler=no
12291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12293 echo "${ECHO_T}$ac_header_compiler" >&6
12295 # Is the header present?
12296 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12297 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 #include <jerror.h>
12305 _ACEOF
12306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12308 ac_status=$?
12309 grep -v '^ *+' conftest.er1 >conftest.err
12310 rm -f conftest.er1
12311 cat conftest.err >&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } >/dev/null; then
12314 if test -s conftest.err; then
12315 ac_cpp_err=$ac_c_preproc_warn_flag
12316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12317 else
12318 ac_cpp_err=
12320 else
12321 ac_cpp_err=yes
12323 if test -z "$ac_cpp_err"; then
12324 ac_header_preproc=yes
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12329 ac_header_preproc=no
12331 rm -f conftest.err conftest.$ac_ext
12332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12333 echo "${ECHO_T}$ac_header_preproc" >&6
12335 # So? What about this header?
12336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12337 yes:no: )
12338 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12339 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12341 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12342 ac_header_preproc=yes
12344 no:yes:* )
12345 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12346 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12348 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12350 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12352 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12354 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12356 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12358 cat <<\_ASBOX
12359 ## ------------------------------------------ ##
12360 ## Report this to the AC_PACKAGE_NAME lists. ##
12361 ## ------------------------------------------ ##
12362 _ASBOX
12364 sed "s/^/$as_me: WARNING: /" >&2
12366 esac
12367 echo "$as_me:$LINENO: checking for jerror.h" >&5
12368 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12369 if test "${ac_cv_header_jerror_h+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372 ac_cv_header_jerror_h=$ac_header_preproc
12374 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12375 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12378 if test $ac_cv_header_jerror_h = yes; then
12379 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12380 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12381 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384 ac_check_lib_save_LIBS=$LIBS
12385 LIBS="-ljpeg $LIBS"
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12393 /* Override any gcc2 internal prototype to avoid an error. */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 /* We use char because int might match the return type of a gcc2
12398 builtin and then its argument prototype would still apply. */
12399 char jpeg_destroy_compress ();
12401 main ()
12403 jpeg_destroy_compress ();
12405 return 0;
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12437 rm -f conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12441 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12442 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12443 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12444 HAVE_JPEG=yes
12453 if test "${HAVE_JPEG}" = "yes"; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_JPEG 1
12456 _ACEOF
12458 cat >conftest.$ac_ext <<_ACEOF
12459 /* confdefs.h. */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12464 #include <jpeglib.h>
12465 version=JPEG_LIB_VERSION
12467 _ACEOF
12468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12469 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12470 cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_JPEG 1
12472 _ACEOF
12474 else
12475 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12476 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12477 HAVE_JPEG=no
12479 rm -f conftest*
12484 ### Use -lpng if available, unless `--with-png=no'.
12485 HAVE_PNG=no
12486 if test "${HAVE_X11}" = "yes"; then
12487 if test "${with_png}" != "no"; then
12488 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12489 # in /usr/include/libpng.
12492 for ac_header in png.h libpng/png.h
12494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12496 echo "$as_me:$LINENO: checking for $ac_header" >&5
12497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12503 else
12504 # Is the header compilable?
12505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h. */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 $ac_includes_default
12514 #include <$ac_header>
12515 _ACEOF
12516 rm -f conftest.$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>conftest.er1
12519 ac_status=$?
12520 grep -v '^ *+' conftest.er1 >conftest.err
12521 rm -f conftest.er1
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try='test -z "$ac_c_werror_flag"
12526 || test ! -s conftest.err'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; } &&
12532 { ac_try='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_header_compiler=yes
12539 else
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 ac_header_compiler=no
12545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 echo "${ECHO_T}$ac_header_compiler" >&6
12549 # Is the header present?
12550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 #include <$ac_header>
12559 _ACEOF
12560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } >/dev/null; then
12568 if test -s conftest.err; then
12569 ac_cpp_err=$ac_c_preproc_warn_flag
12570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12571 else
12572 ac_cpp_err=
12574 else
12575 ac_cpp_err=yes
12577 if test -z "$ac_cpp_err"; then
12578 ac_header_preproc=yes
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_header_preproc=no
12585 rm -f conftest.err conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12591 yes:no: )
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12596 ac_header_preproc=yes
12598 no:yes:* )
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12612 cat <<\_ASBOX
12613 ## ------------------------------------------ ##
12614 ## Report this to the AC_PACKAGE_NAME lists. ##
12615 ## ------------------------------------------ ##
12616 _ASBOX
12618 sed "s/^/$as_me: WARNING: /" >&2
12620 esac
12621 echo "$as_me:$LINENO: checking for $ac_header" >&5
12622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626 eval "$as_ac_Header=\$ac_header_preproc"
12628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12633 cat >>confdefs.h <<_ACEOF
12634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12635 _ACEOF
12639 done
12641 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12642 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12643 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12644 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 ac_check_lib_save_LIBS=$LIBS
12648 LIBS="-lpng -lz -lm $LIBS"
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12656 /* Override any gcc2 internal prototype to avoid an error. */
12657 #ifdef __cplusplus
12658 extern "C"
12659 #endif
12660 /* We use char because int might match the return type of a gcc2
12661 builtin and then its argument prototype would still apply. */
12662 char png_get_channels ();
12664 main ()
12666 png_get_channels ();
12668 return 0;
12670 _ACEOF
12671 rm -f conftest.$ac_objext conftest$ac_exeext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12673 (eval $ac_link) 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag"
12681 || test ! -s conftest.err'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; } &&
12687 { ac_try='test -s conftest$ac_exeext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_cv_lib_png_png_get_channels=yes
12694 else
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ac_cv_lib_png_png_get_channels=no
12700 rm -f conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702 LIBS=$ac_check_lib_save_LIBS
12704 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12705 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12706 if test $ac_cv_lib_png_png_get_channels = yes; then
12707 HAVE_PNG=yes
12713 if test "${HAVE_PNG}" = "yes"; then
12715 cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_PNG 1
12717 _ACEOF
12722 ### Use -ltiff if available, unless `--with-tiff=no'.
12723 HAVE_TIFF=no
12724 if test "${HAVE_X11}" = "yes"; then
12725 if test "${with_tiff}" != "no"; then
12726 if test "${ac_cv_header_tiffio_h+set}" = set; then
12727 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12728 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12729 if test "${ac_cv_header_tiffio_h+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12733 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12734 else
12735 # Is the header compilable?
12736 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12737 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12738 cat >conftest.$ac_ext <<_ACEOF
12739 /* confdefs.h. */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 $ac_includes_default
12745 #include <tiffio.h>
12746 _ACEOF
12747 rm -f conftest.$ac_objext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749 (eval $ac_compile) 2>conftest.er1
12750 ac_status=$?
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -z "$ac_c_werror_flag"
12757 || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest.$ac_objext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_header_compiler=yes
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ac_header_compiler=no
12776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12778 echo "${ECHO_T}$ac_header_compiler" >&6
12780 # Is the header present?
12781 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12782 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 #include <tiffio.h>
12790 _ACEOF
12791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } >/dev/null; then
12799 if test -s conftest.err; then
12800 ac_cpp_err=$ac_c_preproc_warn_flag
12801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12802 else
12803 ac_cpp_err=
12805 else
12806 ac_cpp_err=yes
12808 if test -z "$ac_cpp_err"; then
12809 ac_header_preproc=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_header_preproc=no
12816 rm -f conftest.err conftest.$ac_ext
12817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12818 echo "${ECHO_T}$ac_header_preproc" >&6
12820 # So? What about this header?
12821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12822 yes:no: )
12823 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12824 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12826 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12827 ac_header_preproc=yes
12829 no:yes:* )
12830 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12831 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12833 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12835 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12837 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12839 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12841 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12843 cat <<\_ASBOX
12844 ## ------------------------------------------ ##
12845 ## Report this to the AC_PACKAGE_NAME lists. ##
12846 ## ------------------------------------------ ##
12847 _ASBOX
12849 sed "s/^/$as_me: WARNING: /" >&2
12851 esac
12852 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12853 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12854 if test "${ac_cv_header_tiffio_h+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857 ac_cv_header_tiffio_h=$ac_header_preproc
12859 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12863 if test $ac_cv_header_tiffio_h = yes; then
12864 tifflibs="-lz -lm"
12865 # At least one tiff package requires the jpeg library.
12866 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12867 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12868 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12869 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872 ac_check_lib_save_LIBS=$LIBS
12873 LIBS="-ltiff $tifflibs $LIBS"
12874 cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h. */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12881 /* Override any gcc2 internal prototype to avoid an error. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 /* We use char because int might match the return type of a gcc2
12886 builtin and then its argument prototype would still apply. */
12887 char TIFFGetVersion ();
12889 main ()
12891 TIFFGetVersion ();
12893 return 0;
12895 _ACEOF
12896 rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12898 (eval $ac_link) 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -z "$ac_c_werror_flag"
12906 || test ! -s conftest.err'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 ac_cv_lib_tiff_TIFFGetVersion=yes
12919 else
12920 echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12923 ac_cv_lib_tiff_TIFFGetVersion=no
12925 rm -f conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12929 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12930 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12931 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12932 HAVE_TIFF=yes
12940 if test "${HAVE_TIFF}" = "yes"; then
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_TIFF 1
12944 _ACEOF
12949 ### Use -lgif if available, unless `--with-gif=no'.
12950 HAVE_GIF=no
12951 if test "${HAVE_X11}" = "yes"; then
12952 if test "${with_gif}" != "no"; then
12953 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12954 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12955 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12956 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12960 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12961 else
12962 # Is the header compilable?
12963 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12964 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972 #include <gif_lib.h>
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 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_objext'
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_header_compiler=yes
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_header_compiler=no
13003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13005 echo "${ECHO_T}$ac_header_compiler" >&6
13007 # Is the header present?
13008 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13009 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13010 cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h. */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 #include <gif_lib.h>
13017 _ACEOF
13018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } >/dev/null; then
13026 if test -s conftest.err; then
13027 ac_cpp_err=$ac_c_preproc_warn_flag
13028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13029 else
13030 ac_cpp_err=
13032 else
13033 ac_cpp_err=yes
13035 if test -z "$ac_cpp_err"; then
13036 ac_header_preproc=yes
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 ac_header_preproc=no
13043 rm -f conftest.err conftest.$ac_ext
13044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13045 echo "${ECHO_T}$ac_header_preproc" >&6
13047 # So? What about this header?
13048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13049 yes:no: )
13050 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13051 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13053 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13054 ac_header_preproc=yes
13056 no:yes:* )
13057 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13058 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13059 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13060 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13061 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13062 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13064 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13066 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13068 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13070 cat <<\_ASBOX
13071 ## ------------------------------------------ ##
13072 ## Report this to the AC_PACKAGE_NAME lists. ##
13073 ## ------------------------------------------ ##
13074 _ASBOX
13076 sed "s/^/$as_me: WARNING: /" >&2
13078 esac
13079 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13080 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13081 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084 ac_cv_header_gif_lib_h=$ac_header_preproc
13086 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13087 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13090 if test $ac_cv_header_gif_lib_h = yes; then
13091 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13092 # Earlier versions can crash Emacs.
13093 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13094 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13095 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 else
13098 ac_check_lib_save_LIBS=$LIBS
13099 LIBS="-lungif $LIBS"
13100 cat >conftest.$ac_ext <<_ACEOF
13101 /* confdefs.h. */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13107 /* Override any gcc2 internal prototype to avoid an error. */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 /* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13113 char EGifPutExtensionLast ();
13115 main ()
13117 EGifPutExtensionLast ();
13119 return 0;
13121 _ACEOF
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13124 (eval $ac_link) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
13131 { ac_try='test -z "$ac_c_werror_flag"
13132 || test ! -s conftest.err'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest$ac_exeext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13145 else
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 ac_cv_lib_ungif_EGifPutExtensionLast=no
13151 rm -f conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13153 LIBS=$ac_check_lib_save_LIBS
13155 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13156 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13157 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13158 HAVE_GIF=yes
13166 if test "${HAVE_GIF}" = "yes"; then
13168 cat >>confdefs.h <<\_ACEOF
13169 #define HAVE_GIF 1
13170 _ACEOF
13175 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13176 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13177 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13178 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13182 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13183 else
13184 # Is the header compilable?
13185 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13186 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13187 cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h. */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193 $ac_includes_default
13194 #include <malloc/malloc.h>
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_c_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_header_compiler=yes
13219 else
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 ac_header_compiler=no
13225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13227 echo "${ECHO_T}$ac_header_compiler" >&6
13229 # Is the header present?
13230 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13231 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h. */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 #include <malloc/malloc.h>
13239 _ACEOF
13240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } >/dev/null; then
13248 if test -s conftest.err; then
13249 ac_cpp_err=$ac_c_preproc_warn_flag
13250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13251 else
13252 ac_cpp_err=
13254 else
13255 ac_cpp_err=yes
13257 if test -z "$ac_cpp_err"; then
13258 ac_header_preproc=yes
13259 else
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 ac_header_preproc=no
13265 rm -f conftest.err conftest.$ac_ext
13266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13267 echo "${ECHO_T}$ac_header_preproc" >&6
13269 # So? What about this header?
13270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13271 yes:no: )
13272 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13273 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13275 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13276 ac_header_preproc=yes
13278 no:yes:* )
13279 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13280 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13282 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13284 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13286 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13288 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13290 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13292 cat <<\_ASBOX
13293 ## ------------------------------------------ ##
13294 ## Report this to the AC_PACKAGE_NAME lists. ##
13295 ## ------------------------------------------ ##
13296 _ASBOX
13298 sed "s/^/$as_me: WARNING: /" >&2
13300 esac
13301 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13302 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13303 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13308 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13309 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13312 if test $ac_cv_header_malloc_malloc_h = yes; then
13314 cat >>confdefs.h <<\_ACEOF
13315 #define HAVE_MALLOC_MALLOC_H 1
13316 _ACEOF
13322 ### Use Mac OS X Carbon API to implement GUI.
13323 if test "${HAVE_CARBON}" = "yes"; then
13325 cat >>confdefs.h <<\_ACEOF
13326 #define HAVE_CARBON 1
13327 _ACEOF
13329 ## Specify the install directory
13330 carbon_appdir=
13331 if test "${carbon_appdir_x}" != ""; then
13332 case ${carbon_appdir_x} in
13333 y | ye | yes) carbon_appdir=/Applications ;;
13334 * ) carbon_appdir=${carbon_appdir_x} ;;
13335 esac
13337 # We also have mouse menus.
13338 HAVE_MENUS=yes
13341 ### Use session management (-lSM -lICE) if available
13342 HAVE_X_SM=no
13343 if test "${HAVE_X11}" = "yes"; then
13344 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13345 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13346 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13347 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13351 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13352 else
13353 # Is the header compilable?
13354 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13355 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 $ac_includes_default
13363 #include <X11/SM/SMlib.h>
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag"
13375 || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_header_compiler=yes
13388 else
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_header_compiler=no
13394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13396 echo "${ECHO_T}$ac_header_compiler" >&6
13398 # Is the header present?
13399 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13400 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13401 cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h. */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 #include <X11/SM/SMlib.h>
13408 _ACEOF
13409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } >/dev/null; then
13417 if test -s conftest.err; then
13418 ac_cpp_err=$ac_c_preproc_warn_flag
13419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13420 else
13421 ac_cpp_err=
13423 else
13424 ac_cpp_err=yes
13426 if test -z "$ac_cpp_err"; then
13427 ac_header_preproc=yes
13428 else
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ac_header_preproc=no
13434 rm -f conftest.err conftest.$ac_ext
13435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13436 echo "${ECHO_T}$ac_header_preproc" >&6
13438 # So? What about this header?
13439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13440 yes:no: )
13441 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13442 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13444 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13445 ac_header_preproc=yes
13447 no:yes:* )
13448 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13449 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13451 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13453 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13455 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13457 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13459 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13461 cat <<\_ASBOX
13462 ## ------------------------------------------ ##
13463 ## Report this to the AC_PACKAGE_NAME lists. ##
13464 ## ------------------------------------------ ##
13465 _ASBOX
13467 sed "s/^/$as_me: WARNING: /" >&2
13469 esac
13470 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13471 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13472 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13477 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13478 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13481 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13482 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13483 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13484 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487 ac_check_lib_save_LIBS=$LIBS
13488 LIBS="-lSM -lICE $LIBS"
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13496 /* Override any gcc2 internal prototype to avoid an error. */
13497 #ifdef __cplusplus
13498 extern "C"
13499 #endif
13500 /* We use char because int might match the return type of a gcc2
13501 builtin and then its argument prototype would still apply. */
13502 char SmcOpenConnection ();
13504 main ()
13506 SmcOpenConnection ();
13508 return 0;
13510 _ACEOF
13511 rm -f conftest.$ac_objext conftest$ac_exeext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13513 (eval $ac_link) 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
13520 { ac_try='test -z "$ac_c_werror_flag"
13521 || test ! -s conftest.err'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_lib_SM_SmcOpenConnection=yes
13534 else
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_cv_lib_SM_SmcOpenConnection=no
13540 rm -f conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13542 LIBS=$ac_check_lib_save_LIBS
13544 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13545 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13546 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13547 HAVE_X_SM=yes
13554 if test "${HAVE_X_SM}" = "yes"; then
13556 cat >>confdefs.h <<\_ACEOF
13557 #define HAVE_X_SM 1
13558 _ACEOF
13560 case "$LIBS" in
13561 *-lSM*) ;;
13562 *) LIBS="-lSM -lICE $LIBS" ;;
13563 esac
13567 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13568 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13569 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13570 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 #include <netdb.h>
13581 main ()
13583 return h_errno;
13585 return 0;
13587 _ACEOF
13588 rm -f conftest.$ac_objext conftest$ac_exeext
13589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13590 (eval $ac_link) 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } &&
13597 { ac_try='test -z "$ac_c_werror_flag"
13598 || test ! -s conftest.err'
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; } &&
13604 { ac_try='test -s conftest$ac_exeext'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
13610 emacs_cv_netdb_declares_h_errno=yes
13611 else
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13615 emacs_cv_netdb_declares_h_errno=no
13617 rm -f conftest.err conftest.$ac_objext \
13618 conftest$ac_exeext conftest.$ac_ext
13620 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13621 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13622 if test $emacs_cv_netdb_declares_h_errno = yes; then
13624 cat >>confdefs.h <<\_ACEOF
13625 #define HAVE_H_ERRNO 1
13626 _ACEOF
13630 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13631 # for constant arguments. Useless!
13632 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13633 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13634 if test "${ac_cv_working_alloca_h+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h. */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 #include <alloca.h>
13645 main ()
13647 char *p = (char *) alloca (2 * sizeof (int));
13649 return 0;
13651 _ACEOF
13652 rm -f conftest.$ac_objext conftest$ac_exeext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13654 (eval $ac_link) 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag"
13662 || test ! -s conftest.err'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest$ac_exeext'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_cv_working_alloca_h=yes
13675 else
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_cv_working_alloca_h=no
13681 rm -f conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13684 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13685 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13686 if test $ac_cv_working_alloca_h = yes; then
13688 cat >>confdefs.h <<\_ACEOF
13689 #define HAVE_ALLOCA_H 1
13690 _ACEOF
13694 echo "$as_me:$LINENO: checking for alloca" >&5
13695 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13696 if test "${ac_cv_func_alloca_works+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h. */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13705 #ifdef __GNUC__
13706 # define alloca __builtin_alloca
13707 #else
13708 # ifdef _MSC_VER
13709 # include <malloc.h>
13710 # define alloca _alloca
13711 # else
13712 # if HAVE_ALLOCA_H
13713 # include <alloca.h>
13714 # else
13715 # ifdef _AIX
13716 #pragma alloca
13717 # else
13718 # ifndef alloca /* predefined by HP cc +Olibcalls */
13719 char *alloca ();
13720 # endif
13721 # endif
13722 # endif
13723 # endif
13724 #endif
13727 main ()
13729 char *p = (char *) alloca (1);
13731 return 0;
13733 _ACEOF
13734 rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag"
13744 || test ! -s conftest.err'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; } &&
13750 { ac_try='test -s conftest$ac_exeext'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_cv_func_alloca_works=yes
13757 else
13758 echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13761 ac_cv_func_alloca_works=no
13763 rm -f conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13767 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13769 if test $ac_cv_func_alloca_works = yes; then
13771 cat >>confdefs.h <<\_ACEOF
13772 #define HAVE_ALLOCA 1
13773 _ACEOF
13775 else
13776 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13777 # that cause trouble. Some versions do not even contain alloca or
13778 # contain a buggy version. If you still want to use their alloca,
13779 # use ar to extract alloca.o from them instead of compiling alloca.c.
13781 ALLOCA=alloca.$ac_objext
13783 cat >>confdefs.h <<\_ACEOF
13784 #define C_ALLOCA 1
13785 _ACEOF
13788 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13789 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13790 if test "${ac_cv_os_cray+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #if defined(CRAY) && ! defined(CRAY2)
13800 webecray
13801 #else
13802 wenotbecray
13803 #endif
13805 _ACEOF
13806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13807 $EGREP "webecray" >/dev/null 2>&1; then
13808 ac_cv_os_cray=yes
13809 else
13810 ac_cv_os_cray=no
13812 rm -f conftest*
13815 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13816 echo "${ECHO_T}$ac_cv_os_cray" >&6
13817 if test $ac_cv_os_cray = yes; then
13818 for ac_func in _getb67 GETB67 getb67; do
13819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13820 echo "$as_me:$LINENO: checking for $ac_func" >&5
13821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13822 if eval "test \"\${$as_ac_var+set}\" = set"; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 else
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13833 #define $ac_func innocuous_$ac_func
13835 /* System header to define __stub macros and hopefully few prototypes,
13836 which can conflict with char $ac_func (); below.
13837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13838 <limits.h> exists even on freestanding compilers. */
13840 #ifdef __STDC__
13841 # include <limits.h>
13842 #else
13843 # include <assert.h>
13844 #endif
13846 #undef $ac_func
13848 /* Override any gcc2 internal prototype to avoid an error. */
13849 #ifdef __cplusplus
13850 extern "C"
13852 #endif
13853 /* We use char because int might match the return type of a gcc2
13854 builtin and then its argument prototype would still apply. */
13855 char $ac_func ();
13856 /* The GNU C library defines this for functions which it implements
13857 to always fail with ENOSYS. Some functions are actually named
13858 something starting with __ and the normal name is an alias. */
13859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13860 choke me
13861 #else
13862 char (*f) () = $ac_func;
13863 #endif
13864 #ifdef __cplusplus
13866 #endif
13869 main ()
13871 return f != $ac_func;
13873 return 0;
13875 _ACEOF
13876 rm -f conftest.$ac_objext conftest$ac_exeext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13878 (eval $ac_link) 2>conftest.er1
13879 ac_status=$?
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -z "$ac_c_werror_flag"
13886 || test ! -s conftest.err'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 eval "$as_ac_var=yes"
13899 else
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 eval "$as_ac_var=no"
13905 rm -f conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13910 if test `eval echo '${'$as_ac_var'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913 #define CRAY_STACKSEG_END $ac_func
13914 _ACEOF
13916 break
13919 done
13922 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13923 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13924 if test "${ac_cv_c_stack_direction+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927 if test "$cross_compiling" = yes; then
13928 ac_cv_c_stack_direction=0
13929 else
13930 cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h. */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13937 find_stack_direction ()
13939 static char *addr = 0;
13940 auto char dummy;
13941 if (addr == 0)
13943 addr = &dummy;
13944 return find_stack_direction ();
13946 else
13947 return (&dummy > addr) ? 1 : -1;
13951 main ()
13953 exit (find_stack_direction () < 0);
13955 _ACEOF
13956 rm -f conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 ac_cv_c_stack_direction=1
13968 else
13969 echo "$as_me: program exited with status $ac_status" >&5
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ( exit $ac_status )
13974 ac_cv_c_stack_direction=-1
13976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13979 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13980 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13982 cat >>confdefs.h <<_ACEOF
13983 #define STACK_DIRECTION $ac_cv_c_stack_direction
13984 _ACEOF
13990 # fmod, logb, and frexp are found in -lm on most systems.
13991 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13993 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13994 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13995 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998 ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-lm $LIBS"
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h. */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14007 /* Override any gcc2 internal prototype to avoid an error. */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 /* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14013 char sqrt ();
14015 main ()
14017 sqrt ();
14019 return 0;
14021 _ACEOF
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024 (eval $ac_link) 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_lib_m_sqrt=yes
14045 else
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_cv_lib_m_sqrt=no
14051 rm -f conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
14053 LIBS=$ac_check_lib_save_LIBS
14055 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14056 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14057 if test $ac_cv_lib_m_sqrt = yes; then
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_LIBM 1
14060 _ACEOF
14062 LIBS="-lm $LIBS"
14067 # Check for mail-locking functions in a "mail" library. Probably this should
14068 # have the same check as for liblockfile below.
14070 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14071 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14072 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 else
14075 ac_check_lib_save_LIBS=$LIBS
14076 LIBS="-lmail $LIBS"
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h. */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14084 /* Override any gcc2 internal prototype to avoid an error. */
14085 #ifdef __cplusplus
14086 extern "C"
14087 #endif
14088 /* We use char because int might match the return type of a gcc2
14089 builtin and then its argument prototype would still apply. */
14090 char maillock ();
14092 main ()
14094 maillock ();
14096 return 0;
14098 _ACEOF
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14101 (eval $ac_link) 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag"
14109 || test ! -s conftest.err'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_cv_lib_mail_maillock=yes
14122 else
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 ac_cv_lib_mail_maillock=no
14128 rm -f conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14132 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14133 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14134 if test $ac_cv_lib_mail_maillock = yes; then
14135 cat >>confdefs.h <<_ACEOF
14136 #define HAVE_LIBMAIL 1
14137 _ACEOF
14139 LIBS="-lmail $LIBS"
14144 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14145 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14146 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 ac_check_lib_save_LIBS=$LIBS
14150 LIBS="-llockfile $LIBS"
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14158 /* Override any gcc2 internal prototype to avoid an error. */
14159 #ifdef __cplusplus
14160 extern "C"
14161 #endif
14162 /* We use char because int might match the return type of a gcc2
14163 builtin and then its argument prototype would still apply. */
14164 char maillock ();
14166 main ()
14168 maillock ();
14170 return 0;
14172 _ACEOF
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175 (eval $ac_link) 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_c_werror_flag"
14183 || test ! -s conftest.err'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_lib_lockfile_maillock=yes
14196 else
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 ac_cv_lib_lockfile_maillock=no
14202 rm -f conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14206 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14207 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14208 if test $ac_cv_lib_lockfile_maillock = yes; then
14209 cat >>confdefs.h <<_ACEOF
14210 #define HAVE_LIBLOCKFILE 1
14211 _ACEOF
14213 LIBS="-llockfile $LIBS"
14217 # If we have the shared liblockfile, assume we must use it for mail
14218 # locking (e.g. Debian). If we couldn't link against liblockfile
14219 # (no liblockfile.a installed), ensure that we don't need to.
14220 if test "$ac_cv_lib_lockfile_maillock" = no; then
14221 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14222 set dummy liblockfile.so; ac_word=$2
14223 echo "$as_me:$LINENO: checking for $ac_word" >&5
14224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14225 if test "${ac_cv_prog_liblockfile+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228 if test -n "$liblockfile"; then
14229 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14230 else
14231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14233 for as_dir in $as_dummy
14235 IFS=$as_save_IFS
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
14238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 ac_cv_prog_liblockfile="yes"
14240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 break 2
14243 done
14244 done
14246 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14249 liblockfile=$ac_cv_prog_liblockfile
14250 if test -n "$liblockfile"; then
14251 echo "$as_me:$LINENO: result: $liblockfile" >&5
14252 echo "${ECHO_T}$liblockfile" >&6
14253 else
14254 echo "$as_me:$LINENO: result: no" >&5
14255 echo "${ECHO_T}no" >&6
14258 if test $ac_cv_prog_liblockfile = yes; then
14259 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14260 This probably means that movemail could lose mail.
14261 There may be a \`development' package to install containing liblockfile." >&5
14262 echo "$as_me: error: Shared liblockfile found but can't link against it.
14263 This probably means that movemail could lose mail.
14264 There may be a \`development' package to install containing liblockfile." >&2;}
14265 { (exit 1); exit 1; }; }
14266 else :
14270 for ac_func in touchlock
14272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14273 echo "$as_me:$LINENO: checking for $ac_func" >&5
14274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14275 if eval "test \"\${$as_ac_var+set}\" = set"; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278 cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h. */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14286 #define $ac_func innocuous_$ac_func
14288 /* System header to define __stub macros and hopefully few prototypes,
14289 which can conflict with char $ac_func (); below.
14290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14291 <limits.h> exists even on freestanding compilers. */
14293 #ifdef __STDC__
14294 # include <limits.h>
14295 #else
14296 # include <assert.h>
14297 #endif
14299 #undef $ac_func
14301 /* Override any gcc2 internal prototype to avoid an error. */
14302 #ifdef __cplusplus
14303 extern "C"
14305 #endif
14306 /* We use char because int might match the return type of a gcc2
14307 builtin and then its argument prototype would still apply. */
14308 char $ac_func ();
14309 /* The GNU C library defines this for functions which it implements
14310 to always fail with ENOSYS. Some functions are actually named
14311 something starting with __ and the normal name is an alias. */
14312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14313 choke me
14314 #else
14315 char (*f) () = $ac_func;
14316 #endif
14317 #ifdef __cplusplus
14319 #endif
14322 main ()
14324 return f != $ac_func;
14326 return 0;
14328 _ACEOF
14329 rm -f conftest.$ac_objext conftest$ac_exeext
14330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>conftest.er1
14332 ac_status=$?
14333 grep -v '^ *+' conftest.er1 >conftest.err
14334 rm -f conftest.er1
14335 cat conftest.err >&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -z "$ac_c_werror_flag"
14339 || test ! -s conftest.err'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; } &&
14345 { ac_try='test -s conftest$ac_exeext'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
14351 eval "$as_ac_var=yes"
14352 else
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14356 eval "$as_ac_var=no"
14358 rm -f conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14363 if test `eval echo '${'$as_ac_var'}'` = yes; then
14364 cat >>confdefs.h <<_ACEOF
14365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14366 _ACEOF
14369 done
14372 for ac_header in maillock.h
14374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14376 echo "$as_me:$LINENO: checking for $ac_header" >&5
14377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14383 else
14384 # Is the header compilable?
14385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14387 cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h. */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14394 #include <$ac_header>
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_header_compiler=yes
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_header_compiler=no
14425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14427 echo "${ECHO_T}$ac_header_compiler" >&6
14429 # Is the header present?
14430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14432 cat >conftest.$ac_ext <<_ACEOF
14433 /* confdefs.h. */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 #include <$ac_header>
14439 _ACEOF
14440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } >/dev/null; then
14448 if test -s conftest.err; then
14449 ac_cpp_err=$ac_c_preproc_warn_flag
14450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14451 else
14452 ac_cpp_err=
14454 else
14455 ac_cpp_err=yes
14457 if test -z "$ac_cpp_err"; then
14458 ac_header_preproc=yes
14459 else
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_header_preproc=no
14465 rm -f conftest.err conftest.$ac_ext
14466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14467 echo "${ECHO_T}$ac_header_preproc" >&6
14469 # So? What about this header?
14470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14471 yes:no: )
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14476 ac_header_preproc=yes
14478 no:yes:* )
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14492 cat <<\_ASBOX
14493 ## ------------------------------------------ ##
14494 ## Report this to the AC_PACKAGE_NAME lists. ##
14495 ## ------------------------------------------ ##
14496 _ASBOX
14498 sed "s/^/$as_me: WARNING: /" >&2
14500 esac
14501 echo "$as_me:$LINENO: checking for $ac_header" >&5
14502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506 eval "$as_ac_Header=\$ac_header_preproc"
14508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14513 cat >>confdefs.h <<_ACEOF
14514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14515 _ACEOF
14519 done
14591 for ac_func in gethostname getdomainname dup2 \
14592 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14593 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14594 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14595 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14596 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14597 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14598 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14599 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14602 echo "$as_me:$LINENO: checking for $ac_func" >&5
14603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14604 if eval "test \"\${$as_ac_var+set}\" = set"; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 else
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h. */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14615 #define $ac_func innocuous_$ac_func
14617 /* System header to define __stub macros and hopefully few prototypes,
14618 which can conflict with char $ac_func (); below.
14619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14620 <limits.h> exists even on freestanding compilers. */
14622 #ifdef __STDC__
14623 # include <limits.h>
14624 #else
14625 # include <assert.h>
14626 #endif
14628 #undef $ac_func
14630 /* Override any gcc2 internal prototype to avoid an error. */
14631 #ifdef __cplusplus
14632 extern "C"
14634 #endif
14635 /* We use char because int might match the return type of a gcc2
14636 builtin and then its argument prototype would still apply. */
14637 char $ac_func ();
14638 /* The GNU C library defines this for functions which it implements
14639 to always fail with ENOSYS. Some functions are actually named
14640 something starting with __ and the normal name is an alias. */
14641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14642 choke me
14643 #else
14644 char (*f) () = $ac_func;
14645 #endif
14646 #ifdef __cplusplus
14648 #endif
14651 main ()
14653 return f != $ac_func;
14655 return 0;
14657 _ACEOF
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14660 (eval $ac_link) 2>conftest.er1
14661 ac_status=$?
14662 grep -v '^ *+' conftest.er1 >conftest.err
14663 rm -f conftest.er1
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
14667 { ac_try='test -z "$ac_c_werror_flag"
14668 || test ! -s conftest.err'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; } &&
14674 { ac_try='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 eval "$as_ac_var=yes"
14681 else
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 eval "$as_ac_var=no"
14687 rm -f conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14692 if test `eval echo '${'$as_ac_var'}'` = yes; then
14693 cat >>confdefs.h <<_ACEOF
14694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14695 _ACEOF
14698 done
14702 for ac_header in sys/un.h
14704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14706 echo "$as_me:$LINENO: checking for $ac_header" >&5
14707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14713 else
14714 # Is the header compilable?
14715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 $ac_includes_default
14724 #include <$ac_header>
14725 _ACEOF
14726 rm -f conftest.$ac_objext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728 (eval $ac_compile) 2>conftest.er1
14729 ac_status=$?
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -z "$ac_c_werror_flag"
14736 || test ! -s conftest.err'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; } &&
14742 { ac_try='test -s conftest.$ac_objext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_header_compiler=yes
14749 else
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ac_header_compiler=no
14755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14757 echo "${ECHO_T}$ac_header_compiler" >&6
14759 # Is the header present?
14760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h. */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include <$ac_header>
14769 _ACEOF
14770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null; then
14778 if test -s conftest.err; then
14779 ac_cpp_err=$ac_c_preproc_warn_flag
14780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14781 else
14782 ac_cpp_err=
14784 else
14785 ac_cpp_err=yes
14787 if test -z "$ac_cpp_err"; then
14788 ac_header_preproc=yes
14789 else
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_header_preproc=no
14795 rm -f conftest.err conftest.$ac_ext
14796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14797 echo "${ECHO_T}$ac_header_preproc" >&6
14799 # So? What about this header?
14800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14801 yes:no: )
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14806 ac_header_preproc=yes
14808 no:yes:* )
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14822 cat <<\_ASBOX
14823 ## ------------------------------------------ ##
14824 ## Report this to the AC_PACKAGE_NAME lists. ##
14825 ## ------------------------------------------ ##
14826 _ASBOX
14828 sed "s/^/$as_me: WARNING: /" >&2
14830 esac
14831 echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836 eval "$as_ac_Header=\$ac_header_preproc"
14838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14843 cat >>confdefs.h <<_ACEOF
14844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845 _ACEOF
14849 done
14855 for ac_header in stdlib.h sys/time.h unistd.h
14857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14859 echo "$as_me:$LINENO: checking for $ac_header" >&5
14860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14866 else
14867 # Is the header compilable?
14868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 $ac_includes_default
14877 #include <$ac_header>
14878 _ACEOF
14879 rm -f conftest.$ac_objext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14881 (eval $ac_compile) 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -z "$ac_c_werror_flag"
14889 || test ! -s conftest.err'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; } &&
14895 { ac_try='test -s conftest.$ac_objext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_header_compiler=yes
14902 else
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14906 ac_header_compiler=no
14908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14910 echo "${ECHO_T}$ac_header_compiler" >&6
14912 # Is the header present?
14913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <$ac_header>
14922 _ACEOF
14923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } >/dev/null; then
14931 if test -s conftest.err; then
14932 ac_cpp_err=$ac_c_preproc_warn_flag
14933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14934 else
14935 ac_cpp_err=
14937 else
14938 ac_cpp_err=yes
14940 if test -z "$ac_cpp_err"; then
14941 ac_header_preproc=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_header_preproc=no
14948 rm -f conftest.err conftest.$ac_ext
14949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 echo "${ECHO_T}$ac_header_preproc" >&6
14952 # So? What about this header?
14953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14954 yes:no: )
14955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14959 ac_header_preproc=yes
14961 no:yes:* )
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14975 cat <<\_ASBOX
14976 ## ------------------------------------------ ##
14977 ## Report this to the AC_PACKAGE_NAME lists. ##
14978 ## ------------------------------------------ ##
14979 _ASBOX
14981 sed "s/^/$as_me: WARNING: /" >&2
14983 esac
14984 echo "$as_me:$LINENO: checking for $ac_header" >&5
14985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989 eval "$as_ac_Header=\$ac_header_preproc"
14991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14996 cat >>confdefs.h <<_ACEOF
14997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14998 _ACEOF
15002 done
15005 for ac_func in alarm
15007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15008 echo "$as_me:$LINENO: checking for $ac_func" >&5
15009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15010 if eval "test \"\${$as_ac_var+set}\" = set"; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h. */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15021 #define $ac_func innocuous_$ac_func
15023 /* System header to define __stub macros and hopefully few prototypes,
15024 which can conflict with char $ac_func (); below.
15025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15026 <limits.h> exists even on freestanding compilers. */
15028 #ifdef __STDC__
15029 # include <limits.h>
15030 #else
15031 # include <assert.h>
15032 #endif
15034 #undef $ac_func
15036 /* Override any gcc2 internal prototype to avoid an error. */
15037 #ifdef __cplusplus
15038 extern "C"
15040 #endif
15041 /* We use char because int might match the return type of a gcc2
15042 builtin and then its argument prototype would still apply. */
15043 char $ac_func ();
15044 /* The GNU C library defines this for functions which it implements
15045 to always fail with ENOSYS. Some functions are actually named
15046 something starting with __ and the normal name is an alias. */
15047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15048 choke me
15049 #else
15050 char (*f) () = $ac_func;
15051 #endif
15052 #ifdef __cplusplus
15054 #endif
15057 main ()
15059 return f != $ac_func;
15061 return 0;
15063 _ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15066 (eval $ac_link) 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
15073 { ac_try='test -z "$ac_c_werror_flag"
15074 || test ! -s conftest.err'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; } &&
15080 { ac_try='test -s conftest$ac_exeext'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 eval "$as_ac_var=yes"
15087 else
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 eval "$as_ac_var=no"
15093 rm -f conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15098 if test `eval echo '${'$as_ac_var'}'` = yes; then
15099 cat >>confdefs.h <<_ACEOF
15100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15101 _ACEOF
15104 done
15106 echo "$as_me:$LINENO: checking for working mktime" >&5
15107 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15108 if test "${ac_cv_func_working_mktime+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111 if test "$cross_compiling" = yes; then
15112 ac_cv_func_working_mktime=no
15113 else
15114 cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h. */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 /* Test program from Paul Eggert and Tony Leneis. */
15121 #if TIME_WITH_SYS_TIME
15122 # include <sys/time.h>
15123 # include <time.h>
15124 #else
15125 # if HAVE_SYS_TIME_H
15126 # include <sys/time.h>
15127 # else
15128 # include <time.h>
15129 # endif
15130 #endif
15132 #if HAVE_STDLIB_H
15133 # include <stdlib.h>
15134 #endif
15136 #if HAVE_UNISTD_H
15137 # include <unistd.h>
15138 #endif
15140 #if !HAVE_ALARM
15141 # define alarm(X) /* empty */
15142 #endif
15144 /* Work around redefinition to rpl_putenv by other config tests. */
15145 #undef putenv
15147 static time_t time_t_max;
15148 static time_t time_t_min;
15150 /* Values we'll use to set the TZ environment variable. */
15151 static char *tz_strings[] = {
15152 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15153 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15155 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15157 /* Fail if mktime fails to convert a date in the spring-forward gap.
15158 Based on a problem report from Andreas Jaeger. */
15159 static void
15160 spring_forward_gap ()
15162 /* glibc (up to about 1998-10-07) failed this test. */
15163 struct tm tm;
15165 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15166 instead of "TZ=America/Vancouver" in order to detect the bug even
15167 on systems that don't support the Olson extension, or don't have the
15168 full zoneinfo tables installed. */
15169 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15171 tm.tm_year = 98;
15172 tm.tm_mon = 3;
15173 tm.tm_mday = 5;
15174 tm.tm_hour = 2;
15175 tm.tm_min = 0;
15176 tm.tm_sec = 0;
15177 tm.tm_isdst = -1;
15178 if (mktime (&tm) == (time_t)-1)
15179 exit (1);
15182 static void
15183 mktime_test1 (now)
15184 time_t now;
15186 struct tm *lt;
15187 if ((lt = localtime (&now)) && mktime (lt) != now)
15188 exit (1);
15191 static void
15192 mktime_test (now)
15193 time_t now;
15195 mktime_test1 (now);
15196 mktime_test1 ((time_t) (time_t_max - now));
15197 mktime_test1 ((time_t) (time_t_min + now));
15200 static void
15201 irix_6_4_bug ()
15203 /* Based on code from Ariel Faigon. */
15204 struct tm tm;
15205 tm.tm_year = 96;
15206 tm.tm_mon = 3;
15207 tm.tm_mday = 0;
15208 tm.tm_hour = 0;
15209 tm.tm_min = 0;
15210 tm.tm_sec = 0;
15211 tm.tm_isdst = -1;
15212 mktime (&tm);
15213 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15214 exit (1);
15217 static void
15218 bigtime_test (j)
15219 int j;
15221 struct tm tm;
15222 time_t now;
15223 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15224 now = mktime (&tm);
15225 if (now != (time_t) -1)
15227 struct tm *lt = localtime (&now);
15228 if (! (lt
15229 && lt->tm_year == tm.tm_year
15230 && lt->tm_mon == tm.tm_mon
15231 && lt->tm_mday == tm.tm_mday
15232 && lt->tm_hour == tm.tm_hour
15233 && lt->tm_min == tm.tm_min
15234 && lt->tm_sec == tm.tm_sec
15235 && lt->tm_yday == tm.tm_yday
15236 && lt->tm_wday == tm.tm_wday
15237 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15238 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15239 exit (1);
15244 main ()
15246 time_t t, delta;
15247 int i, j;
15249 /* This test makes some buggy mktime implementations loop.
15250 Give up after 60 seconds; a mktime slower than that
15251 isn't worth using anyway. */
15252 alarm (60);
15254 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15255 continue;
15256 time_t_max--;
15257 if ((time_t) -1 < 0)
15258 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15259 continue;
15260 delta = time_t_max / 997; /* a suitable prime number */
15261 for (i = 0; i < N_STRINGS; i++)
15263 if (tz_strings[i])
15264 putenv (tz_strings[i]);
15266 for (t = 0; t <= time_t_max - delta; t += delta)
15267 mktime_test (t);
15268 mktime_test ((time_t) 1);
15269 mktime_test ((time_t) (60 * 60));
15270 mktime_test ((time_t) (60 * 60 * 24));
15272 for (j = 1; 0 < j; j *= 2)
15273 bigtime_test (j);
15274 bigtime_test (j - 1);
15276 irix_6_4_bug ();
15277 spring_forward_gap ();
15278 exit (0);
15280 _ACEOF
15281 rm -f conftest$ac_exeext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15283 (eval $ac_link) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 ac_cv_func_working_mktime=yes
15293 else
15294 echo "$as_me: program exited with status $ac_status" >&5
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 ( exit $ac_status )
15299 ac_cv_func_working_mktime=no
15301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15304 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15305 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15306 if test $ac_cv_func_working_mktime = no; then
15307 case $LIBOBJS in
15308 "mktime.$ac_objext" | \
15309 *" mktime.$ac_objext" | \
15310 "mktime.$ac_objext "* | \
15311 *" mktime.$ac_objext "* ) ;;
15312 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15313 esac
15317 if test "$ac_cv_func_working_mktime" = no; then
15319 cat >>confdefs.h <<\_ACEOF
15320 #define BROKEN_MKTIME 1
15321 _ACEOF
15325 ac_have_func=no # yes means we've found a way to get the load average.
15327 # Make sure getloadavg.c is where it belongs, at configure-time.
15328 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15329 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15330 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15331 { (exit 1); exit 1; }; }
15333 ac_save_LIBS=$LIBS
15335 # Check for getloadavg, but be sure not to touch the cache variable.
15336 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15337 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15338 if test "${ac_cv_func_getloadavg+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15349 #define getloadavg innocuous_getloadavg
15351 /* System header to define __stub macros and hopefully few prototypes,
15352 which can conflict with char getloadavg (); below.
15353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15354 <limits.h> exists even on freestanding compilers. */
15356 #ifdef __STDC__
15357 # include <limits.h>
15358 #else
15359 # include <assert.h>
15360 #endif
15362 #undef getloadavg
15364 /* Override any gcc2 internal prototype to avoid an error. */
15365 #ifdef __cplusplus
15366 extern "C"
15368 #endif
15369 /* We use char because int might match the return type of a gcc2
15370 builtin and then its argument prototype would still apply. */
15371 char getloadavg ();
15372 /* The GNU C library defines this for functions which it implements
15373 to always fail with ENOSYS. Some functions are actually named
15374 something starting with __ and the normal name is an alias. */
15375 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15376 choke me
15377 #else
15378 char (*f) () = getloadavg;
15379 #endif
15380 #ifdef __cplusplus
15382 #endif
15385 main ()
15387 return f != getloadavg;
15389 return 0;
15391 _ACEOF
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394 (eval $ac_link) 2>conftest.er1
15395 ac_status=$?
15396 grep -v '^ *+' conftest.er1 >conftest.err
15397 rm -f conftest.er1
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -z "$ac_c_werror_flag"
15402 || test ! -s conftest.err'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest$ac_exeext'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_cv_func_getloadavg=yes
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_cv_func_getloadavg=no
15421 rm -f conftest.err conftest.$ac_objext \
15422 conftest$ac_exeext conftest.$ac_ext
15424 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15425 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15426 if test $ac_cv_func_getloadavg = yes; then
15427 exit 0
15428 else
15429 exit 1
15431 ) && ac_have_func=yes
15433 # On HPUX9, an unprivileged user can get load averages through this function.
15435 for ac_func in pstat_getdynamic
15437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15438 echo "$as_me:$LINENO: checking for $ac_func" >&5
15439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15440 if eval "test \"\${$as_ac_var+set}\" = set"; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 else
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h. */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15451 #define $ac_func innocuous_$ac_func
15453 /* System header to define __stub macros and hopefully few prototypes,
15454 which can conflict with char $ac_func (); below.
15455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15456 <limits.h> exists even on freestanding compilers. */
15458 #ifdef __STDC__
15459 # include <limits.h>
15460 #else
15461 # include <assert.h>
15462 #endif
15464 #undef $ac_func
15466 /* Override any gcc2 internal prototype to avoid an error. */
15467 #ifdef __cplusplus
15468 extern "C"
15470 #endif
15471 /* We use char because int might match the return type of a gcc2
15472 builtin and then its argument prototype would still apply. */
15473 char $ac_func ();
15474 /* The GNU C library defines this for functions which it implements
15475 to always fail with ENOSYS. Some functions are actually named
15476 something starting with __ and the normal name is an alias. */
15477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15478 choke me
15479 #else
15480 char (*f) () = $ac_func;
15481 #endif
15482 #ifdef __cplusplus
15484 #endif
15487 main ()
15489 return f != $ac_func;
15491 return 0;
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_c_werror_flag"
15504 || test ! -s conftest.err'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try='test -s conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 eval "$as_ac_var=yes"
15517 else
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 eval "$as_ac_var=no"
15523 rm -f conftest.err conftest.$ac_objext \
15524 conftest$ac_exeext conftest.$ac_ext
15526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15528 if test `eval echo '${'$as_ac_var'}'` = yes; then
15529 cat >>confdefs.h <<_ACEOF
15530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15531 _ACEOF
15534 done
15537 # Solaris has libkstat which does not require root.
15539 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15540 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15541 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544 ac_check_lib_save_LIBS=$LIBS
15545 LIBS="-lkstat $LIBS"
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h. */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15553 /* Override any gcc2 internal prototype to avoid an error. */
15554 #ifdef __cplusplus
15555 extern "C"
15556 #endif
15557 /* We use char because int might match the return type of a gcc2
15558 builtin and then its argument prototype would still apply. */
15559 char kstat_open ();
15561 main ()
15563 kstat_open ();
15565 return 0;
15567 _ACEOF
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570 (eval $ac_link) 2>conftest.er1
15571 ac_status=$?
15572 grep -v '^ *+' conftest.er1 >conftest.err
15573 rm -f conftest.er1
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -z "$ac_c_werror_flag"
15578 || test ! -s conftest.err'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_lib_kstat_kstat_open=yes
15591 else
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_cv_lib_kstat_kstat_open=no
15597 rm -f conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15602 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15603 if test $ac_cv_lib_kstat_kstat_open = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605 #define HAVE_LIBKSTAT 1
15606 _ACEOF
15608 LIBS="-lkstat $LIBS"
15612 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15614 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15615 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15616 # to get the right answer into the cache.
15617 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15618 if test $ac_have_func = no; then
15619 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15620 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15621 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624 ac_check_lib_save_LIBS=$LIBS
15625 LIBS="-lelf $LIBS"
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15633 /* Override any gcc2 internal prototype to avoid an error. */
15634 #ifdef __cplusplus
15635 extern "C"
15636 #endif
15637 /* We use char because int might match the return type of a gcc2
15638 builtin and then its argument prototype would still apply. */
15639 char elf_begin ();
15641 main ()
15643 elf_begin ();
15645 return 0;
15647 _ACEOF
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15650 (eval $ac_link) 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_c_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_lib_elf_elf_begin=yes
15671 else
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_lib_elf_elf_begin=no
15677 rm -f conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
15679 LIBS=$ac_check_lib_save_LIBS
15681 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15682 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15683 if test $ac_cv_lib_elf_elf_begin = yes; then
15684 LIBS="-lelf $LIBS"
15688 if test $ac_have_func = no; then
15689 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15690 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15691 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694 ac_check_lib_save_LIBS=$LIBS
15695 LIBS="-lkvm $LIBS"
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15703 /* Override any gcc2 internal prototype to avoid an error. */
15704 #ifdef __cplusplus
15705 extern "C"
15706 #endif
15707 /* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15709 char kvm_open ();
15711 main ()
15713 kvm_open ();
15715 return 0;
15717 _ACEOF
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720 (eval $ac_link) 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -z "$ac_c_werror_flag"
15728 || test ! -s conftest.err'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest$ac_exeext'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_cv_lib_kvm_kvm_open=yes
15741 else
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 ac_cv_lib_kvm_kvm_open=no
15747 rm -f conftest.err conftest.$ac_objext \
15748 conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15751 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15752 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15753 if test $ac_cv_lib_kvm_kvm_open = yes; then
15754 LIBS="-lkvm $LIBS"
15757 # Check for the 4.4BSD definition of getloadavg.
15758 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15759 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15760 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763 ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lutil $LIBS"
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15772 /* Override any gcc2 internal prototype to avoid an error. */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 /* We use char because int might match the return type of a gcc2
15777 builtin and then its argument prototype would still apply. */
15778 char getloadavg ();
15780 main ()
15782 getloadavg ();
15784 return 0;
15786 _ACEOF
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789 (eval $ac_link) 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -z "$ac_c_werror_flag"
15797 || test ! -s conftest.err'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try='test -s conftest$ac_exeext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_cv_lib_util_getloadavg=yes
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_cv_lib_util_getloadavg=no
15816 rm -f conftest.err conftest.$ac_objext \
15817 conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15820 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15821 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15822 if test $ac_cv_lib_util_getloadavg = yes; then
15823 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15828 if test $ac_have_func = no; then
15829 # There is a commonly available library for RS/6000 AIX.
15830 # Since it is not a standard part of AIX, it might be installed locally.
15831 ac_getloadavg_LIBS=$LIBS
15832 LIBS="-L/usr/local/lib $LIBS"
15833 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15834 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15835 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838 ac_check_lib_save_LIBS=$LIBS
15839 LIBS="-lgetloadavg $LIBS"
15840 cat >conftest.$ac_ext <<_ACEOF
15841 /* confdefs.h. */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h. */
15847 /* Override any gcc2 internal prototype to avoid an error. */
15848 #ifdef __cplusplus
15849 extern "C"
15850 #endif
15851 /* We use char because int might match the return type of a gcc2
15852 builtin and then its argument prototype would still apply. */
15853 char getloadavg ();
15855 main ()
15857 getloadavg ();
15859 return 0;
15861 _ACEOF
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864 (eval $ac_link) 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest$ac_exeext'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_cv_lib_getloadavg_getloadavg=yes
15885 else
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_cv_lib_getloadavg_getloadavg=no
15891 rm -f conftest.err conftest.$ac_objext \
15892 conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15895 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15896 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15897 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15898 LIBS="-lgetloadavg $LIBS"
15899 else
15900 LIBS=$ac_getloadavg_LIBS
15905 # Make sure it is really in the library, if we think we found it,
15906 # otherwise set up the replacement function.
15908 for ac_func in getloadavg
15910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15911 echo "$as_me:$LINENO: checking for $ac_func" >&5
15912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15913 if eval "test \"\${$as_ac_var+set}\" = set"; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15924 #define $ac_func innocuous_$ac_func
15926 /* System header to define __stub macros and hopefully few prototypes,
15927 which can conflict with char $ac_func (); below.
15928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15929 <limits.h> exists even on freestanding compilers. */
15931 #ifdef __STDC__
15932 # include <limits.h>
15933 #else
15934 # include <assert.h>
15935 #endif
15937 #undef $ac_func
15939 /* Override any gcc2 internal prototype to avoid an error. */
15940 #ifdef __cplusplus
15941 extern "C"
15943 #endif
15944 /* We use char because int might match the return type of a gcc2
15945 builtin and then its argument prototype would still apply. */
15946 char $ac_func ();
15947 /* The GNU C library defines this for functions which it implements
15948 to always fail with ENOSYS. Some functions are actually named
15949 something starting with __ and the normal name is an alias. */
15950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15951 choke me
15952 #else
15953 char (*f) () = $ac_func;
15954 #endif
15955 #ifdef __cplusplus
15957 #endif
15960 main ()
15962 return f != $ac_func;
15964 return 0;
15966 _ACEOF
15967 rm -f conftest.$ac_objext conftest$ac_exeext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15969 (eval $ac_link) 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } &&
15976 { ac_try='test -z "$ac_c_werror_flag"
15977 || test ! -s conftest.err'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; } &&
15983 { ac_try='test -s conftest$ac_exeext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 eval "$as_ac_var=yes"
15990 else
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 eval "$as_ac_var=no"
15996 rm -f conftest.err conftest.$ac_objext \
15997 conftest$ac_exeext conftest.$ac_ext
15999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16001 if test `eval echo '${'$as_ac_var'}'` = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16004 _ACEOF
16006 else
16007 case $LIBOBJS in
16008 "getloadavg.$ac_objext" | \
16009 *" getloadavg.$ac_objext" | \
16010 "getloadavg.$ac_objext "* | \
16011 *" getloadavg.$ac_objext "* ) ;;
16012 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
16013 esac
16016 cat >>confdefs.h <<\_ACEOF
16017 #define C_GETLOADAVG 1
16018 _ACEOF
16020 # Figure out what our getloadavg.c needs.
16021 ac_have_func=no
16022 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16023 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16024 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16025 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16029 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16030 else
16031 # Is the header compilable?
16032 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16033 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16034 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h. */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 $ac_includes_default
16041 #include <sys/dg_sys_info.h>
16042 _ACEOF
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045 (eval $ac_compile) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_header_compiler=yes
16066 else
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_header_compiler=no
16072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16074 echo "${ECHO_T}$ac_header_compiler" >&6
16076 # Is the header present?
16077 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16078 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 #include <sys/dg_sys_info.h>
16086 _ACEOF
16087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16089 ac_status=$?
16090 grep -v '^ *+' conftest.er1 >conftest.err
16091 rm -f conftest.er1
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } >/dev/null; then
16095 if test -s conftest.err; then
16096 ac_cpp_err=$ac_c_preproc_warn_flag
16097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16098 else
16099 ac_cpp_err=
16101 else
16102 ac_cpp_err=yes
16104 if test -z "$ac_cpp_err"; then
16105 ac_header_preproc=yes
16106 else
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 ac_header_preproc=no
16112 rm -f conftest.err conftest.$ac_ext
16113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118 yes:no: )
16119 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16125 no:yes:* )
16126 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16139 cat <<\_ASBOX
16140 ## ------------------------------------------ ##
16141 ## Report this to the AC_PACKAGE_NAME lists. ##
16142 ## ------------------------------------------ ##
16143 _ASBOX
16145 sed "s/^/$as_me: WARNING: /" >&2
16147 esac
16148 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16149 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16150 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16152 else
16153 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16155 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16156 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16159 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16160 ac_have_func=yes
16162 cat >>confdefs.h <<\_ACEOF
16163 #define DGUX 1
16164 _ACEOF
16167 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16168 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16169 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172 ac_check_lib_save_LIBS=$LIBS
16173 LIBS="-ldgc $LIBS"
16174 cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h. */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16181 /* Override any gcc2 internal prototype to avoid an error. */
16182 #ifdef __cplusplus
16183 extern "C"
16184 #endif
16185 /* We use char because int might match the return type of a gcc2
16186 builtin and then its argument prototype would still apply. */
16187 char dg_sys_info ();
16189 main ()
16191 dg_sys_info ();
16193 return 0;
16195 _ACEOF
16196 rm -f conftest.$ac_objext conftest$ac_exeext
16197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16198 (eval $ac_link) 2>conftest.er1
16199 ac_status=$?
16200 grep -v '^ *+' conftest.er1 >conftest.err
16201 rm -f conftest.er1
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try='test -z "$ac_c_werror_flag"
16206 || test ! -s conftest.err'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try='test -s conftest$ac_exeext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_cv_lib_dgc_dg_sys_info=yes
16219 else
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_cv_lib_dgc_dg_sys_info=no
16225 rm -f conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16227 LIBS=$ac_check_lib_save_LIBS
16229 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16230 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16231 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_LIBDGC 1
16234 _ACEOF
16236 LIBS="-ldgc $LIBS"
16244 if test "${ac_cv_header_locale_h+set}" = set; then
16245 echo "$as_me:$LINENO: checking for locale.h" >&5
16246 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16247 if test "${ac_cv_header_locale_h+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16251 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16252 else
16253 # Is the header compilable?
16254 echo "$as_me:$LINENO: checking locale.h usability" >&5
16255 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h. */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 $ac_includes_default
16263 #include <locale.h>
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag"
16275 || test ! -s conftest.err'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest.$ac_objext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_header_compiler=yes
16288 else
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_header_compiler=no
16294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16296 echo "${ECHO_T}$ac_header_compiler" >&6
16298 # Is the header present?
16299 echo "$as_me:$LINENO: checking locale.h presence" >&5
16300 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16301 cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h. */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 #include <locale.h>
16308 _ACEOF
16309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } >/dev/null; then
16317 if test -s conftest.err; then
16318 ac_cpp_err=$ac_c_preproc_warn_flag
16319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16320 else
16321 ac_cpp_err=
16323 else
16324 ac_cpp_err=yes
16326 if test -z "$ac_cpp_err"; then
16327 ac_header_preproc=yes
16328 else
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ac_header_preproc=no
16334 rm -f conftest.err conftest.$ac_ext
16335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16336 echo "${ECHO_T}$ac_header_preproc" >&6
16338 # So? What about this header?
16339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16340 yes:no: )
16341 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16342 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16344 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16345 ac_header_preproc=yes
16347 no:yes:* )
16348 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16349 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16351 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16352 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16353 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16354 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16355 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16356 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16357 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16358 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16359 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16361 cat <<\_ASBOX
16362 ## ------------------------------------------ ##
16363 ## Report this to the AC_PACKAGE_NAME lists. ##
16364 ## ------------------------------------------ ##
16365 _ASBOX
16367 sed "s/^/$as_me: WARNING: /" >&2
16369 esac
16370 echo "$as_me:$LINENO: checking for locale.h" >&5
16371 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16372 if test "${ac_cv_header_locale_h+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375 ac_cv_header_locale_h=$ac_header_preproc
16377 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16378 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16384 for ac_func in setlocale
16386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16387 echo "$as_me:$LINENO: checking for $ac_func" >&5
16388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16389 if eval "test \"\${$as_ac_var+set}\" = set"; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h. */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16400 #define $ac_func innocuous_$ac_func
16402 /* System header to define __stub macros and hopefully few prototypes,
16403 which can conflict with char $ac_func (); below.
16404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16405 <limits.h> exists even on freestanding compilers. */
16407 #ifdef __STDC__
16408 # include <limits.h>
16409 #else
16410 # include <assert.h>
16411 #endif
16413 #undef $ac_func
16415 /* Override any gcc2 internal prototype to avoid an error. */
16416 #ifdef __cplusplus
16417 extern "C"
16419 #endif
16420 /* We use char because int might match the return type of a gcc2
16421 builtin and then its argument prototype would still apply. */
16422 char $ac_func ();
16423 /* The GNU C library defines this for functions which it implements
16424 to always fail with ENOSYS. Some functions are actually named
16425 something starting with __ and the normal name is an alias. */
16426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16427 choke me
16428 #else
16429 char (*f) () = $ac_func;
16430 #endif
16431 #ifdef __cplusplus
16433 #endif
16436 main ()
16438 return f != $ac_func;
16440 return 0;
16442 _ACEOF
16443 rm -f conftest.$ac_objext conftest$ac_exeext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16445 (eval $ac_link) 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest$ac_exeext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 eval "$as_ac_var=yes"
16466 else
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 eval "$as_ac_var=no"
16472 rm -f conftest.err conftest.$ac_objext \
16473 conftest$ac_exeext conftest.$ac_ext
16475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16477 if test `eval echo '${'$as_ac_var'}'` = yes; then
16478 cat >>confdefs.h <<_ACEOF
16479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16480 _ACEOF
16483 done
16486 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16487 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16488 # Irix 4.0.5F has the header but not the library.
16489 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16490 ac_have_func=yes
16492 cat >>confdefs.h <<\_ACEOF
16493 #define SVR4 1
16494 _ACEOF
16498 if test $ac_have_func = no; then
16499 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16500 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16501 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16502 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16506 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16507 else
16508 # Is the header compilable?
16509 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16510 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h. */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16518 #include <inq_stats/cpustats.h>
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag"
16530 || test ! -s conftest.err'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_header_compiler=yes
16543 else
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_header_compiler=no
16549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16551 echo "${ECHO_T}$ac_header_compiler" >&6
16553 # Is the header present?
16554 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16555 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h. */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562 #include <inq_stats/cpustats.h>
16563 _ACEOF
16564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } >/dev/null; then
16572 if test -s conftest.err; then
16573 ac_cpp_err=$ac_c_preproc_warn_flag
16574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16575 else
16576 ac_cpp_err=
16578 else
16579 ac_cpp_err=yes
16581 if test -z "$ac_cpp_err"; then
16582 ac_header_preproc=yes
16583 else
16584 echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16587 ac_header_preproc=no
16589 rm -f conftest.err conftest.$ac_ext
16590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16591 echo "${ECHO_T}$ac_header_preproc" >&6
16593 # So? What about this header?
16594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16595 yes:no: )
16596 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16597 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16599 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16600 ac_header_preproc=yes
16602 no:yes:* )
16603 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16604 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16606 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16608 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16610 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16612 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16614 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16616 cat <<\_ASBOX
16617 ## ------------------------------------------ ##
16618 ## Report this to the AC_PACKAGE_NAME lists. ##
16619 ## ------------------------------------------ ##
16620 _ASBOX
16622 sed "s/^/$as_me: WARNING: /" >&2
16624 esac
16625 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16626 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16627 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16629 else
16630 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16632 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16633 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16636 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16637 ac_have_func=yes
16639 cat >>confdefs.h <<\_ACEOF
16640 #define UMAX 1
16641 _ACEOF
16644 cat >>confdefs.h <<\_ACEOF
16645 #define UMAX4_3 1
16646 _ACEOF
16653 if test $ac_have_func = no; then
16654 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16655 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16656 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16657 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16661 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16662 else
16663 # Is the header compilable?
16664 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16665 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16666 cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h. */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 $ac_includes_default
16673 #include <sys/cpustats.h>
16674 _ACEOF
16675 rm -f conftest.$ac_objext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16677 (eval $ac_compile) 2>conftest.er1
16678 ac_status=$?
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_header_compiler=yes
16698 else
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ac_header_compiler=no
16704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16706 echo "${ECHO_T}$ac_header_compiler" >&6
16708 # Is the header present?
16709 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16710 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16711 cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h. */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 #include <sys/cpustats.h>
16718 _ACEOF
16719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } >/dev/null; then
16727 if test -s conftest.err; then
16728 ac_cpp_err=$ac_c_preproc_warn_flag
16729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16730 else
16731 ac_cpp_err=
16733 else
16734 ac_cpp_err=yes
16736 if test -z "$ac_cpp_err"; then
16737 ac_header_preproc=yes
16738 else
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 ac_header_preproc=no
16744 rm -f conftest.err conftest.$ac_ext
16745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16746 echo "${ECHO_T}$ac_header_preproc" >&6
16748 # So? What about this header?
16749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16750 yes:no: )
16751 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16752 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16754 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16755 ac_header_preproc=yes
16757 no:yes:* )
16758 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16759 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16760 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16761 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16762 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16763 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16765 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16766 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16767 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16768 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16769 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16771 cat <<\_ASBOX
16772 ## ------------------------------------------ ##
16773 ## Report this to the AC_PACKAGE_NAME lists. ##
16774 ## ------------------------------------------ ##
16775 _ASBOX
16777 sed "s/^/$as_me: WARNING: /" >&2
16779 esac
16780 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16781 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16782 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16787 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16788 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16791 if test $ac_cv_header_sys_cpustats_h = yes; then
16792 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16793 #define UMAX 1
16794 _ACEOF
16801 if test $ac_have_func = no; then
16803 for ac_header in mach/mach.h
16805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16807 echo "$as_me:$LINENO: checking for $ac_header" >&5
16808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16814 else
16815 # Is the header compilable?
16816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16818 cat >conftest.$ac_ext <<_ACEOF
16819 /* confdefs.h. */
16820 _ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 $ac_includes_default
16825 #include <$ac_header>
16826 _ACEOF
16827 rm -f conftest.$ac_objext
16828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16829 (eval $ac_compile) 2>conftest.er1
16830 ac_status=$?
16831 grep -v '^ *+' conftest.er1 >conftest.err
16832 rm -f conftest.er1
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag"
16837 || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_header_compiler=yes
16850 else
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16854 ac_header_compiler=no
16856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16858 echo "${ECHO_T}$ac_header_compiler" >&6
16860 # Is the header present?
16861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h. */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 #include <$ac_header>
16870 _ACEOF
16871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null; then
16879 if test -s conftest.err; then
16880 ac_cpp_err=$ac_c_preproc_warn_flag
16881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16882 else
16883 ac_cpp_err=
16885 else
16886 ac_cpp_err=yes
16888 if test -z "$ac_cpp_err"; then
16889 ac_header_preproc=yes
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 ac_header_preproc=no
16896 rm -f conftest.err conftest.$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16898 echo "${ECHO_T}$ac_header_preproc" >&6
16900 # So? What about this header?
16901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16902 yes:no: )
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16907 ac_header_preproc=yes
16909 no:yes:* )
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16923 cat <<\_ASBOX
16924 ## ------------------------------------------ ##
16925 ## Report this to the AC_PACKAGE_NAME lists. ##
16926 ## ------------------------------------------ ##
16927 _ASBOX
16929 sed "s/^/$as_me: WARNING: /" >&2
16931 esac
16932 echo "$as_me:$LINENO: checking for $ac_header" >&5
16933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937 eval "$as_ac_Header=\$ac_header_preproc"
16939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16946 _ACEOF
16950 done
16955 for ac_header in nlist.h
16957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16959 echo "$as_me:$LINENO: checking for $ac_header" >&5
16960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16966 else
16967 # Is the header compilable?
16968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16970 cat >conftest.$ac_ext <<_ACEOF
16971 /* confdefs.h. */
16972 _ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 $ac_includes_default
16977 #include <$ac_header>
16978 _ACEOF
16979 rm -f conftest.$ac_objext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag"
16989 || test ! -s conftest.err'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest.$ac_objext'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 ac_header_compiler=yes
17002 else
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ac_header_compiler=no
17008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17010 echo "${ECHO_T}$ac_header_compiler" >&6
17012 # Is the header present?
17013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 #include <$ac_header>
17022 _ACEOF
17023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } >/dev/null; then
17031 if test -s conftest.err; then
17032 ac_cpp_err=$ac_c_preproc_warn_flag
17033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17034 else
17035 ac_cpp_err=
17037 else
17038 ac_cpp_err=yes
17040 if test -z "$ac_cpp_err"; then
17041 ac_header_preproc=yes
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 ac_header_preproc=no
17048 rm -f conftest.err conftest.$ac_ext
17049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17050 echo "${ECHO_T}$ac_header_preproc" >&6
17052 # So? What about this header?
17053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17054 yes:no: )
17055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17059 ac_header_preproc=yes
17061 no:yes:* )
17062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17075 cat <<\_ASBOX
17076 ## ------------------------------------------ ##
17077 ## Report this to the AC_PACKAGE_NAME lists. ##
17078 ## ------------------------------------------ ##
17079 _ASBOX
17081 sed "s/^/$as_me: WARNING: /" >&2
17083 esac
17084 echo "$as_me:$LINENO: checking for $ac_header" >&5
17085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089 eval "$as_ac_Header=\$ac_header_preproc"
17091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17096 cat >>confdefs.h <<_ACEOF
17097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17098 _ACEOF
17099 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17100 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17101 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104 cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h. */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 #include <nlist.h>
17113 main ()
17115 static struct nlist ac_aggr;
17116 if (ac_aggr.n_un.n_name)
17117 return 0;
17119 return 0;
17121 _ACEOF
17122 rm -f conftest.$ac_objext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17124 (eval $ac_compile) 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
17131 { ac_try='test -z "$ac_c_werror_flag"
17132 || test ! -s conftest.err'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest.$ac_objext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 ac_cv_member_struct_nlist_n_un_n_name=yes
17145 else
17146 echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17149 cat >conftest.$ac_ext <<_ACEOF
17150 /* confdefs.h. */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 #include <nlist.h>
17158 main ()
17160 static struct nlist ac_aggr;
17161 if (sizeof ac_aggr.n_un.n_name)
17162 return 0;
17164 return 0;
17166 _ACEOF
17167 rm -f conftest.$ac_objext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17169 (eval $ac_compile) 2>conftest.er1
17170 ac_status=$?
17171 grep -v '^ *+' conftest.er1 >conftest.err
17172 rm -f conftest.er1
17173 cat conftest.err >&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } &&
17176 { ac_try='test -z "$ac_c_werror_flag"
17177 || test ! -s conftest.err'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try='test -s conftest.$ac_objext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 ac_cv_member_struct_nlist_n_un_n_name=yes
17190 else
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 ac_cv_member_struct_nlist_n_un_n_name=no
17196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17200 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17201 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17202 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17204 cat >>confdefs.h <<_ACEOF
17205 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17206 _ACEOF
17209 cat >>confdefs.h <<\_ACEOF
17210 #define NLIST_NAME_UNION 1
17211 _ACEOF
17218 done
17221 done
17224 # Some definitions of getloadavg require that the program be installed setgid.
17225 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17226 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17227 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h. */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17237 #ifdef LDAV_PRIVILEGED
17238 Yowza Am I SETGID yet
17239 #endif
17240 _ACEOF
17241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17242 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17243 ac_cv_func_getloadavg_setgid=yes
17244 else
17245 ac_cv_func_getloadavg_setgid=no
17247 rm -f conftest*
17250 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17251 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17252 if test $ac_cv_func_getloadavg_setgid = yes; then
17253 NEED_SETGID=true
17255 cat >>confdefs.h <<\_ACEOF
17256 #define GETLOADAVG_PRIVILEGED 1
17257 _ACEOF
17259 else
17260 NEED_SETGID=false
17263 if test $ac_cv_func_getloadavg_setgid = yes; then
17264 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17265 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17266 if test "${ac_cv_group_kmem+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17270 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17271 # If we got an error (system does not support symlinks), try without -L.
17272 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17273 ac_cv_group_kmem=`echo $ac_ls_output \
17274 | sed -ne 's/[ ][ ]*/ /g;
17275 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17276 / /s/.* //;p;'`
17279 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17280 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17281 KMEM_GROUP=$ac_cv_group_kmem
17283 if test "x$ac_save_LIBS" = x; then
17284 GETLOADAVG_LIBS=$LIBS
17285 else
17286 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17288 LIBS=$ac_save_LIBS
17292 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17293 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17294 if test "${ac_cv_sys_largefile_source+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 while :; do
17298 ac_cv_sys_largefile_source=no
17299 cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h. */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 #include <stdio.h>
17307 main ()
17309 return !fseeko;
17311 return 0;
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 break
17337 else
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 #define _LARGEFILE_SOURCE 1
17350 #include <stdio.h>
17352 main ()
17354 return !fseeko;
17356 return 0;
17358 _ACEOF
17359 rm -f conftest.$ac_objext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17361 (eval $ac_compile) 2>conftest.er1
17362 ac_status=$?
17363 grep -v '^ *+' conftest.er1 >conftest.err
17364 rm -f conftest.er1
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -z "$ac_c_werror_flag"
17369 || test ! -s conftest.err'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest.$ac_objext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 ac_cv_sys_largefile_source=1; break
17382 else
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17388 break
17389 done
17391 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17392 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17393 if test "$ac_cv_sys_largefile_source" != no; then
17395 cat >>confdefs.h <<_ACEOF
17396 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17397 _ACEOF
17400 rm -f conftest*
17402 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17403 # in glibc 2.1.3, but that breaks too many other things.
17404 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17405 echo "$as_me:$LINENO: checking for fseeko" >&5
17406 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17407 if test "${ac_cv_func_fseeko+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410 cat >conftest.$ac_ext <<_ACEOF
17411 /* confdefs.h. */
17412 _ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h. */
17416 #include <stdio.h>
17418 main ()
17420 return fseeko && fseeko (stdin, 0, 0);
17422 return 0;
17424 _ACEOF
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427 (eval $ac_link) 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest$ac_exeext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17447 ac_cv_func_fseeko=yes
17448 else
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 ac_cv_func_fseeko=no
17454 rm -f conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17457 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17458 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17459 if test $ac_cv_func_fseeko = yes; then
17461 cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_FSEEKO 1
17463 _ACEOF
17468 # Configure getopt.
17469 # getopt.m4 serial 10
17471 # The getopt module assume you want GNU getopt, with getopt_long etc,
17472 # rather than vanilla POSIX getopt. This means your your code should
17473 # always include <getopt.h> for the getopt prototypes.
17485 # Prerequisites of lib/getopt*.
17490 GETOPT_H=
17492 for ac_header in getopt.h
17494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17496 echo "$as_me:$LINENO: checking for $ac_header" >&5
17497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17503 else
17504 # Is the header compilable?
17505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17507 cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h. */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17513 $ac_includes_default
17514 #include <$ac_header>
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17518 (eval $ac_compile) 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_c_werror_flag"
17526 || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_header_compiler=yes
17539 else
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_header_compiler=no
17545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17547 echo "${ECHO_T}$ac_header_compiler" >&6
17549 # Is the header present?
17550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17552 cat >conftest.$ac_ext <<_ACEOF
17553 /* confdefs.h. */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 #include <$ac_header>
17559 _ACEOF
17560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } >/dev/null; then
17568 if test -s conftest.err; then
17569 ac_cpp_err=$ac_c_preproc_warn_flag
17570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17571 else
17572 ac_cpp_err=
17574 else
17575 ac_cpp_err=yes
17577 if test -z "$ac_cpp_err"; then
17578 ac_header_preproc=yes
17579 else
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 ac_header_preproc=no
17585 rm -f conftest.err conftest.$ac_ext
17586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17587 echo "${ECHO_T}$ac_header_preproc" >&6
17589 # So? What about this header?
17590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17591 yes:no: )
17592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17596 ac_header_preproc=yes
17598 no:yes:* )
17599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17612 cat <<\_ASBOX
17613 ## ------------------------------------------ ##
17614 ## Report this to the AC_PACKAGE_NAME lists. ##
17615 ## ------------------------------------------ ##
17616 _ASBOX
17618 sed "s/^/$as_me: WARNING: /" >&2
17620 esac
17621 echo "$as_me:$LINENO: checking for $ac_header" >&5
17622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626 eval "$as_ac_Header=\$ac_header_preproc"
17628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17633 cat >>confdefs.h <<_ACEOF
17634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17635 _ACEOF
17637 else
17638 GETOPT_H=getopt.h
17641 done
17643 if test -z "$GETOPT_H"; then
17645 for ac_func in getopt_long_only
17647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17648 echo "$as_me:$LINENO: checking for $ac_func" >&5
17649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17650 if eval "test \"\${$as_ac_var+set}\" = set"; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 else
17653 cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h. */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17661 #define $ac_func innocuous_$ac_func
17663 /* System header to define __stub macros and hopefully few prototypes,
17664 which can conflict with char $ac_func (); below.
17665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17666 <limits.h> exists even on freestanding compilers. */
17668 #ifdef __STDC__
17669 # include <limits.h>
17670 #else
17671 # include <assert.h>
17672 #endif
17674 #undef $ac_func
17676 /* Override any gcc2 internal prototype to avoid an error. */
17677 #ifdef __cplusplus
17678 extern "C"
17680 #endif
17681 /* We use char because int might match the return type of a gcc2
17682 builtin and then its argument prototype would still apply. */
17683 char $ac_func ();
17684 /* The GNU C library defines this for functions which it implements
17685 to always fail with ENOSYS. Some functions are actually named
17686 something starting with __ and the normal name is an alias. */
17687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17688 choke me
17689 #else
17690 char (*f) () = $ac_func;
17691 #endif
17692 #ifdef __cplusplus
17694 #endif
17697 main ()
17699 return f != $ac_func;
17701 return 0;
17703 _ACEOF
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706 (eval $ac_link) 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try='test -z "$ac_c_werror_flag"
17714 || test ! -s conftest.err'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest$ac_exeext'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 eval "$as_ac_var=yes"
17727 else
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 eval "$as_ac_var=no"
17733 rm -f conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17738 if test `eval echo '${'$as_ac_var'}'` = yes; then
17739 cat >>confdefs.h <<_ACEOF
17740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17741 _ACEOF
17743 else
17744 GETOPT_H=getopt.h
17746 done
17750 if test -z "$GETOPT_H"; then
17751 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17752 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17753 if test "${ac_cv_have_decl_optreset+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756 cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h. */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 #include <getopt.h>
17765 main ()
17767 #ifndef optreset
17768 char *p = (char *) optreset;
17769 #endif
17772 return 0;
17774 _ACEOF
17775 rm -f conftest.$ac_objext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17777 (eval $ac_compile) 2>conftest.er1
17778 ac_status=$?
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -z "$ac_c_werror_flag"
17785 || test ! -s conftest.err'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } &&
17791 { ac_try='test -s conftest.$ac_objext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_cv_have_decl_optreset=yes
17798 else
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 ac_cv_have_decl_optreset=no
17804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17806 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17807 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17808 if test $ac_cv_have_decl_optreset = yes; then
17809 GETOPT_H=getopt.h
17814 if test -z "$GETOPT_H"; then
17815 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17816 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17817 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 else
17820 if test "$cross_compiling" = yes; then
17821 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17822 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17823 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826 cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h. */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 #include <getopt.h>
17835 main ()
17837 #ifndef getopt_clip
17838 char *p = (char *) getopt_clip;
17839 #endif
17842 return 0;
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>conftest.er1
17848 ac_status=$?
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_cv_have_decl_getopt_clip=yes
17868 else
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_cv_have_decl_getopt_clip=no
17874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17877 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17878 if test $ac_cv_have_decl_getopt_clip = yes; then
17879 gl_cv_func_gnu_getopt=no
17880 else
17881 gl_cv_func_gnu_getopt=yes
17884 else
17885 cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h. */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891 #include <getopt.h>
17893 main ()
17896 char *myargv[3];
17897 myargv[0] = "conftest";
17898 myargv[1] = "-+";
17899 myargv[2] = 0;
17900 return getopt (2, myargv, "+a") != '?';
17903 return 0;
17905 _ACEOF
17906 rm -f conftest$ac_exeext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908 (eval $ac_link) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 gl_cv_func_gnu_getopt=yes
17918 else
17919 echo "$as_me: program exited with status $ac_status" >&5
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17923 ( exit $ac_status )
17924 gl_cv_func_gnu_getopt=no
17926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17929 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17930 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17931 if test "$gl_cv_func_gnu_getopt" = "no"; then
17932 GETOPT_H=getopt.h
17938 if test -n "$GETOPT_H"; then
17941 GETOPT_H=getopt.h
17943 cat >>confdefs.h <<\_ACEOF
17944 #define __GETOPT_PREFIX rpl_
17945 _ACEOF
17950 GETOPTOBJS='getopt.o getopt1.o'
17957 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17958 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17959 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962 # Use it with a single arg.
17963 cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h. */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 $ac_includes_default
17971 main ()
17973 getpgrp (0);
17975 return 0;
17977 _ACEOF
17978 rm -f conftest.$ac_objext
17979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17980 (eval $ac_compile) 2>conftest.er1
17981 ac_status=$?
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try='test -z "$ac_c_werror_flag"
17988 || test ! -s conftest.err'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_func_getpgrp_void=no
18001 else
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_cv_func_getpgrp_void=yes
18007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18010 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18011 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18012 if test $ac_cv_func_getpgrp_void = yes; then
18014 cat >>confdefs.h <<\_ACEOF
18015 #define GETPGRP_VOID 1
18016 _ACEOF
18022 for ac_func in strftime
18024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18025 echo "$as_me:$LINENO: checking for $ac_func" >&5
18026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18027 if eval "test \"\${$as_ac_var+set}\" = set"; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h. */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18038 #define $ac_func innocuous_$ac_func
18040 /* System header to define __stub macros and hopefully few prototypes,
18041 which can conflict with char $ac_func (); below.
18042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18043 <limits.h> exists even on freestanding compilers. */
18045 #ifdef __STDC__
18046 # include <limits.h>
18047 #else
18048 # include <assert.h>
18049 #endif
18051 #undef $ac_func
18053 /* Override any gcc2 internal prototype to avoid an error. */
18054 #ifdef __cplusplus
18055 extern "C"
18057 #endif
18058 /* We use char because int might match the return type of a gcc2
18059 builtin and then its argument prototype would still apply. */
18060 char $ac_func ();
18061 /* The GNU C library defines this for functions which it implements
18062 to always fail with ENOSYS. Some functions are actually named
18063 something starting with __ and the normal name is an alias. */
18064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18065 choke me
18066 #else
18067 char (*f) () = $ac_func;
18068 #endif
18069 #ifdef __cplusplus
18071 #endif
18074 main ()
18076 return f != $ac_func;
18078 return 0;
18080 _ACEOF
18081 rm -f conftest.$ac_objext conftest$ac_exeext
18082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083 (eval $ac_link) 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag"
18091 || test ! -s conftest.err'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest$ac_exeext'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 eval "$as_ac_var=yes"
18104 else
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 eval "$as_ac_var=no"
18110 rm -f conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18115 if test `eval echo '${'$as_ac_var'}'` = yes; then
18116 cat >>confdefs.h <<_ACEOF
18117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18118 _ACEOF
18120 else
18121 # strftime is in -lintl on SCO UNIX.
18122 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18123 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18124 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127 ac_check_lib_save_LIBS=$LIBS
18128 LIBS="-lintl $LIBS"
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h. */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18136 /* Override any gcc2 internal prototype to avoid an error. */
18137 #ifdef __cplusplus
18138 extern "C"
18139 #endif
18140 /* We use char because int might match the return type of a gcc2
18141 builtin and then its argument prototype would still apply. */
18142 char strftime ();
18144 main ()
18146 strftime ();
18148 return 0;
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153 (eval $ac_link) 2>conftest.er1
18154 ac_status=$?
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag"
18161 || test ! -s conftest.err'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; } &&
18167 { ac_try='test -s conftest$ac_exeext'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 ac_cv_lib_intl_strftime=yes
18174 else
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 ac_cv_lib_intl_strftime=no
18180 rm -f conftest.err conftest.$ac_objext \
18181 conftest$ac_exeext conftest.$ac_ext
18182 LIBS=$ac_check_lib_save_LIBS
18184 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18185 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18186 if test $ac_cv_lib_intl_strftime = yes; then
18187 cat >>confdefs.h <<\_ACEOF
18188 #define HAVE_STRFTIME 1
18189 _ACEOF
18191 LIBS="-lintl $LIBS"
18195 done
18198 # UNIX98 PTYs.
18200 for ac_func in grantpt
18202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18203 echo "$as_me:$LINENO: checking for $ac_func" >&5
18204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18205 if eval "test \"\${$as_ac_var+set}\" = set"; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208 cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h. */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18216 #define $ac_func innocuous_$ac_func
18218 /* System header to define __stub macros and hopefully few prototypes,
18219 which can conflict with char $ac_func (); below.
18220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18221 <limits.h> exists even on freestanding compilers. */
18223 #ifdef __STDC__
18224 # include <limits.h>
18225 #else
18226 # include <assert.h>
18227 #endif
18229 #undef $ac_func
18231 /* Override any gcc2 internal prototype to avoid an error. */
18232 #ifdef __cplusplus
18233 extern "C"
18235 #endif
18236 /* We use char because int might match the return type of a gcc2
18237 builtin and then its argument prototype would still apply. */
18238 char $ac_func ();
18239 /* The GNU C library defines this for functions which it implements
18240 to always fail with ENOSYS. Some functions are actually named
18241 something starting with __ and the normal name is an alias. */
18242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18243 choke me
18244 #else
18245 char (*f) () = $ac_func;
18246 #endif
18247 #ifdef __cplusplus
18249 #endif
18252 main ()
18254 return f != $ac_func;
18256 return 0;
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18261 (eval $ac_link) 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest$ac_exeext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 eval "$as_ac_var=yes"
18282 else
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 eval "$as_ac_var=no"
18288 rm -f conftest.err conftest.$ac_objext \
18289 conftest$ac_exeext conftest.$ac_ext
18291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18293 if test `eval echo '${'$as_ac_var'}'` = yes; then
18294 cat >>confdefs.h <<_ACEOF
18295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18296 _ACEOF
18299 done
18302 # PTY-related GNU extensions.
18304 for ac_func in getpt
18306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18307 echo "$as_me:$LINENO: checking for $ac_func" >&5
18308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18309 if eval "test \"\${$as_ac_var+set}\" = set"; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 else
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h. */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18320 #define $ac_func innocuous_$ac_func
18322 /* System header to define __stub macros and hopefully few prototypes,
18323 which can conflict with char $ac_func (); below.
18324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18325 <limits.h> exists even on freestanding compilers. */
18327 #ifdef __STDC__
18328 # include <limits.h>
18329 #else
18330 # include <assert.h>
18331 #endif
18333 #undef $ac_func
18335 /* Override any gcc2 internal prototype to avoid an error. */
18336 #ifdef __cplusplus
18337 extern "C"
18339 #endif
18340 /* We use char because int might match the return type of a gcc2
18341 builtin and then its argument prototype would still apply. */
18342 char $ac_func ();
18343 /* The GNU C library defines this for functions which it implements
18344 to always fail with ENOSYS. Some functions are actually named
18345 something starting with __ and the normal name is an alias. */
18346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18347 choke me
18348 #else
18349 char (*f) () = $ac_func;
18350 #endif
18351 #ifdef __cplusplus
18353 #endif
18356 main ()
18358 return f != $ac_func;
18360 return 0;
18362 _ACEOF
18363 rm -f conftest.$ac_objext conftest$ac_exeext
18364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18365 (eval $ac_link) 2>conftest.er1
18366 ac_status=$?
18367 grep -v '^ *+' conftest.er1 >conftest.err
18368 rm -f conftest.er1
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } &&
18372 { ac_try='test -z "$ac_c_werror_flag"
18373 || test ! -s conftest.err'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } &&
18379 { ac_try='test -s conftest$ac_exeext'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; }; then
18385 eval "$as_ac_var=yes"
18386 else
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 eval "$as_ac_var=no"
18392 rm -f conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
18395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18397 if test `eval echo '${'$as_ac_var'}'` = yes; then
18398 cat >>confdefs.h <<_ACEOF
18399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18400 _ACEOF
18403 done
18406 # Check this now, so that we will NOT find the above functions in ncurses.
18407 # That is because we have not set up to link ncurses in lib-src.
18408 # It's better to believe a function is not available
18409 # than to expect to find it in ncurses.
18411 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18412 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18413 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416 ac_check_lib_save_LIBS=$LIBS
18417 LIBS="-lncurses $LIBS"
18418 cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h. */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18425 /* Override any gcc2 internal prototype to avoid an error. */
18426 #ifdef __cplusplus
18427 extern "C"
18428 #endif
18429 /* We use char because int might match the return type of a gcc2
18430 builtin and then its argument prototype would still apply. */
18431 char tparm ();
18433 main ()
18435 tparm ();
18437 return 0;
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18442 (eval $ac_link) 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag"
18450 || test ! -s conftest.err'
18451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452 (eval $ac_try) 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; } &&
18456 { ac_try='test -s conftest$ac_exeext'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; }; then
18462 ac_cv_lib_ncurses_tparm=yes
18463 else
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 ac_cv_lib_ncurses_tparm=no
18469 rm -f conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18473 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18474 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18475 if test $ac_cv_lib_ncurses_tparm = yes; then
18476 cat >>confdefs.h <<_ACEOF
18477 #define HAVE_LIBNCURSES 1
18478 _ACEOF
18480 LIBS="-lncurses $LIBS"
18485 # Do we need the Hesiod library to provide the support routines?
18486 if test "$with_hesiod" = yes ; then
18487 # Don't set $LIBS here -- see comments above.
18488 resolv=no
18489 echo "$as_me:$LINENO: checking for res_send" >&5
18490 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18491 if test "${ac_cv_func_res_send+set}" = set; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 else
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h. */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18502 #define res_send innocuous_res_send
18504 /* System header to define __stub macros and hopefully few prototypes,
18505 which can conflict with char res_send (); below.
18506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18507 <limits.h> exists even on freestanding compilers. */
18509 #ifdef __STDC__
18510 # include <limits.h>
18511 #else
18512 # include <assert.h>
18513 #endif
18515 #undef res_send
18517 /* Override any gcc2 internal prototype to avoid an error. */
18518 #ifdef __cplusplus
18519 extern "C"
18521 #endif
18522 /* We use char because int might match the return type of a gcc2
18523 builtin and then its argument prototype would still apply. */
18524 char res_send ();
18525 /* The GNU C library defines this for functions which it implements
18526 to always fail with ENOSYS. Some functions are actually named
18527 something starting with __ and the normal name is an alias. */
18528 #if defined (__stub_res_send) || defined (__stub___res_send)
18529 choke me
18530 #else
18531 char (*f) () = res_send;
18532 #endif
18533 #ifdef __cplusplus
18535 #endif
18538 main ()
18540 return f != res_send;
18542 return 0;
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_func_res_send=yes
18568 else
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18572 ac_cv_func_res_send=no
18574 rm -f conftest.err conftest.$ac_objext \
18575 conftest$ac_exeext conftest.$ac_ext
18577 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18578 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18579 if test $ac_cv_func_res_send = yes; then
18581 else
18582 echo "$as_me:$LINENO: checking for __res_send" >&5
18583 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18584 if test "${ac_cv_func___res_send+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18595 #define __res_send innocuous___res_send
18597 /* System header to define __stub macros and hopefully few prototypes,
18598 which can conflict with char __res_send (); below.
18599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18600 <limits.h> exists even on freestanding compilers. */
18602 #ifdef __STDC__
18603 # include <limits.h>
18604 #else
18605 # include <assert.h>
18606 #endif
18608 #undef __res_send
18610 /* Override any gcc2 internal prototype to avoid an error. */
18611 #ifdef __cplusplus
18612 extern "C"
18614 #endif
18615 /* We use char because int might match the return type of a gcc2
18616 builtin and then its argument prototype would still apply. */
18617 char __res_send ();
18618 /* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621 #if defined (__stub___res_send) || defined (__stub_____res_send)
18622 choke me
18623 #else
18624 char (*f) () = __res_send;
18625 #endif
18626 #ifdef __cplusplus
18628 #endif
18631 main ()
18633 return f != __res_send;
18635 return 0;
18637 _ACEOF
18638 rm -f conftest.$ac_objext conftest$ac_exeext
18639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18640 (eval $ac_link) 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag"
18648 || test ! -s conftest.err'
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest$ac_exeext'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18660 ac_cv_func___res_send=yes
18661 else
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_cv_func___res_send=no
18667 rm -f conftest.err conftest.$ac_objext \
18668 conftest$ac_exeext conftest.$ac_ext
18670 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18671 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18672 if test $ac_cv_func___res_send = yes; then
18674 else
18675 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18676 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18677 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680 ac_check_lib_save_LIBS=$LIBS
18681 LIBS="-lresolv $LIBS"
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18689 /* Override any gcc2 internal prototype to avoid an error. */
18690 #ifdef __cplusplus
18691 extern "C"
18692 #endif
18693 /* We use char because int might match the return type of a gcc2
18694 builtin and then its argument prototype would still apply. */
18695 char res_send ();
18697 main ()
18699 res_send ();
18701 return 0;
18703 _ACEOF
18704 rm -f conftest.$ac_objext conftest$ac_exeext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18706 (eval $ac_link) 2>conftest.er1
18707 ac_status=$?
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_c_werror_flag"
18714 || test ! -s conftest.err'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest$ac_exeext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 ac_cv_lib_resolv_res_send=yes
18727 else
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 ac_cv_lib_resolv_res_send=no
18733 rm -f conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18737 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18738 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18739 if test $ac_cv_lib_resolv_res_send = yes; then
18740 resolv=yes
18741 else
18742 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18743 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18744 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747 ac_check_lib_save_LIBS=$LIBS
18748 LIBS="-lresolv $LIBS"
18749 cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h. */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18756 /* Override any gcc2 internal prototype to avoid an error. */
18757 #ifdef __cplusplus
18758 extern "C"
18759 #endif
18760 /* We use char because int might match the return type of a gcc2
18761 builtin and then its argument prototype would still apply. */
18762 char __res_send ();
18764 main ()
18766 __res_send ();
18768 return 0;
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773 (eval $ac_link) 2>conftest.er1
18774 ac_status=$?
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_lib_resolv___res_send=yes
18794 else
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18798 ac_cv_lib_resolv___res_send=no
18800 rm -f conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18804 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18805 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18806 if test $ac_cv_lib_resolv___res_send = yes; then
18807 resolv=yes
18816 if test "$resolv" = yes ; then
18817 RESOLVLIB=-lresolv
18819 cat >>confdefs.h <<\_ACEOF
18820 #define HAVE_LIBRESOLV 1
18821 _ACEOF
18823 else
18824 RESOLVLIB=
18826 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18827 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18828 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18839 #define hes_getmailhost innocuous_hes_getmailhost
18841 /* System header to define __stub macros and hopefully few prototypes,
18842 which can conflict with char hes_getmailhost (); below.
18843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18844 <limits.h> exists even on freestanding compilers. */
18846 #ifdef __STDC__
18847 # include <limits.h>
18848 #else
18849 # include <assert.h>
18850 #endif
18852 #undef hes_getmailhost
18854 /* Override any gcc2 internal prototype to avoid an error. */
18855 #ifdef __cplusplus
18856 extern "C"
18858 #endif
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18861 char hes_getmailhost ();
18862 /* The GNU C library defines this for functions which it implements
18863 to always fail with ENOSYS. Some functions are actually named
18864 something starting with __ and the normal name is an alias. */
18865 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18866 choke me
18867 #else
18868 char (*f) () = hes_getmailhost;
18869 #endif
18870 #ifdef __cplusplus
18872 #endif
18875 main ()
18877 return f != hes_getmailhost;
18879 return 0;
18881 _ACEOF
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884 (eval $ac_link) 2>conftest.er1
18885 ac_status=$?
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag"
18892 || test ! -s conftest.err'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } &&
18898 { ac_try='test -s conftest$ac_exeext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_cv_func_hes_getmailhost=yes
18905 else
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 ac_cv_func_hes_getmailhost=no
18911 rm -f conftest.err conftest.$ac_objext \
18912 conftest$ac_exeext conftest.$ac_ext
18914 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18915 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18916 if test $ac_cv_func_hes_getmailhost = yes; then
18918 else
18919 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18920 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18921 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924 ac_check_lib_save_LIBS=$LIBS
18925 LIBS="-lhesiod $RESOLVLIB $LIBS"
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h. */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18933 /* Override any gcc2 internal prototype to avoid an error. */
18934 #ifdef __cplusplus
18935 extern "C"
18936 #endif
18937 /* We use char because int might match the return type of a gcc2
18938 builtin and then its argument prototype would still apply. */
18939 char hes_getmailhost ();
18941 main ()
18943 hes_getmailhost ();
18945 return 0;
18947 _ACEOF
18948 rm -f conftest.$ac_objext conftest$ac_exeext
18949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18950 (eval $ac_link) 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -z "$ac_c_werror_flag"
18958 || test ! -s conftest.err'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; } &&
18964 { ac_try='test -s conftest$ac_exeext'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 ac_cv_lib_hesiod_hes_getmailhost=yes
18971 else
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_cv_lib_hesiod_hes_getmailhost=no
18977 rm -f conftest.err conftest.$ac_objext \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18981 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18982 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18983 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18985 cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_LIBHESIOD 1
18987 _ACEOF
18989 else
18997 # These tell us which Kerberos-related libraries to use.
18998 if test "${with_kerberos+set}" = set; then
19000 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19001 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19002 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 else
19005 ac_check_lib_save_LIBS=$LIBS
19006 LIBS="-lcom_err $LIBS"
19007 cat >conftest.$ac_ext <<_ACEOF
19008 /* confdefs.h. */
19009 _ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h. */
19014 /* Override any gcc2 internal prototype to avoid an error. */
19015 #ifdef __cplusplus
19016 extern "C"
19017 #endif
19018 /* We use char because int might match the return type of a gcc2
19019 builtin and then its argument prototype would still apply. */
19020 char com_err ();
19022 main ()
19024 com_err ();
19026 return 0;
19028 _ACEOF
19029 rm -f conftest.$ac_objext conftest$ac_exeext
19030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19031 (eval $ac_link) 2>conftest.er1
19032 ac_status=$?
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
19038 { ac_try='test -z "$ac_c_werror_flag"
19039 || test ! -s conftest.err'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest$ac_exeext'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_cv_lib_com_err_com_err=yes
19052 else
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_cv_lib_com_err_com_err=no
19058 rm -f conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
19060 LIBS=$ac_check_lib_save_LIBS
19062 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19063 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19064 if test $ac_cv_lib_com_err_com_err = yes; then
19065 cat >>confdefs.h <<_ACEOF
19066 #define HAVE_LIBCOM_ERR 1
19067 _ACEOF
19069 LIBS="-lcom_err $LIBS"
19074 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19075 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19076 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079 ac_check_lib_save_LIBS=$LIBS
19080 LIBS="-lk5crypto $LIBS"
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h. */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19088 /* Override any gcc2 internal prototype to avoid an error. */
19089 #ifdef __cplusplus
19090 extern "C"
19091 #endif
19092 /* We use char because int might match the return type of a gcc2
19093 builtin and then its argument prototype would still apply. */
19094 char mit_des_cbc_encrypt ();
19096 main ()
19098 mit_des_cbc_encrypt ();
19100 return 0;
19102 _ACEOF
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest$ac_exeext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19126 else
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19132 rm -f conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
19134 LIBS=$ac_check_lib_save_LIBS
19136 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19137 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19138 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19139 cat >>confdefs.h <<_ACEOF
19140 #define HAVE_LIBK5CRYPTO 1
19141 _ACEOF
19143 LIBS="-lk5crypto $LIBS"
19148 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19149 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19150 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 else
19153 ac_check_lib_save_LIBS=$LIBS
19154 LIBS="-lcrypto $LIBS"
19155 cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h. */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19162 /* Override any gcc2 internal prototype to avoid an error. */
19163 #ifdef __cplusplus
19164 extern "C"
19165 #endif
19166 /* We use char because int might match the return type of a gcc2
19167 builtin and then its argument prototype would still apply. */
19168 char mit_des_cbc_encrypt ();
19170 main ()
19172 mit_des_cbc_encrypt ();
19174 return 0;
19176 _ACEOF
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19179 (eval $ac_link) 2>conftest.er1
19180 ac_status=$?
19181 grep -v '^ *+' conftest.er1 >conftest.err
19182 rm -f conftest.er1
19183 cat conftest.err >&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } &&
19186 { ac_try='test -z "$ac_c_werror_flag"
19187 || test ! -s conftest.err'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest$ac_exeext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19200 else
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19206 rm -f conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19210 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19211 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19212 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19213 cat >>confdefs.h <<_ACEOF
19214 #define HAVE_LIBCRYPTO 1
19215 _ACEOF
19217 LIBS="-lcrypto $LIBS"
19222 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19223 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19224 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 else
19227 ac_check_lib_save_LIBS=$LIBS
19228 LIBS="-lkrb5 $LIBS"
19229 cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h. */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19236 /* Override any gcc2 internal prototype to avoid an error. */
19237 #ifdef __cplusplus
19238 extern "C"
19239 #endif
19240 /* We use char because int might match the return type of a gcc2
19241 builtin and then its argument prototype would still apply. */
19242 char krb5_init_context ();
19244 main ()
19246 krb5_init_context ();
19248 return 0;
19250 _ACEOF
19251 rm -f conftest.$ac_objext conftest$ac_exeext
19252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19253 (eval $ac_link) 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } &&
19260 { ac_try='test -z "$ac_c_werror_flag"
19261 || test ! -s conftest.err'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; } &&
19267 { ac_try='test -s conftest$ac_exeext'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; }; then
19273 ac_cv_lib_krb5_krb5_init_context=yes
19274 else
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 ac_cv_lib_krb5_krb5_init_context=no
19280 rm -f conftest.err conftest.$ac_objext \
19281 conftest$ac_exeext conftest.$ac_ext
19282 LIBS=$ac_check_lib_save_LIBS
19284 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19285 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19286 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19287 cat >>confdefs.h <<_ACEOF
19288 #define HAVE_LIBKRB5 1
19289 _ACEOF
19291 LIBS="-lkrb5 $LIBS"
19295 if test "${with_kerberos5+set}" != set; then
19297 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19298 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19299 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19301 else
19302 ac_check_lib_save_LIBS=$LIBS
19303 LIBS="-ldes425 $LIBS"
19304 cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h. */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19311 /* Override any gcc2 internal prototype to avoid an error. */
19312 #ifdef __cplusplus
19313 extern "C"
19314 #endif
19315 /* We use char because int might match the return type of a gcc2
19316 builtin and then its argument prototype would still apply. */
19317 char des_cbc_encrypt ();
19319 main ()
19321 des_cbc_encrypt ();
19323 return 0;
19325 _ACEOF
19326 rm -f conftest.$ac_objext conftest$ac_exeext
19327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19328 (eval $ac_link) 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag"
19336 || test ! -s conftest.err'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try='test -s conftest$ac_exeext'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348 ac_cv_lib_des425_des_cbc_encrypt=yes
19349 else
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 ac_cv_lib_des425_des_cbc_encrypt=no
19355 rm -f conftest.err conftest.$ac_objext \
19356 conftest$ac_exeext conftest.$ac_ext
19357 LIBS=$ac_check_lib_save_LIBS
19359 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19360 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19361 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_LIBDES425 1
19364 _ACEOF
19366 LIBS="-ldes425 $LIBS"
19368 else
19370 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19371 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19372 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375 ac_check_lib_save_LIBS=$LIBS
19376 LIBS="-ldes $LIBS"
19377 cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h. */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19384 /* Override any gcc2 internal prototype to avoid an error. */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 /* We use char because int might match the return type of a gcc2
19389 builtin and then its argument prototype would still apply. */
19390 char des_cbc_encrypt ();
19392 main ()
19394 des_cbc_encrypt ();
19396 return 0;
19398 _ACEOF
19399 rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19401 (eval $ac_link) 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_c_werror_flag"
19409 || test ! -s conftest.err'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } &&
19415 { ac_try='test -s conftest$ac_exeext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_cv_lib_des_des_cbc_encrypt=yes
19422 else
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 ac_cv_lib_des_des_cbc_encrypt=no
19428 rm -f conftest.err conftest.$ac_objext \
19429 conftest$ac_exeext conftest.$ac_ext
19430 LIBS=$ac_check_lib_save_LIBS
19432 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19433 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19434 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19435 cat >>confdefs.h <<_ACEOF
19436 #define HAVE_LIBDES 1
19437 _ACEOF
19439 LIBS="-ldes $LIBS"
19446 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19447 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19448 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19450 else
19451 ac_check_lib_save_LIBS=$LIBS
19452 LIBS="-lkrb4 $LIBS"
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h. */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19460 /* Override any gcc2 internal prototype to avoid an error. */
19461 #ifdef __cplusplus
19462 extern "C"
19463 #endif
19464 /* We use char because int might match the return type of a gcc2
19465 builtin and then its argument prototype would still apply. */
19466 char krb_get_cred ();
19468 main ()
19470 krb_get_cred ();
19472 return 0;
19474 _ACEOF
19475 rm -f conftest.$ac_objext conftest$ac_exeext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19477 (eval $ac_link) 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag"
19485 || test ! -s conftest.err'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try='test -s conftest$ac_exeext'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19497 ac_cv_lib_krb4_krb_get_cred=yes
19498 else
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_cv_lib_krb4_krb_get_cred=no
19504 rm -f conftest.err conftest.$ac_objext \
19505 conftest$ac_exeext conftest.$ac_ext
19506 LIBS=$ac_check_lib_save_LIBS
19508 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19509 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19510 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19511 cat >>confdefs.h <<_ACEOF
19512 #define HAVE_LIBKRB4 1
19513 _ACEOF
19515 LIBS="-lkrb4 $LIBS"
19517 else
19519 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19520 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19521 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524 ac_check_lib_save_LIBS=$LIBS
19525 LIBS="-lkrb $LIBS"
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 /* Override any gcc2 internal prototype to avoid an error. */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19539 char krb_get_cred ();
19541 main ()
19543 krb_get_cred ();
19545 return 0;
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_lib_krb_krb_get_cred=yes
19571 else
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_lib_krb_krb_get_cred=no
19577 rm -f conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19582 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19583 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19584 cat >>confdefs.h <<_ACEOF
19585 #define HAVE_LIBKRB 1
19586 _ACEOF
19588 LIBS="-lkrb $LIBS"
19596 if test "${with_kerberos5+set}" = set; then
19598 for ac_header in krb5.h
19600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602 echo "$as_me:$LINENO: checking for $ac_header" >&5
19603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19609 else
19610 # Is the header compilable?
19611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h. */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 $ac_includes_default
19620 #include <$ac_header>
19621 _ACEOF
19622 rm -f conftest.$ac_objext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624 (eval $ac_compile) 2>conftest.er1
19625 ac_status=$?
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -z "$ac_c_werror_flag"
19632 || test ! -s conftest.err'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_header_compiler=yes
19645 else
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ac_header_compiler=no
19651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19653 echo "${ECHO_T}$ac_header_compiler" >&6
19655 # Is the header present?
19656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19658 cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h. */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 #include <$ac_header>
19665 _ACEOF
19666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } >/dev/null; then
19674 if test -s conftest.err; then
19675 ac_cpp_err=$ac_c_preproc_warn_flag
19676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19677 else
19678 ac_cpp_err=
19680 else
19681 ac_cpp_err=yes
19683 if test -z "$ac_cpp_err"; then
19684 ac_header_preproc=yes
19685 else
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 ac_header_preproc=no
19691 rm -f conftest.err conftest.$ac_ext
19692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19693 echo "${ECHO_T}$ac_header_preproc" >&6
19695 # So? What about this header?
19696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19697 yes:no: )
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19702 ac_header_preproc=yes
19704 no:yes:* )
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19718 cat <<\_ASBOX
19719 ## ------------------------------------------ ##
19720 ## Report this to the AC_PACKAGE_NAME lists. ##
19721 ## ------------------------------------------ ##
19722 _ASBOX
19724 sed "s/^/$as_me: WARNING: /" >&2
19726 esac
19727 echo "$as_me:$LINENO: checking for $ac_header" >&5
19728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 else
19732 eval "$as_ac_Header=\$ac_header_preproc"
19734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19739 cat >>confdefs.h <<_ACEOF
19740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19741 _ACEOF
19745 done
19747 else
19749 for ac_header in des.h
19751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19753 echo "$as_me:$LINENO: checking for $ac_header" >&5
19754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19760 else
19761 # Is the header compilable?
19762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 $ac_includes_default
19771 #include <$ac_header>
19772 _ACEOF
19773 rm -f conftest.$ac_objext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19775 (eval $ac_compile) 2>conftest.er1
19776 ac_status=$?
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } &&
19782 { ac_try='test -z "$ac_c_werror_flag"
19783 || test ! -s conftest.err'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; } &&
19789 { ac_try='test -s conftest.$ac_objext'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 ac_header_compiler=yes
19796 else
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 ac_header_compiler=no
19802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19804 echo "${ECHO_T}$ac_header_compiler" >&6
19806 # Is the header present?
19807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19809 cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h. */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19815 #include <$ac_header>
19816 _ACEOF
19817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19819 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } >/dev/null; then
19825 if test -s conftest.err; then
19826 ac_cpp_err=$ac_c_preproc_warn_flag
19827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19828 else
19829 ac_cpp_err=
19831 else
19832 ac_cpp_err=yes
19834 if test -z "$ac_cpp_err"; then
19835 ac_header_preproc=yes
19836 else
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 ac_header_preproc=no
19842 rm -f conftest.err conftest.$ac_ext
19843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19844 echo "${ECHO_T}$ac_header_preproc" >&6
19846 # So? What about this header?
19847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19848 yes:no: )
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19853 ac_header_preproc=yes
19855 no:yes:* )
19856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19869 cat <<\_ASBOX
19870 ## ------------------------------------------ ##
19871 ## Report this to the AC_PACKAGE_NAME lists. ##
19872 ## ------------------------------------------ ##
19873 _ASBOX
19875 sed "s/^/$as_me: WARNING: /" >&2
19877 esac
19878 echo "$as_me:$LINENO: checking for $ac_header" >&5
19879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883 eval "$as_ac_Header=\$ac_header_preproc"
19885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19890 cat >>confdefs.h <<_ACEOF
19891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19892 _ACEOF
19894 else
19896 for ac_header in kerberosIV/des.h
19898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19900 echo "$as_me:$LINENO: checking for $ac_header" >&5
19901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19907 else
19908 # Is the header compilable?
19909 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 $ac_includes_default
19918 #include <$ac_header>
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19922 (eval $ac_compile) 2>conftest.er1
19923 ac_status=$?
19924 grep -v '^ *+' conftest.er1 >conftest.err
19925 rm -f conftest.er1
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } &&
19929 { ac_try='test -z "$ac_c_werror_flag"
19930 || test ! -s conftest.err'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19933 ac_status=$?
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; } &&
19936 { ac_try='test -s conftest.$ac_objext'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 ac_header_compiler=yes
19943 else
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_header_compiler=no
19949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19951 echo "${ECHO_T}$ac_header_compiler" >&6
19953 # Is the header present?
19954 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19956 cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h. */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 #include <$ac_header>
19963 _ACEOF
19964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19966 ac_status=$?
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } >/dev/null; then
19972 if test -s conftest.err; then
19973 ac_cpp_err=$ac_c_preproc_warn_flag
19974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19975 else
19976 ac_cpp_err=
19978 else
19979 ac_cpp_err=yes
19981 if test -z "$ac_cpp_err"; then
19982 ac_header_preproc=yes
19983 else
19984 echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 ac_header_preproc=no
19989 rm -f conftest.err conftest.$ac_ext
19990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19991 echo "${ECHO_T}$ac_header_preproc" >&6
19993 # So? What about this header?
19994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19995 yes:no: )
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20000 ac_header_preproc=yes
20002 no:yes:* )
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20016 cat <<\_ASBOX
20017 ## ------------------------------------------ ##
20018 ## Report this to the AC_PACKAGE_NAME lists. ##
20019 ## ------------------------------------------ ##
20020 _ASBOX
20022 sed "s/^/$as_me: WARNING: /" >&2
20024 esac
20025 echo "$as_me:$LINENO: checking for $ac_header" >&5
20026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030 eval "$as_ac_Header=\$ac_header_preproc"
20032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20037 cat >>confdefs.h <<_ACEOF
20038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20039 _ACEOF
20041 else
20043 for ac_header in kerberos/des.h
20045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20047 echo "$as_me:$LINENO: checking for $ac_header" >&5
20048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20054 else
20055 # Is the header compilable?
20056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h. */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20065 #include <$ac_header>
20066 _ACEOF
20067 rm -f conftest.$ac_objext
20068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069 (eval $ac_compile) 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_header_compiler=yes
20090 else
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_header_compiler=no
20096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098 echo "${ECHO_T}$ac_header_compiler" >&6
20100 # Is the header present?
20101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h. */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <$ac_header>
20110 _ACEOF
20111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } >/dev/null; then
20119 if test -s conftest.err; then
20120 ac_cpp_err=$ac_c_preproc_warn_flag
20121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20122 else
20123 ac_cpp_err=
20125 else
20126 ac_cpp_err=yes
20128 if test -z "$ac_cpp_err"; then
20129 ac_header_preproc=yes
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20134 ac_header_preproc=no
20136 rm -f conftest.err conftest.$ac_ext
20137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138 echo "${ECHO_T}$ac_header_preproc" >&6
20140 # So? What about this header?
20141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20142 yes:no: )
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20147 ac_header_preproc=yes
20149 no:yes:* )
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20163 cat <<\_ASBOX
20164 ## ------------------------------------------ ##
20165 ## Report this to the AC_PACKAGE_NAME lists. ##
20166 ## ------------------------------------------ ##
20167 _ASBOX
20169 sed "s/^/$as_me: WARNING: /" >&2
20171 esac
20172 echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 eval "$as_ac_Header=\$ac_header_preproc"
20179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20186 _ACEOF
20190 done
20194 done
20198 done
20201 for ac_header in krb.h
20203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20205 echo "$as_me:$LINENO: checking for $ac_header" >&5
20206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20212 else
20213 # Is the header compilable?
20214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h. */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 $ac_includes_default
20223 #include <$ac_header>
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_header_compiler=yes
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ac_header_compiler=no
20254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20256 echo "${ECHO_T}$ac_header_compiler" >&6
20258 # Is the header present?
20259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20261 cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h. */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20267 #include <$ac_header>
20268 _ACEOF
20269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20271 ac_status=$?
20272 grep -v '^ *+' conftest.er1 >conftest.err
20273 rm -f conftest.er1
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } >/dev/null; then
20277 if test -s conftest.err; then
20278 ac_cpp_err=$ac_c_preproc_warn_flag
20279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20280 else
20281 ac_cpp_err=
20283 else
20284 ac_cpp_err=yes
20286 if test -z "$ac_cpp_err"; then
20287 ac_header_preproc=yes
20288 else
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 ac_header_preproc=no
20294 rm -f conftest.err conftest.$ac_ext
20295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20296 echo "${ECHO_T}$ac_header_preproc" >&6
20298 # So? What about this header?
20299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20300 yes:no: )
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20305 ac_header_preproc=yes
20307 no:yes:* )
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20321 cat <<\_ASBOX
20322 ## ------------------------------------------ ##
20323 ## Report this to the AC_PACKAGE_NAME lists. ##
20324 ## ------------------------------------------ ##
20325 _ASBOX
20327 sed "s/^/$as_me: WARNING: /" >&2
20329 esac
20330 echo "$as_me:$LINENO: checking for $ac_header" >&5
20331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335 eval "$as_ac_Header=\$ac_header_preproc"
20337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20342 cat >>confdefs.h <<_ACEOF
20343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20344 _ACEOF
20346 else
20348 for ac_header in kerberosIV/krb.h
20350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20352 echo "$as_me:$LINENO: checking for $ac_header" >&5
20353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20359 else
20360 # Is the header compilable?
20361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 $ac_includes_default
20370 #include <$ac_header>
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374 (eval $ac_compile) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try='test -z "$ac_c_werror_flag"
20382 || test ! -s conftest.err'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; } &&
20388 { ac_try='test -s conftest.$ac_objext'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 ac_header_compiler=yes
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399 ac_header_compiler=no
20401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20403 echo "${ECHO_T}$ac_header_compiler" >&6
20405 # Is the header present?
20406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 #include <$ac_header>
20415 _ACEOF
20416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20418 ac_status=$?
20419 grep -v '^ *+' conftest.er1 >conftest.err
20420 rm -f conftest.er1
20421 cat conftest.err >&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } >/dev/null; then
20424 if test -s conftest.err; then
20425 ac_cpp_err=$ac_c_preproc_warn_flag
20426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20427 else
20428 ac_cpp_err=
20430 else
20431 ac_cpp_err=yes
20433 if test -z "$ac_cpp_err"; then
20434 ac_header_preproc=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_header_preproc=no
20441 rm -f conftest.err conftest.$ac_ext
20442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20443 echo "${ECHO_T}$ac_header_preproc" >&6
20445 # So? What about this header?
20446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20447 yes:no: )
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20452 ac_header_preproc=yes
20454 no:yes:* )
20455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20468 cat <<\_ASBOX
20469 ## ------------------------------------------ ##
20470 ## Report this to the AC_PACKAGE_NAME lists. ##
20471 ## ------------------------------------------ ##
20472 _ASBOX
20474 sed "s/^/$as_me: WARNING: /" >&2
20476 esac
20477 echo "$as_me:$LINENO: checking for $ac_header" >&5
20478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482 eval "$as_ac_Header=\$ac_header_preproc"
20484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20489 cat >>confdefs.h <<_ACEOF
20490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20491 _ACEOF
20493 else
20495 for ac_header in kerberos/krb.h
20497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20499 echo "$as_me:$LINENO: checking for $ac_header" >&5
20500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20506 else
20507 # Is the header compilable?
20508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20510 cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h. */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20516 $ac_includes_default
20517 #include <$ac_header>
20518 _ACEOF
20519 rm -f conftest.$ac_objext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20521 (eval $ac_compile) 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try='test -z "$ac_c_werror_flag"
20529 || test ! -s conftest.err'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; } &&
20535 { ac_try='test -s conftest.$ac_objext'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20538 ac_status=$?
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_header_compiler=yes
20542 else
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20546 ac_header_compiler=no
20548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20550 echo "${ECHO_T}$ac_header_compiler" >&6
20552 # Is the header present?
20553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 #include <$ac_header>
20562 _ACEOF
20563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } >/dev/null; then
20571 if test -s conftest.err; then
20572 ac_cpp_err=$ac_c_preproc_warn_flag
20573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20574 else
20575 ac_cpp_err=
20577 else
20578 ac_cpp_err=yes
20580 if test -z "$ac_cpp_err"; then
20581 ac_header_preproc=yes
20582 else
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 ac_header_preproc=no
20588 rm -f conftest.err conftest.$ac_ext
20589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20590 echo "${ECHO_T}$ac_header_preproc" >&6
20592 # So? What about this header?
20593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20594 yes:no: )
20595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20599 ac_header_preproc=yes
20601 no:yes:* )
20602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20615 cat <<\_ASBOX
20616 ## ------------------------------------------ ##
20617 ## Report this to the AC_PACKAGE_NAME lists. ##
20618 ## ------------------------------------------ ##
20619 _ASBOX
20621 sed "s/^/$as_me: WARNING: /" >&2
20623 esac
20624 echo "$as_me:$LINENO: checking for $ac_header" >&5
20625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629 eval "$as_ac_Header=\$ac_header_preproc"
20631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20636 cat >>confdefs.h <<_ACEOF
20637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20638 _ACEOF
20642 done
20646 done
20650 done
20654 for ac_header in com_err.h
20656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20658 echo "$as_me:$LINENO: checking for $ac_header" >&5
20659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20665 else
20666 # Is the header compilable?
20667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20669 cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h. */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20675 $ac_includes_default
20676 #include <$ac_header>
20677 _ACEOF
20678 rm -f conftest.$ac_objext
20679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20680 (eval $ac_compile) 2>conftest.er1
20681 ac_status=$?
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } &&
20687 { ac_try='test -z "$ac_c_werror_flag"
20688 || test ! -s conftest.err'
20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20691 ac_status=$?
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); }; } &&
20694 { ac_try='test -s conftest.$ac_objext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_header_compiler=yes
20701 else
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_header_compiler=no
20707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20709 echo "${ECHO_T}$ac_header_compiler" >&6
20711 # Is the header present?
20712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h. */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 #include <$ac_header>
20721 _ACEOF
20722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } >/dev/null; then
20730 if test -s conftest.err; then
20731 ac_cpp_err=$ac_c_preproc_warn_flag
20732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20733 else
20734 ac_cpp_err=
20736 else
20737 ac_cpp_err=yes
20739 if test -z "$ac_cpp_err"; then
20740 ac_header_preproc=yes
20741 else
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_header_preproc=no
20747 rm -f conftest.err conftest.$ac_ext
20748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20749 echo "${ECHO_T}$ac_header_preproc" >&6
20751 # So? What about this header?
20752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20753 yes:no: )
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20758 ac_header_preproc=yes
20760 no:yes:* )
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20774 cat <<\_ASBOX
20775 ## ------------------------------------------ ##
20776 ## Report this to the AC_PACKAGE_NAME lists. ##
20777 ## ------------------------------------------ ##
20778 _ASBOX
20780 sed "s/^/$as_me: WARNING: /" >&2
20782 esac
20783 echo "$as_me:$LINENO: checking for $ac_header" >&5
20784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 else
20788 eval "$as_ac_Header=\$ac_header_preproc"
20790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20795 cat >>confdefs.h <<_ACEOF
20796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20797 _ACEOF
20801 done
20805 # Solaris requires -lintl if you want strerror (which calls dgettext)
20806 # to return localized messages.
20808 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20809 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20810 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813 ac_check_lib_save_LIBS=$LIBS
20814 LIBS="-lintl $LIBS"
20815 cat >conftest.$ac_ext <<_ACEOF
20816 /* confdefs.h. */
20817 _ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h. */
20822 /* Override any gcc2 internal prototype to avoid an error. */
20823 #ifdef __cplusplus
20824 extern "C"
20825 #endif
20826 /* We use char because int might match the return type of a gcc2
20827 builtin and then its argument prototype would still apply. */
20828 char dgettext ();
20830 main ()
20832 dgettext ();
20834 return 0;
20836 _ACEOF
20837 rm -f conftest.$ac_objext conftest$ac_exeext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20839 (eval $ac_link) 2>conftest.er1
20840 ac_status=$?
20841 grep -v '^ *+' conftest.er1 >conftest.err
20842 rm -f conftest.er1
20843 cat conftest.err >&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); } &&
20846 { ac_try='test -z "$ac_c_werror_flag"
20847 || test ! -s conftest.err'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; } &&
20853 { ac_try='test -s conftest$ac_exeext'
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; }; then
20859 ac_cv_lib_intl_dgettext=yes
20860 else
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ac_cv_lib_intl_dgettext=no
20866 rm -f conftest.err conftest.$ac_objext \
20867 conftest$ac_exeext conftest.$ac_ext
20868 LIBS=$ac_check_lib_save_LIBS
20870 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20871 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20872 if test $ac_cv_lib_intl_dgettext = yes; then
20873 cat >>confdefs.h <<_ACEOF
20874 #define HAVE_LIBINTL 1
20875 _ACEOF
20877 LIBS="-lintl $LIBS"
20882 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20883 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20884 if test "${emacs_cv_localtime_cache+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887 if test x$ac_cv_func_tzset = xyes; then
20888 if test "$cross_compiling" = yes; then
20889 # If we have tzset, assume the worst when cross-compiling.
20890 emacs_cv_localtime_cache=yes
20891 else
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h. */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <time.h>
20899 extern char **environ;
20900 unset_TZ ()
20902 char **from, **to;
20903 for (to = from = environ; (*to = *from); from++)
20904 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20905 to++;
20907 char TZ_GMT0[] = "TZ=GMT0";
20908 char TZ_PST8[] = "TZ=PST8";
20909 main()
20911 time_t now = time ((time_t *) 0);
20912 int hour_GMT0, hour_unset;
20913 if (putenv (TZ_GMT0) != 0)
20914 exit (1);
20915 hour_GMT0 = localtime (&now)->tm_hour;
20916 unset_TZ ();
20917 hour_unset = localtime (&now)->tm_hour;
20918 if (putenv (TZ_PST8) != 0)
20919 exit (1);
20920 if (localtime (&now)->tm_hour == hour_GMT0)
20921 exit (1);
20922 unset_TZ ();
20923 if (localtime (&now)->tm_hour != hour_unset)
20924 exit (1);
20925 exit (0);
20927 _ACEOF
20928 rm -f conftest$ac_exeext
20929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20930 (eval $ac_link) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; }; then
20939 emacs_cv_localtime_cache=no
20940 else
20941 echo "$as_me: program exited with status $ac_status" >&5
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ( exit $ac_status )
20946 emacs_cv_localtime_cache=yes
20948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20950 else
20951 # If we lack tzset, report that localtime does not cache TZ,
20952 # since we can't invalidate the cache if we don't have tzset.
20953 emacs_cv_localtime_cache=no
20956 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20957 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20958 if test $emacs_cv_localtime_cache = yes; then
20960 cat >>confdefs.h <<\_ACEOF
20961 #define LOCALTIME_CACHE 1
20962 _ACEOF
20966 if test "x$HAVE_TIMEVAL" = xyes; then
20968 for ac_func in gettimeofday
20970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20971 echo "$as_me:$LINENO: checking for $ac_func" >&5
20972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20973 if eval "test \"\${$as_ac_var+set}\" = set"; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976 cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h. */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20984 #define $ac_func innocuous_$ac_func
20986 /* System header to define __stub macros and hopefully few prototypes,
20987 which can conflict with char $ac_func (); below.
20988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20989 <limits.h> exists even on freestanding compilers. */
20991 #ifdef __STDC__
20992 # include <limits.h>
20993 #else
20994 # include <assert.h>
20995 #endif
20997 #undef $ac_func
20999 /* Override any gcc2 internal prototype to avoid an error. */
21000 #ifdef __cplusplus
21001 extern "C"
21003 #endif
21004 /* We use char because int might match the return type of a gcc2
21005 builtin and then its argument prototype would still apply. */
21006 char $ac_func ();
21007 /* The GNU C library defines this for functions which it implements
21008 to always fail with ENOSYS. Some functions are actually named
21009 something starting with __ and the normal name is an alias. */
21010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21011 choke me
21012 #else
21013 char (*f) () = $ac_func;
21014 #endif
21015 #ifdef __cplusplus
21017 #endif
21020 main ()
21022 return f != $ac_func;
21024 return 0;
21026 _ACEOF
21027 rm -f conftest.$ac_objext conftest$ac_exeext
21028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21029 (eval $ac_link) 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } &&
21036 { ac_try='test -z "$ac_c_werror_flag"
21037 || test ! -s conftest.err'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; } &&
21043 { ac_try='test -s conftest$ac_exeext'
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 eval "$as_ac_var=yes"
21050 else
21051 echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21054 eval "$as_ac_var=no"
21056 rm -f conftest.err conftest.$ac_objext \
21057 conftest$ac_exeext conftest.$ac_ext
21059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21061 if test `eval echo '${'$as_ac_var'}'` = yes; then
21062 cat >>confdefs.h <<_ACEOF
21063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21064 _ACEOF
21067 done
21069 if test $ac_cv_func_gettimeofday = yes; then
21070 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21071 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21072 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075 cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h. */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21082 #ifdef TIME_WITH_SYS_TIME
21083 #include <sys/time.h>
21084 #include <time.h>
21085 #else
21086 #ifdef HAVE_SYS_TIME_H
21087 #include <sys/time.h>
21088 #else
21089 #include <time.h>
21090 #endif
21091 #endif
21093 main ()
21095 struct timeval time;
21096 gettimeofday (&time, 0);
21098 return 0;
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21103 (eval $ac_compile) 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
21110 { ac_try='test -z "$ac_c_werror_flag"
21111 || test ! -s conftest.err'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try='test -s conftest.$ac_objext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 emacs_cv_gettimeofday_two_arguments=yes
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 emacs_cv_gettimeofday_two_arguments=no
21130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21132 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21133 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21134 if test $emacs_cv_gettimeofday_two_arguments = no; then
21136 cat >>confdefs.h <<\_ACEOF
21137 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21138 _ACEOF
21144 ok_so_far=yes
21145 echo "$as_me:$LINENO: checking for socket" >&5
21146 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21147 if test "${ac_cv_func_socket+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21150 cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h. */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21158 #define socket innocuous_socket
21160 /* System header to define __stub macros and hopefully few prototypes,
21161 which can conflict with char socket (); below.
21162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21163 <limits.h> exists even on freestanding compilers. */
21165 #ifdef __STDC__
21166 # include <limits.h>
21167 #else
21168 # include <assert.h>
21169 #endif
21171 #undef socket
21173 /* Override any gcc2 internal prototype to avoid an error. */
21174 #ifdef __cplusplus
21175 extern "C"
21177 #endif
21178 /* We use char because int might match the return type of a gcc2
21179 builtin and then its argument prototype would still apply. */
21180 char socket ();
21181 /* The GNU C library defines this for functions which it implements
21182 to always fail with ENOSYS. Some functions are actually named
21183 something starting with __ and the normal name is an alias. */
21184 #if defined (__stub_socket) || defined (__stub___socket)
21185 choke me
21186 #else
21187 char (*f) () = socket;
21188 #endif
21189 #ifdef __cplusplus
21191 #endif
21194 main ()
21196 return f != socket;
21198 return 0;
21200 _ACEOF
21201 rm -f conftest.$ac_objext conftest$ac_exeext
21202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21203 (eval $ac_link) 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag"
21211 || test ! -s conftest.err'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest$ac_exeext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_cv_func_socket=yes
21224 else
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_cv_func_socket=no
21230 rm -f conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21233 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21234 echo "${ECHO_T}$ac_cv_func_socket" >&6
21235 if test $ac_cv_func_socket = yes; then
21237 else
21238 ok_so_far=no
21241 if test $ok_so_far = yes; then
21242 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21243 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21244 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21245 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21249 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21250 else
21251 # Is the header compilable?
21252 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21253 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21254 cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h. */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 $ac_includes_default
21261 #include <netinet/in.h>
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265 (eval $ac_compile) 2>conftest.er1
21266 ac_status=$?
21267 grep -v '^ *+' conftest.er1 >conftest.err
21268 rm -f conftest.er1
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
21272 { ac_try='test -z "$ac_c_werror_flag"
21273 || test ! -s conftest.err'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_header_compiler=yes
21286 else
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21290 ac_header_compiler=no
21292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21294 echo "${ECHO_T}$ac_header_compiler" >&6
21296 # Is the header present?
21297 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21298 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 #include <netinet/in.h>
21306 _ACEOF
21307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21309 ac_status=$?
21310 grep -v '^ *+' conftest.er1 >conftest.err
21311 rm -f conftest.er1
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } >/dev/null; then
21315 if test -s conftest.err; then
21316 ac_cpp_err=$ac_c_preproc_warn_flag
21317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21318 else
21319 ac_cpp_err=
21321 else
21322 ac_cpp_err=yes
21324 if test -z "$ac_cpp_err"; then
21325 ac_header_preproc=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_preproc=no
21332 rm -f conftest.err conftest.$ac_ext
21333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21334 echo "${ECHO_T}$ac_header_preproc" >&6
21336 # So? What about this header?
21337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21338 yes:no: )
21339 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21340 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21342 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21343 ac_header_preproc=yes
21345 no:yes:* )
21346 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21347 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21349 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21351 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21353 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21355 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21357 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21359 cat <<\_ASBOX
21360 ## ------------------------------------------ ##
21361 ## Report this to the AC_PACKAGE_NAME lists. ##
21362 ## ------------------------------------------ ##
21363 _ASBOX
21365 sed "s/^/$as_me: WARNING: /" >&2
21367 esac
21368 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21369 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21370 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 else
21373 ac_cv_header_netinet_in_h=$ac_header_preproc
21375 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21376 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21379 if test $ac_cv_header_netinet_in_h = yes; then
21381 else
21382 ok_so_far=no
21387 if test $ok_so_far = yes; then
21388 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21389 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21390 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21391 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21395 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21396 else
21397 # Is the header compilable?
21398 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21399 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21400 cat >conftest.$ac_ext <<_ACEOF
21401 /* confdefs.h. */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 $ac_includes_default
21407 #include <arpa/inet.h>
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21411 (eval $ac_compile) 2>conftest.er1
21412 ac_status=$?
21413 grep -v '^ *+' conftest.er1 >conftest.err
21414 rm -f conftest.er1
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
21418 { ac_try='test -z "$ac_c_werror_flag"
21419 || test ! -s conftest.err'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21422 ac_status=$?
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; } &&
21425 { ac_try='test -s conftest.$ac_objext'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21428 ac_status=$?
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_header_compiler=yes
21432 else
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_header_compiler=no
21438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21440 echo "${ECHO_T}$ac_header_compiler" >&6
21442 # Is the header present?
21443 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21444 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21445 cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h. */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 #include <arpa/inet.h>
21452 _ACEOF
21453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } >/dev/null; then
21461 if test -s conftest.err; then
21462 ac_cpp_err=$ac_c_preproc_warn_flag
21463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21464 else
21465 ac_cpp_err=
21467 else
21468 ac_cpp_err=yes
21470 if test -z "$ac_cpp_err"; then
21471 ac_header_preproc=yes
21472 else
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_preproc=no
21478 rm -f conftest.err conftest.$ac_ext
21479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21480 echo "${ECHO_T}$ac_header_preproc" >&6
21482 # So? What about this header?
21483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21484 yes:no: )
21485 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21486 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21488 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21489 ac_header_preproc=yes
21491 no:yes:* )
21492 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21493 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21495 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21497 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21499 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21501 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21503 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21505 cat <<\_ASBOX
21506 ## ------------------------------------------ ##
21507 ## Report this to the AC_PACKAGE_NAME lists. ##
21508 ## ------------------------------------------ ##
21509 _ASBOX
21511 sed "s/^/$as_me: WARNING: /" >&2
21513 esac
21514 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21515 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21516 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21519 ac_cv_header_arpa_inet_h=$ac_header_preproc
21521 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21522 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21525 if test $ac_cv_header_arpa_inet_h = yes; then
21527 else
21528 ok_so_far=no
21533 if test $ok_so_far = yes; then
21535 cat >>confdefs.h <<\_ACEOF
21536 #define HAVE_INET_SOCKETS 1
21537 _ACEOF
21542 for ac_header in sys/ioctl.h
21544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21546 echo "$as_me:$LINENO: checking for $ac_header" >&5
21547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21549 echo $ECHO_N "(cached) $ECHO_C" >&6
21551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21553 else
21554 # Is the header compilable?
21555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h. */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563 $ac_includes_default
21564 #include <$ac_header>
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21568 (eval $ac_compile) 2>conftest.er1
21569 ac_status=$?
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -z "$ac_c_werror_flag"
21576 || test ! -s conftest.err'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest.$ac_objext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 ac_header_compiler=yes
21589 else
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ac_header_compiler=no
21595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21597 echo "${ECHO_T}$ac_header_compiler" >&6
21599 # Is the header present?
21600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h. */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 #include <$ac_header>
21609 _ACEOF
21610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21612 ac_status=$?
21613 grep -v '^ *+' conftest.er1 >conftest.err
21614 rm -f conftest.er1
21615 cat conftest.err >&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } >/dev/null; then
21618 if test -s conftest.err; then
21619 ac_cpp_err=$ac_c_preproc_warn_flag
21620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21621 else
21622 ac_cpp_err=
21624 else
21625 ac_cpp_err=yes
21627 if test -z "$ac_cpp_err"; then
21628 ac_header_preproc=yes
21629 else
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 ac_header_preproc=no
21635 rm -f conftest.err conftest.$ac_ext
21636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21637 echo "${ECHO_T}$ac_header_preproc" >&6
21639 # So? What about this header?
21640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21641 yes:no: )
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21646 ac_header_preproc=yes
21648 no:yes:* )
21649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21662 cat <<\_ASBOX
21663 ## ------------------------------------------ ##
21664 ## Report this to the AC_PACKAGE_NAME lists. ##
21665 ## ------------------------------------------ ##
21666 _ASBOX
21668 sed "s/^/$as_me: WARNING: /" >&2
21670 esac
21671 echo "$as_me:$LINENO: checking for $ac_header" >&5
21672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676 eval "$as_ac_Header=\$ac_header_preproc"
21678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21683 cat >>confdefs.h <<_ACEOF
21684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21685 _ACEOF
21689 done
21692 if test -f /usr/lpp/X11/bin/smt.exp; then
21694 cat >>confdefs.h <<\_ACEOF
21695 #define HAVE_AIX_SMT_EXP 1
21696 _ACEOF
21700 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21701 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21702 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21703 echo "$as_me:$LINENO: result: yes" >&5
21704 echo "${ECHO_T}yes" >&6
21706 cat >>confdefs.h <<\_ACEOF
21707 #define HAVE_DEV_PTMX 1
21708 _ACEOF
21710 else
21711 echo "$as_me:$LINENO: result: no" >&5
21712 echo "${ECHO_T}no" >&6
21715 echo "$as_me:$LINENO: checking for pid_t" >&5
21716 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21717 if test "${ac_cv_type_pid_t+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21719 else
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 $ac_includes_default
21728 main ()
21730 if ((pid_t *) 0)
21731 return 0;
21732 if (sizeof (pid_t))
21733 return 0;
21735 return 0;
21737 _ACEOF
21738 rm -f conftest.$ac_objext
21739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21740 (eval $ac_compile) 2>conftest.er1
21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } &&
21747 { ac_try='test -z "$ac_c_werror_flag"
21748 || test ! -s conftest.err'
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; } &&
21754 { ac_try='test -s conftest.$ac_objext'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760 ac_cv_type_pid_t=yes
21761 else
21762 echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21765 ac_cv_type_pid_t=no
21767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21769 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21770 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21771 if test $ac_cv_type_pid_t = yes; then
21773 else
21775 cat >>confdefs.h <<_ACEOF
21776 #define pid_t int
21777 _ACEOF
21783 for ac_header in unistd.h vfork.h
21785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21787 echo "$as_me:$LINENO: checking for $ac_header" >&5
21788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21794 else
21795 # Is the header compilable?
21796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21798 cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h. */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21804 $ac_includes_default
21805 #include <$ac_header>
21806 _ACEOF
21807 rm -f conftest.$ac_objext
21808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21809 (eval $ac_compile) 2>conftest.er1
21810 ac_status=$?
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } &&
21816 { ac_try='test -z "$ac_c_werror_flag"
21817 || test ! -s conftest.err'
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; } &&
21823 { ac_try='test -s conftest.$ac_objext'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21829 ac_header_compiler=yes
21830 else
21831 echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21834 ac_header_compiler=no
21836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21838 echo "${ECHO_T}$ac_header_compiler" >&6
21840 # Is the header present?
21841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21843 cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h. */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21849 #include <$ac_header>
21850 _ACEOF
21851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21853 ac_status=$?
21854 grep -v '^ *+' conftest.er1 >conftest.err
21855 rm -f conftest.er1
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } >/dev/null; then
21859 if test -s conftest.err; then
21860 ac_cpp_err=$ac_c_preproc_warn_flag
21861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21862 else
21863 ac_cpp_err=
21865 else
21866 ac_cpp_err=yes
21868 if test -z "$ac_cpp_err"; then
21869 ac_header_preproc=yes
21870 else
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 ac_header_preproc=no
21876 rm -f conftest.err conftest.$ac_ext
21877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21878 echo "${ECHO_T}$ac_header_preproc" >&6
21880 # So? What about this header?
21881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21882 yes:no: )
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21887 ac_header_preproc=yes
21889 no:yes:* )
21890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21903 cat <<\_ASBOX
21904 ## ------------------------------------------ ##
21905 ## Report this to the AC_PACKAGE_NAME lists. ##
21906 ## ------------------------------------------ ##
21907 _ASBOX
21909 sed "s/^/$as_me: WARNING: /" >&2
21911 esac
21912 echo "$as_me:$LINENO: checking for $ac_header" >&5
21913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 else
21917 eval "$as_ac_Header=\$ac_header_preproc"
21919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21924 cat >>confdefs.h <<_ACEOF
21925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21926 _ACEOF
21930 done
21934 for ac_func in fork vfork
21936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937 echo "$as_me:$LINENO: checking for $ac_func" >&5
21938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21939 if eval "test \"\${$as_ac_var+set}\" = set"; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 else
21942 cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h. */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21950 #define $ac_func innocuous_$ac_func
21952 /* System header to define __stub macros and hopefully few prototypes,
21953 which can conflict with char $ac_func (); below.
21954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21955 <limits.h> exists even on freestanding compilers. */
21957 #ifdef __STDC__
21958 # include <limits.h>
21959 #else
21960 # include <assert.h>
21961 #endif
21963 #undef $ac_func
21965 /* Override any gcc2 internal prototype to avoid an error. */
21966 #ifdef __cplusplus
21967 extern "C"
21969 #endif
21970 /* We use char because int might match the return type of a gcc2
21971 builtin and then its argument prototype would still apply. */
21972 char $ac_func ();
21973 /* The GNU C library defines this for functions which it implements
21974 to always fail with ENOSYS. Some functions are actually named
21975 something starting with __ and the normal name is an alias. */
21976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21977 choke me
21978 #else
21979 char (*f) () = $ac_func;
21980 #endif
21981 #ifdef __cplusplus
21983 #endif
21986 main ()
21988 return f != $ac_func;
21990 return 0;
21992 _ACEOF
21993 rm -f conftest.$ac_objext conftest$ac_exeext
21994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21995 (eval $ac_link) 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } &&
22002 { ac_try='test -z "$ac_c_werror_flag"
22003 || test ! -s conftest.err'
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; } &&
22009 { ac_try='test -s conftest$ac_exeext'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; }; then
22015 eval "$as_ac_var=yes"
22016 else
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22020 eval "$as_ac_var=no"
22022 rm -f conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22027 if test `eval echo '${'$as_ac_var'}'` = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22030 _ACEOF
22033 done
22035 if test "x$ac_cv_func_fork" = xyes; then
22036 echo "$as_me:$LINENO: checking for working fork" >&5
22037 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22038 if test "${ac_cv_func_fork_works+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041 if test "$cross_compiling" = yes; then
22042 ac_cv_func_fork_works=cross
22043 else
22044 cat >conftest.$ac_ext <<_ACEOF
22045 /* By Ruediger Kuhlmann. */
22046 #include <sys/types.h>
22047 #if HAVE_UNISTD_H
22048 # include <unistd.h>
22049 #endif
22050 /* Some systems only have a dummy stub for fork() */
22051 int main ()
22053 if (fork() < 0)
22054 exit (1);
22055 exit (0);
22057 _ACEOF
22058 rm -f conftest$ac_exeext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22060 (eval $ac_link) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065 (eval $ac_try) 2>&5
22066 ac_status=$?
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }; }; then
22069 ac_cv_func_fork_works=yes
22070 else
22071 echo "$as_me: program exited with status $ac_status" >&5
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ( exit $ac_status )
22076 ac_cv_func_fork_works=no
22078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22081 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22082 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22084 else
22085 ac_cv_func_fork_works=$ac_cv_func_fork
22087 if test "x$ac_cv_func_fork_works" = xcross; then
22088 case $host in
22089 *-*-amigaos* | *-*-msdosdjgpp*)
22090 # Override, as these systems have only a dummy fork() stub
22091 ac_cv_func_fork_works=no
22094 ac_cv_func_fork_works=yes
22096 esac
22097 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22098 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22100 ac_cv_func_vfork_works=$ac_cv_func_vfork
22101 if test "x$ac_cv_func_vfork" = xyes; then
22102 echo "$as_me:$LINENO: checking for working vfork" >&5
22103 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22104 if test "${ac_cv_func_vfork_works+set}" = set; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 else
22107 if test "$cross_compiling" = yes; then
22108 ac_cv_func_vfork_works=cross
22109 else
22110 cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h. */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116 /* Thanks to Paul Eggert for this test. */
22117 #include <stdio.h>
22118 #include <stdlib.h>
22119 #include <sys/types.h>
22120 #include <sys/stat.h>
22121 #include <sys/wait.h>
22122 #if HAVE_UNISTD_H
22123 # include <unistd.h>
22124 #endif
22125 #if HAVE_VFORK_H
22126 # include <vfork.h>
22127 #endif
22128 /* On some sparc systems, changes by the child to local and incoming
22129 argument registers are propagated back to the parent. The compiler
22130 is told about this with #include <vfork.h>, but some compilers
22131 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22132 static variable whose address is put into a register that is
22133 clobbered by the vfork. */
22134 static void
22135 #ifdef __cplusplus
22136 sparc_address_test (int arg)
22137 # else
22138 sparc_address_test (arg) int arg;
22139 #endif
22141 static pid_t child;
22142 if (!child) {
22143 child = vfork ();
22144 if (child < 0) {
22145 perror ("vfork");
22146 _exit(2);
22148 if (!child) {
22149 arg = getpid();
22150 write(-1, "", 0);
22151 _exit (arg);
22157 main ()
22159 pid_t parent = getpid ();
22160 pid_t child;
22162 sparc_address_test (0);
22164 child = vfork ();
22166 if (child == 0) {
22167 /* Here is another test for sparc vfork register problems. This
22168 test uses lots of local variables, at least as many local
22169 variables as main has allocated so far including compiler
22170 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22171 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22172 reuse the register of parent for one of the local variables,
22173 since it will think that parent can't possibly be used any more
22174 in this routine. Assigning to the local variable will thus
22175 munge parent in the parent process. */
22176 pid_t
22177 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22178 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22179 /* Convince the compiler that p..p7 are live; otherwise, it might
22180 use the same hardware register for all 8 local variables. */
22181 if (p != p1 || p != p2 || p != p3 || p != p4
22182 || p != p5 || p != p6 || p != p7)
22183 _exit(1);
22185 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22186 from child file descriptors. If the child closes a descriptor
22187 before it execs or exits, this munges the parent's descriptor
22188 as well. Test for this by closing stdout in the child. */
22189 _exit(close(fileno(stdout)) != 0);
22190 } else {
22191 int status;
22192 struct stat st;
22194 while (wait(&status) != child)
22196 exit(
22197 /* Was there some problem with vforking? */
22198 child < 0
22200 /* Did the child fail? (This shouldn't happen.) */
22201 || status
22203 /* Did the vfork/compiler bug occur? */
22204 || parent != getpid()
22206 /* Did the file descriptor bug occur? */
22207 || fstat(fileno(stdout), &st) != 0
22211 _ACEOF
22212 rm -f conftest$ac_exeext
22213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22214 (eval $ac_link) 2>&5
22215 ac_status=$?
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; }; then
22223 ac_cv_func_vfork_works=yes
22224 else
22225 echo "$as_me: program exited with status $ac_status" >&5
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ( exit $ac_status )
22230 ac_cv_func_vfork_works=no
22232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22235 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22236 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22239 if test "x$ac_cv_func_fork_works" = xcross; then
22240 ac_cv_func_vfork_works=$ac_cv_func_vfork
22241 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22242 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22245 if test "x$ac_cv_func_vfork_works" = xyes; then
22247 cat >>confdefs.h <<\_ACEOF
22248 #define HAVE_WORKING_VFORK 1
22249 _ACEOF
22251 else
22253 cat >>confdefs.h <<\_ACEOF
22254 #define vfork fork
22255 _ACEOF
22258 if test "x$ac_cv_func_fork_works" = xyes; then
22260 cat >>confdefs.h <<\_ACEOF
22261 #define HAVE_WORKING_FORK 1
22262 _ACEOF
22267 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22268 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22269 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22271 else
22272 cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h. */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22278 #include <langinfo.h>
22280 main ()
22282 char* cs = nl_langinfo(CODESET);
22284 return 0;
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22289 (eval $ac_link) 2>conftest.er1
22290 ac_status=$?
22291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } &&
22296 { ac_try='test -z "$ac_c_werror_flag"
22297 || test ! -s conftest.err'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; } &&
22303 { ac_try='test -s conftest$ac_exeext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 emacs_cv_langinfo_codeset=yes
22310 else
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 emacs_cv_langinfo_codeset=no
22316 rm -f conftest.err conftest.$ac_objext \
22317 conftest$ac_exeext conftest.$ac_ext
22320 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22321 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22322 if test $emacs_cv_langinfo_codeset = yes; then
22324 cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_LANGINFO_CODESET 1
22326 _ACEOF
22330 echo "$as_me:$LINENO: checking for size_t" >&5
22331 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22332 if test "${ac_cv_type_size_t+set}" = set; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335 cat >conftest.$ac_ext <<_ACEOF
22336 /* confdefs.h. */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h. */
22341 $ac_includes_default
22343 main ()
22345 if ((size_t *) 0)
22346 return 0;
22347 if (sizeof (size_t))
22348 return 0;
22350 return 0;
22352 _ACEOF
22353 rm -f conftest.$ac_objext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22355 (eval $ac_compile) 2>conftest.er1
22356 ac_status=$?
22357 grep -v '^ *+' conftest.er1 >conftest.err
22358 rm -f conftest.er1
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
22362 { ac_try='test -z "$ac_c_werror_flag"
22363 || test ! -s conftest.err'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22366 ac_status=$?
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; } &&
22369 { ac_try='test -s conftest.$ac_objext'
22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22372 ac_status=$?
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; }; then
22375 ac_cv_type_size_t=yes
22376 else
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22380 ac_cv_type_size_t=no
22382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22384 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22385 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22386 if test $ac_cv_type_size_t = yes; then
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_SIZE_T 1
22390 _ACEOF
22396 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22397 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22398 if test "${ac_cv_type_mbstate_t+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401 cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h. */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 $ac_includes_default
22408 # include <wchar.h>
22410 main ()
22412 mbstate_t x; return sizeof x;
22414 return 0;
22416 _ACEOF
22417 rm -f conftest.$ac_objext
22418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22419 (eval $ac_compile) 2>conftest.er1
22420 ac_status=$?
22421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } &&
22426 { ac_try='test -z "$ac_c_werror_flag"
22427 || test ! -s conftest.err'
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22430 ac_status=$?
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; } &&
22433 { ac_try='test -s conftest.$ac_objext'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; }; then
22439 ac_cv_type_mbstate_t=yes
22440 else
22441 echo "$as_me: failed program was:" >&5
22442 sed 's/^/| /' conftest.$ac_ext >&5
22444 ac_cv_type_mbstate_t=no
22446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22448 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22449 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22450 if test $ac_cv_type_mbstate_t = yes; then
22452 cat >>confdefs.h <<\_ACEOF
22453 #define HAVE_MBSTATE_T 1
22454 _ACEOF
22456 else
22458 cat >>confdefs.h <<\_ACEOF
22459 #define mbstate_t int
22460 _ACEOF
22464 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22465 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22466 if test "${emacs_cv_c_restrict+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469 cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h. */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 void fred (int *restrict x);
22477 main ()
22481 return 0;
22483 _ACEOF
22484 rm -f conftest.$ac_objext
22485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22486 (eval $ac_compile) 2>conftest.er1
22487 ac_status=$?
22488 grep -v '^ *+' conftest.er1 >conftest.err
22489 rm -f conftest.er1
22490 cat conftest.err >&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } &&
22493 { ac_try='test -z "$ac_c_werror_flag"
22494 || test ! -s conftest.err'
22495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496 (eval $ac_try) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; } &&
22500 { ac_try='test -s conftest.$ac_objext'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; }; then
22506 emacs_cv_c_restrict=yes
22507 else
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 cat >conftest.$ac_ext <<_ACEOF
22512 /* confdefs.h. */
22513 _ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22517 void fred (int *__restrict x);
22519 main ()
22523 return 0;
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22528 (eval $ac_compile) 2>conftest.er1
22529 ac_status=$?
22530 grep -v '^ *+' conftest.er1 >conftest.err
22531 rm -f conftest.er1
22532 cat conftest.err >&5
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); } &&
22535 { ac_try='test -z "$ac_c_werror_flag"
22536 || test ! -s conftest.err'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22539 ac_status=$?
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; } &&
22542 { ac_try='test -s conftest.$ac_objext'
22543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544 (eval $ac_try) 2>&5
22545 ac_status=$?
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; }; then
22548 emacs_cv_c_restrict=__restrict
22549 else
22550 echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22553 emacs_cv_c_restrict=no
22555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22559 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22560 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22561 case "$emacs_cv_c_restrict" in
22562 yes) emacs_restrict=restrict;;
22563 no) emacs_restrict="";;
22564 *) emacs_restrict="$emacs_cv_c_restrict";;
22565 esac
22566 if test "$emacs_restrict" != __restrict; then
22568 cat >>confdefs.h <<_ACEOF
22569 #define __restrict $emacs_restrict
22570 _ACEOF
22574 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22575 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22576 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22578 else
22579 cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h. */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 void fred (int x[__restrict]);
22587 main ()
22591 return 0;
22593 _ACEOF
22594 rm -f conftest.$ac_objext
22595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22596 (eval $ac_compile) 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
22603 { ac_try='test -z "$ac_c_werror_flag"
22604 || test ! -s conftest.err'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; } &&
22610 { ac_try='test -s conftest.$ac_objext'
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; }; then
22616 emacs_cv_c_restrict_arr=yes
22617 else
22618 echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22621 emacs_cv_c_restrict_arr=no
22623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22625 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22626 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22627 if test "$emacs_cv_c_restrict_arr" = yes; then
22629 cat >>confdefs.h <<\_ACEOF
22630 #define __restrict_arr __restrict
22631 _ACEOF
22637 # Set up the CFLAGS for real compilation, so we can substitute it.
22638 CFLAGS="$REAL_CFLAGS"
22639 CPPFLAGS="$REAL_CPPFLAGS"
22641 #### Find out which version of Emacs this is.
22642 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22643 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22644 if test x"${version}" = x; then
22645 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22646 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22647 { (exit 1); exit 1; }; }
22650 ### Specify what sort of things we'll be editing into Makefile and config.h.
22651 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22687 cat >>confdefs.h <<_ACEOF
22688 #define EMACS_CONFIGURATION "${canonical}"
22689 _ACEOF
22692 cat >>confdefs.h <<_ACEOF
22693 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22694 _ACEOF
22697 cat >>confdefs.h <<_ACEOF
22698 #define config_machfile "${machfile}"
22699 _ACEOF
22702 cat >>confdefs.h <<_ACEOF
22703 #define config_opsysfile "${opsysfile}"
22704 _ACEOF
22707 cat >>confdefs.h <<_ACEOF
22708 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22709 _ACEOF
22712 cat >>confdefs.h <<_ACEOF
22713 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22714 _ACEOF
22717 cat >>confdefs.h <<_ACEOF
22718 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22719 _ACEOF
22722 cat >>confdefs.h <<_ACEOF
22723 #define UNEXEC_SRC ${UNEXEC_SRC}
22724 _ACEOF
22727 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_X_WINDOWS 1
22731 _ACEOF
22734 if test "${USE_X_TOOLKIT}" != "none" ; then
22736 cat >>confdefs.h <<\_ACEOF
22737 #define USE_X_TOOLKIT 1
22738 _ACEOF
22741 if test "${HAVE_X11}" = "yes" ; then
22743 cat >>confdefs.h <<\_ACEOF
22744 #define HAVE_X11 1
22745 _ACEOF
22748 if test "${HAVE_XFREE386}" = "yes" ; then
22750 cat >>confdefs.h <<\_ACEOF
22751 #define HAVE_XFREE386 1
22752 _ACEOF
22755 if test "${HAVE_MENUS}" = "yes" ; then
22757 cat >>confdefs.h <<\_ACEOF
22758 #define HAVE_MENUS 1
22759 _ACEOF
22762 if test "${GNU_MALLOC}" = "yes" ; then
22764 cat >>confdefs.h <<\_ACEOF
22765 #define GNU_MALLOC 1
22766 _ACEOF
22769 if test "${REL_ALLOC}" = "yes" ; then
22771 cat >>confdefs.h <<\_ACEOF
22772 #define REL_ALLOC 1
22773 _ACEOF
22781 #### Report on what we decided to do.
22782 #### Report GTK as a toolkit, even if it doesn't use Xt.
22783 #### It makes printing result more understandable as using GTK sets
22784 #### toolkit_scroll_bars to yes by default.
22785 if test "${HAVE_GTK}" = "yes"; then
22786 USE_X_TOOLKIT=GTK
22789 echo "
22790 Configured for \`${canonical}'.
22792 Where should the build process find the source code? ${srcdir}
22793 What operating system and machine description files should Emacs use?
22794 \`${opsysfile}' and \`${machfile}'
22795 What compiler should emacs be built with? ${CC} ${CFLAGS}
22796 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22797 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22798 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22799 What window system should Emacs use? ${window_system}
22800 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22802 if test -n "${x_includes}"; then
22803 echo " Where do we find X Windows header files? ${x_includes}"
22804 else
22805 echo " Where do we find X Windows header files? Standard dirs"
22807 if test -n "${x_libraries}"; then
22808 echo " Where do we find X Windows libraries? ${x_libraries}"
22809 else
22810 echo " Where do we find X Windows libraries? Standard dirs"
22813 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22814 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22815 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22816 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22817 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22818 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22819 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22820 echo
22822 if test $USE_XASSERTS = yes; then
22823 echo " Compiling with asserts turned on."
22824 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22825 echo
22830 # Remove any trailing slashes in these variables.
22831 test "${prefix}" != NONE &&
22832 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22833 test "${exec_prefix}" != NONE &&
22834 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22836 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22837 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22838 ## from Makefile.c can correctly provide the arg `-traditional' to the
22839 ## C preprocessor.
22841 cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h. */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 yes..yes
22848 _ACEOF
22849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22850 $EGREP "yes..yes" >/dev/null 2>&1; then
22851 CPP_NEED_TRADITIONAL=no
22852 else
22853 CPP_NEED_TRADITIONAL=yes
22855 rm -f conftest*
22858 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"
22859 ac_config_commands="$ac_config_commands default"
22860 cat >confcache <<\_ACEOF
22861 # This file is a shell script that caches the results of configure
22862 # tests run on this system so they can be shared between configure
22863 # scripts and configure runs, see configure's option --config-cache.
22864 # It is not useful on other systems. If it contains results you don't
22865 # want to keep, you may remove or edit it.
22867 # config.status only pays attention to the cache file if you give it
22868 # the --recheck option to rerun configure.
22870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22872 # following values.
22874 _ACEOF
22876 # The following way of writing the cache mishandles newlines in values,
22877 # but we know of no workaround that is simple, portable, and efficient.
22878 # So, don't put newlines in cache variables' values.
22879 # Ultrix sh set writes to stderr and can't be redirected directly,
22880 # and sets the high bit in the cache file unless we assign to the vars.
22882 (set) 2>&1 |
22883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22884 *ac_space=\ *)
22885 # `set' does not quote correctly, so add quotes (double-quote
22886 # substitution turns \\\\ into \\, and sed turns \\ into \).
22887 sed -n \
22888 "s/'/'\\\\''/g;
22889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22892 # `set' quotes correctly as required by POSIX, so do not add quotes.
22893 sed -n \
22894 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22896 esac;
22898 sed '
22899 t clear
22900 : clear
22901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22902 t end
22903 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22904 : end' >>confcache
22905 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22906 if test -w $cache_file; then
22907 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22908 cat confcache >$cache_file
22909 else
22910 echo "not updating unwritable cache $cache_file"
22913 rm -f confcache
22915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22916 # Let make expand exec_prefix.
22917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22919 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22920 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22921 # trailing colons and then remove the whole line if VPATH becomes empty
22922 # (actually we leave an empty line to preserve line numbers).
22923 if test "x$srcdir" = x.; then
22924 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22925 s/:*\$(srcdir):*/:/;
22926 s/:*\${srcdir}:*/:/;
22927 s/:*@srcdir@:*/:/;
22928 s/^\([^=]*=[ ]*\):*/\1/;
22929 s/:*$//;
22930 s/^[^=]*=[ ]*$//;
22934 DEFS=-DHAVE_CONFIG_H
22936 ac_libobjs=
22937 ac_ltlibobjs=
22938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22939 # 1. Remove the extension, and $U if already installed.
22940 ac_i=`echo "$ac_i" |
22941 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22942 # 2. Add them.
22943 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22944 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22945 done
22946 LIBOBJS=$ac_libobjs
22948 LTLIBOBJS=$ac_ltlibobjs
22952 : ${CONFIG_STATUS=./config.status}
22953 ac_clean_files_save=$ac_clean_files
22954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22955 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22956 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22957 cat >$CONFIG_STATUS <<_ACEOF
22958 #! $SHELL
22959 # Generated by $as_me.
22960 # Run this file to recreate the current configuration.
22961 # Compiler output produced by configure, useful for debugging
22962 # configure, is in config.log if it exists.
22964 debug=false
22965 ac_cs_recheck=false
22966 ac_cs_silent=false
22967 SHELL=\${CONFIG_SHELL-$SHELL}
22968 _ACEOF
22970 cat >>$CONFIG_STATUS <<\_ACEOF
22971 ## --------------------- ##
22972 ## M4sh Initialization. ##
22973 ## --------------------- ##
22975 # Be Bourne compatible
22976 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22977 emulate sh
22978 NULLCMD=:
22979 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22980 # is contrary to our usage. Disable this feature.
22981 alias -g '${1+"$@"}'='"$@"'
22982 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22983 set -o posix
22985 DUALCASE=1; export DUALCASE # for MKS sh
22987 # Support unset when possible.
22988 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22989 as_unset=unset
22990 else
22991 as_unset=false
22995 # Work around bugs in pre-3.0 UWIN ksh.
22996 $as_unset ENV MAIL MAILPATH
22997 PS1='$ '
22998 PS2='> '
22999 PS4='+ '
23001 # NLS nuisances.
23002 for as_var in \
23003 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23004 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23005 LC_TELEPHONE LC_TIME
23007 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23008 eval $as_var=C; export $as_var
23009 else
23010 $as_unset $as_var
23012 done
23014 # Required to use basename.
23015 if expr a : '\(a\)' >/dev/null 2>&1; then
23016 as_expr=expr
23017 else
23018 as_expr=false
23021 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23022 as_basename=basename
23023 else
23024 as_basename=false
23028 # Name of the executable.
23029 as_me=`$as_basename "$0" ||
23030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23031 X"$0" : 'X\(//\)$' \| \
23032 X"$0" : 'X\(/\)$' \| \
23033 . : '\(.\)' 2>/dev/null ||
23034 echo X/"$0" |
23035 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23036 /^X\/\(\/\/\)$/{ s//\1/; q; }
23037 /^X\/\(\/\).*/{ s//\1/; q; }
23038 s/.*/./; q'`
23041 # PATH needs CR, and LINENO needs CR and PATH.
23042 # Avoid depending upon Character Ranges.
23043 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23044 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23045 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23046 as_cr_digits='0123456789'
23047 as_cr_alnum=$as_cr_Letters$as_cr_digits
23049 # The user is always right.
23050 if test "${PATH_SEPARATOR+set}" != set; then
23051 echo "#! /bin/sh" >conf$$.sh
23052 echo "exit 0" >>conf$$.sh
23053 chmod +x conf$$.sh
23054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23055 PATH_SEPARATOR=';'
23056 else
23057 PATH_SEPARATOR=:
23059 rm -f conf$$.sh
23063 as_lineno_1=$LINENO
23064 as_lineno_2=$LINENO
23065 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23066 test "x$as_lineno_1" != "x$as_lineno_2" &&
23067 test "x$as_lineno_3" = "x$as_lineno_2" || {
23068 # Find who we are. Look in the path if we contain no path at all
23069 # relative or not.
23070 case $0 in
23071 *[\\/]* ) as_myself=$0 ;;
23072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23073 for as_dir in $PATH
23075 IFS=$as_save_IFS
23076 test -z "$as_dir" && as_dir=.
23077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23078 done
23081 esac
23082 # We did not find ourselves, most probably we were run as `sh COMMAND'
23083 # in which case we are not to be found in the path.
23084 if test "x$as_myself" = x; then
23085 as_myself=$0
23087 if test ! -f "$as_myself"; then
23088 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23089 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23090 { (exit 1); exit 1; }; }
23092 case $CONFIG_SHELL in
23094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23095 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23097 IFS=$as_save_IFS
23098 test -z "$as_dir" && as_dir=.
23099 for as_base in sh bash ksh sh5; do
23100 case $as_dir in
23102 if ("$as_dir/$as_base" -c '
23103 as_lineno_1=$LINENO
23104 as_lineno_2=$LINENO
23105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23106 test "x$as_lineno_1" != "x$as_lineno_2" &&
23107 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23108 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23109 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23110 CONFIG_SHELL=$as_dir/$as_base
23111 export CONFIG_SHELL
23112 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23113 fi;;
23114 esac
23115 done
23116 done
23118 esac
23120 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23121 # uniformly replaced by the line number. The first 'sed' inserts a
23122 # line-number line before each line; the second 'sed' does the real
23123 # work. The second script uses 'N' to pair each line-number line
23124 # with the numbered line, and appends trailing '-' during
23125 # substitution so that $LINENO is not a special case at line end.
23126 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23127 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23128 sed '=' <$as_myself |
23129 sed '
23131 s,$,-,
23132 : loop
23133 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23134 t loop
23135 s,-$,,
23136 s,^['$as_cr_digits']*\n,,
23137 ' >$as_me.lineno &&
23138 chmod +x $as_me.lineno ||
23139 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23140 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23141 { (exit 1); exit 1; }; }
23143 # Don't try to exec as it changes $[0], causing all sort of problems
23144 # (the dirname of $[0] is not the place where we might find the
23145 # original and so on. Autoconf is especially sensible to this).
23146 . ./$as_me.lineno
23147 # Exit status is that of the last command.
23148 exit
23152 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23153 *c*,-n*) ECHO_N= ECHO_C='
23154 ' ECHO_T=' ' ;;
23155 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23156 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23157 esac
23159 if expr a : '\(a\)' >/dev/null 2>&1; then
23160 as_expr=expr
23161 else
23162 as_expr=false
23165 rm -f conf$$ conf$$.exe conf$$.file
23166 echo >conf$$.file
23167 if ln -s conf$$.file conf$$ 2>/dev/null; then
23168 # We could just check for DJGPP; but this test a) works b) is more generic
23169 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23170 if test -f conf$$.exe; then
23171 # Don't use ln at all; we don't have any links
23172 as_ln_s='cp -p'
23173 else
23174 as_ln_s='ln -s'
23176 elif ln conf$$.file conf$$ 2>/dev/null; then
23177 as_ln_s=ln
23178 else
23179 as_ln_s='cp -p'
23181 rm -f conf$$ conf$$.exe conf$$.file
23183 if mkdir -p . 2>/dev/null; then
23184 as_mkdir_p=:
23185 else
23186 test -d ./-p && rmdir ./-p
23187 as_mkdir_p=false
23190 as_executable_p="test -f"
23192 # Sed expression to map a string onto a valid CPP name.
23193 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23195 # Sed expression to map a string onto a valid variable name.
23196 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23199 # IFS
23200 # We need space, tab and new line, in precisely that order.
23201 as_nl='
23203 IFS=" $as_nl"
23205 # CDPATH.
23206 $as_unset CDPATH
23208 exec 6>&1
23210 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23211 # report actual input values of CONFIG_FILES etc. instead of their
23212 # values after options handling. Logging --version etc. is OK.
23213 exec 5>>config.log
23215 echo
23216 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23217 ## Running $as_me. ##
23218 _ASBOX
23219 } >&5
23220 cat >&5 <<_CSEOF
23222 This file was extended by $as_me, which was
23223 generated by GNU Autoconf 2.59. Invocation command line was
23225 CONFIG_FILES = $CONFIG_FILES
23226 CONFIG_HEADERS = $CONFIG_HEADERS
23227 CONFIG_LINKS = $CONFIG_LINKS
23228 CONFIG_COMMANDS = $CONFIG_COMMANDS
23229 $ $0 $@
23231 _CSEOF
23232 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23233 echo >&5
23234 _ACEOF
23236 # Files that config.status was made for.
23237 if test -n "$ac_config_files"; then
23238 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23241 if test -n "$ac_config_headers"; then
23242 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23245 if test -n "$ac_config_links"; then
23246 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23249 if test -n "$ac_config_commands"; then
23250 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23253 cat >>$CONFIG_STATUS <<\_ACEOF
23255 ac_cs_usage="\
23256 \`$as_me' instantiates files from templates according to the
23257 current configuration.
23259 Usage: $0 [OPTIONS] [FILE]...
23261 -h, --help print this help, then exit
23262 -V, --version print version number, then exit
23263 -q, --quiet do not print progress messages
23264 -d, --debug don't remove temporary files
23265 --recheck update $as_me by reconfiguring in the same conditions
23266 --file=FILE[:TEMPLATE]
23267 instantiate the configuration file FILE
23268 --header=FILE[:TEMPLATE]
23269 instantiate the configuration header FILE
23271 Configuration files:
23272 $config_files
23274 Configuration headers:
23275 $config_headers
23277 Configuration commands:
23278 $config_commands
23280 Report bugs to <bug-autoconf@gnu.org>."
23281 _ACEOF
23283 cat >>$CONFIG_STATUS <<_ACEOF
23284 ac_cs_version="\\
23285 config.status
23286 configured by $0, generated by GNU Autoconf 2.59,
23287 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23289 Copyright (C) 2003 Free Software Foundation, Inc.
23290 This config.status script is free software; the Free Software Foundation
23291 gives unlimited permission to copy, distribute and modify it."
23292 srcdir=$srcdir
23293 INSTALL="$INSTALL"
23294 _ACEOF
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23297 # If no file are specified by the user, then we need to provide default
23298 # value. By we need to know if files were specified by the user.
23299 ac_need_defaults=:
23300 while test $# != 0
23302 case $1 in
23303 --*=*)
23304 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23305 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23306 ac_shift=:
23309 ac_option=$1
23310 ac_optarg=$2
23311 ac_shift=shift
23313 *) # This is not an option, so the user has probably given explicit
23314 # arguments.
23315 ac_option=$1
23316 ac_need_defaults=false;;
23317 esac
23319 case $ac_option in
23320 # Handling of the options.
23321 _ACEOF
23322 cat >>$CONFIG_STATUS <<\_ACEOF
23323 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23324 ac_cs_recheck=: ;;
23325 --version | --vers* | -V )
23326 echo "$ac_cs_version"; exit 0 ;;
23327 --he | --h)
23328 # Conflict between --help and --header
23329 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23330 Try \`$0 --help' for more information." >&5
23331 echo "$as_me: error: ambiguous option: $1
23332 Try \`$0 --help' for more information." >&2;}
23333 { (exit 1); exit 1; }; };;
23334 --help | --hel | -h )
23335 echo "$ac_cs_usage"; exit 0 ;;
23336 --debug | --d* | -d )
23337 debug=: ;;
23338 --file | --fil | --fi | --f )
23339 $ac_shift
23340 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23341 ac_need_defaults=false;;
23342 --header | --heade | --head | --hea )
23343 $ac_shift
23344 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23345 ac_need_defaults=false;;
23346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23348 ac_cs_silent=: ;;
23350 # This is an error.
23351 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23352 Try \`$0 --help' for more information." >&5
23353 echo "$as_me: error: unrecognized option: $1
23354 Try \`$0 --help' for more information." >&2;}
23355 { (exit 1); exit 1; }; } ;;
23357 *) ac_config_targets="$ac_config_targets $1" ;;
23359 esac
23360 shift
23361 done
23363 ac_configure_extra_args=
23365 if $ac_cs_silent; then
23366 exec 6>/dev/null
23367 ac_configure_extra_args="$ac_configure_extra_args --silent"
23370 _ACEOF
23371 cat >>$CONFIG_STATUS <<_ACEOF
23372 if \$ac_cs_recheck; then
23373 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23374 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23377 _ACEOF
23379 cat >>$CONFIG_STATUS <<_ACEOF
23381 # INIT-COMMANDS section.
23384 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23386 _ACEOF
23390 cat >>$CONFIG_STATUS <<\_ACEOF
23391 for ac_config_target in $ac_config_targets
23393 case "$ac_config_target" in
23394 # Handling of arguments.
23395 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23396 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23397 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23398 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23399 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23400 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23401 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23402 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23403 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23404 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23405 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23406 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23407 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23408 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23409 { (exit 1); exit 1; }; };;
23410 esac
23411 done
23413 # If the user did not use the arguments to specify the items to instantiate,
23414 # then the envvar interface is used. Set only those that are not.
23415 # We use the long form for the default assignment because of an extremely
23416 # bizarre bug on SunOS 4.1.3.
23417 if $ac_need_defaults; then
23418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23420 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23423 # Have a temporary directory for convenience. Make it in the build tree
23424 # simply because there is no reason to put it here, and in addition,
23425 # creating and moving files from /tmp can sometimes cause problems.
23426 # Create a temporary directory, and hook for its removal unless debugging.
23427 $debug ||
23429 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23430 trap '{ (exit 1); exit 1; }' 1 2 13 15
23433 # Create a (secure) tmp directory for tmp files.
23436 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23437 test -n "$tmp" && test -d "$tmp"
23438 } ||
23440 tmp=./confstat$$-$RANDOM
23441 (umask 077 && mkdir $tmp)
23442 } ||
23444 echo "$me: cannot create a temporary directory in ." >&2
23445 { (exit 1); exit 1; }
23448 _ACEOF
23450 cat >>$CONFIG_STATUS <<_ACEOF
23453 # CONFIG_FILES section.
23456 # No need to generate the scripts if there are no CONFIG_FILES.
23457 # This happens for instance when ./config.status config.h
23458 if test -n "\$CONFIG_FILES"; then
23459 # Protect against being on the right side of a sed subst in config.status.
23460 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23461 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23462 s,@SHELL@,$SHELL,;t t
23463 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23464 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23465 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23466 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23467 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23468 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23469 s,@exec_prefix@,$exec_prefix,;t t
23470 s,@prefix@,$prefix,;t t
23471 s,@program_transform_name@,$program_transform_name,;t t
23472 s,@bindir@,$bindir,;t t
23473 s,@sbindir@,$sbindir,;t t
23474 s,@libexecdir@,$libexecdir,;t t
23475 s,@datadir@,$datadir,;t t
23476 s,@sysconfdir@,$sysconfdir,;t t
23477 s,@sharedstatedir@,$sharedstatedir,;t t
23478 s,@localstatedir@,$localstatedir,;t t
23479 s,@libdir@,$libdir,;t t
23480 s,@includedir@,$includedir,;t t
23481 s,@oldincludedir@,$oldincludedir,;t t
23482 s,@infodir@,$infodir,;t t
23483 s,@mandir@,$mandir,;t t
23484 s,@build_alias@,$build_alias,;t t
23485 s,@host_alias@,$host_alias,;t t
23486 s,@target_alias@,$target_alias,;t t
23487 s,@DEFS@,$DEFS,;t t
23488 s,@ECHO_C@,$ECHO_C,;t t
23489 s,@ECHO_N@,$ECHO_N,;t t
23490 s,@ECHO_T@,$ECHO_T,;t t
23491 s,@LIBS@,$LIBS,;t t
23492 s,@MAINT@,$MAINT,;t t
23493 s,@build@,$build,;t t
23494 s,@build_cpu@,$build_cpu,;t t
23495 s,@build_vendor@,$build_vendor,;t t
23496 s,@build_os@,$build_os,;t t
23497 s,@host@,$host,;t t
23498 s,@host_cpu@,$host_cpu,;t t
23499 s,@host_vendor@,$host_vendor,;t t
23500 s,@host_os@,$host_os,;t t
23501 s,@CC@,$CC,;t t
23502 s,@CFLAGS@,$CFLAGS,;t t
23503 s,@LDFLAGS@,$LDFLAGS,;t t
23504 s,@CPPFLAGS@,$CPPFLAGS,;t t
23505 s,@ac_ct_CC@,$ac_ct_CC,;t t
23506 s,@EXEEXT@,$EXEEXT,;t t
23507 s,@OBJEXT@,$OBJEXT,;t t
23508 s,@CPP@,$CPP,;t t
23509 s,@EGREP@,$EGREP,;t t
23510 s,@LN_S@,$LN_S,;t t
23511 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23512 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23513 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23514 s,@RANLIB@,$RANLIB,;t t
23515 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23516 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23517 s,@GZIP_PROG@,$GZIP_PROG,;t t
23518 s,@LIBSOUND@,$LIBSOUND,;t t
23519 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23520 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23521 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23522 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23523 s,@SET_MAKE@,$SET_MAKE,;t t
23524 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23525 s,@GTK_LIBS@,$GTK_LIBS,;t t
23526 s,@ALLOCA@,$ALLOCA,;t t
23527 s,@liblockfile@,$liblockfile,;t t
23528 s,@LIBOBJS@,$LIBOBJS,;t t
23529 s,@NEED_SETGID@,$NEED_SETGID,;t t
23530 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23531 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23532 s,@GETOPT_H@,$GETOPT_H,;t t
23533 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23534 s,@version@,$version,;t t
23535 s,@configuration@,$configuration,;t t
23536 s,@canonical@,$canonical,;t t
23537 s,@srcdir@,$srcdir,;t t
23538 s,@lispdir@,$lispdir,;t t
23539 s,@locallisppath@,$locallisppath,;t t
23540 s,@lisppath@,$lisppath,;t t
23541 s,@x_default_search_path@,$x_default_search_path,;t t
23542 s,@etcdir@,$etcdir,;t t
23543 s,@archlibdir@,$archlibdir,;t t
23544 s,@docdir@,$docdir,;t t
23545 s,@bitmapdir@,$bitmapdir,;t t
23546 s,@gamedir@,$gamedir,;t t
23547 s,@gameuser@,$gameuser,;t t
23548 s,@c_switch_system@,$c_switch_system,;t t
23549 s,@c_switch_machine@,$c_switch_machine,;t t
23550 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23551 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23552 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23553 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23554 s,@machfile@,$machfile,;t t
23555 s,@opsysfile@,$opsysfile,;t t
23556 s,@carbon_appdir@,$carbon_appdir,;t t
23557 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23558 CEOF
23560 _ACEOF
23562 cat >>$CONFIG_STATUS <<\_ACEOF
23563 # Split the substitutions into bite-sized pieces for seds with
23564 # small command number limits, like on Digital OSF/1 and HP-UX.
23565 ac_max_sed_lines=48
23566 ac_sed_frag=1 # Number of current file.
23567 ac_beg=1 # First line for current file.
23568 ac_end=$ac_max_sed_lines # Line after last line for current file.
23569 ac_more_lines=:
23570 ac_sed_cmds=
23571 while $ac_more_lines; do
23572 if test $ac_beg -gt 1; then
23573 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23574 else
23575 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23577 if test ! -s $tmp/subs.frag; then
23578 ac_more_lines=false
23579 else
23580 # The purpose of the label and of the branching condition is to
23581 # speed up the sed processing (if there are no `@' at all, there
23582 # is no need to browse any of the substitutions).
23583 # These are the two extra sed commands mentioned above.
23584 (echo ':t
23585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23586 if test -z "$ac_sed_cmds"; then
23587 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23588 else
23589 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23591 ac_sed_frag=`expr $ac_sed_frag + 1`
23592 ac_beg=$ac_end
23593 ac_end=`expr $ac_end + $ac_max_sed_lines`
23595 done
23596 if test -z "$ac_sed_cmds"; then
23597 ac_sed_cmds=cat
23599 fi # test -n "$CONFIG_FILES"
23601 _ACEOF
23602 cat >>$CONFIG_STATUS <<\_ACEOF
23603 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23605 case $ac_file in
23606 - | *:- | *:-:* ) # input from stdin
23607 cat >$tmp/stdin
23608 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23610 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23612 * ) ac_file_in=$ac_file.in ;;
23613 esac
23615 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23616 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23617 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23618 X"$ac_file" : 'X\(//\)[^/]' \| \
23619 X"$ac_file" : 'X\(//\)$' \| \
23620 X"$ac_file" : 'X\(/\)' \| \
23621 . : '\(.\)' 2>/dev/null ||
23622 echo X"$ac_file" |
23623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23625 /^X\(\/\/\)$/{ s//\1/; q; }
23626 /^X\(\/\).*/{ s//\1/; q; }
23627 s/.*/./; q'`
23628 { if $as_mkdir_p; then
23629 mkdir -p "$ac_dir"
23630 else
23631 as_dir="$ac_dir"
23632 as_dirs=
23633 while test ! -d "$as_dir"; do
23634 as_dirs="$as_dir $as_dirs"
23635 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23637 X"$as_dir" : 'X\(//\)[^/]' \| \
23638 X"$as_dir" : 'X\(//\)$' \| \
23639 X"$as_dir" : 'X\(/\)' \| \
23640 . : '\(.\)' 2>/dev/null ||
23641 echo X"$as_dir" |
23642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23644 /^X\(\/\/\)$/{ s//\1/; q; }
23645 /^X\(\/\).*/{ s//\1/; q; }
23646 s/.*/./; q'`
23647 done
23648 test ! -n "$as_dirs" || mkdir $as_dirs
23649 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23650 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23651 { (exit 1); exit 1; }; }; }
23653 ac_builddir=.
23655 if test "$ac_dir" != .; then
23656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23657 # A "../" for each directory in $ac_dir_suffix.
23658 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23659 else
23660 ac_dir_suffix= ac_top_builddir=
23663 case $srcdir in
23664 .) # No --srcdir option. We are building in place.
23665 ac_srcdir=.
23666 if test -z "$ac_top_builddir"; then
23667 ac_top_srcdir=.
23668 else
23669 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23670 fi ;;
23671 [\\/]* | ?:[\\/]* ) # Absolute path.
23672 ac_srcdir=$srcdir$ac_dir_suffix;
23673 ac_top_srcdir=$srcdir ;;
23674 *) # Relative path.
23675 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23676 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23677 esac
23679 # Do not use `cd foo && pwd` to compute absolute paths, because
23680 # the directories may not exist.
23681 case `pwd` in
23682 .) ac_abs_builddir="$ac_dir";;
23684 case "$ac_dir" in
23685 .) ac_abs_builddir=`pwd`;;
23686 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23687 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23688 esac;;
23689 esac
23690 case $ac_abs_builddir in
23691 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23693 case ${ac_top_builddir}. in
23694 .) ac_abs_top_builddir=$ac_abs_builddir;;
23695 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23696 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23697 esac;;
23698 esac
23699 case $ac_abs_builddir in
23700 .) ac_abs_srcdir=$ac_srcdir;;
23702 case $ac_srcdir in
23703 .) ac_abs_srcdir=$ac_abs_builddir;;
23704 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23705 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23706 esac;;
23707 esac
23708 case $ac_abs_builddir in
23709 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23711 case $ac_top_srcdir in
23712 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23713 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23714 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23715 esac;;
23716 esac
23719 case $INSTALL in
23720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23721 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23722 esac
23724 # Let's still pretend it is `configure' which instantiates (i.e., don't
23725 # use $as_me), people would be surprised to read:
23726 # /* config.h. Generated by config.status. */
23727 if test x"$ac_file" = x-; then
23728 configure_input=
23729 else
23730 configure_input="$ac_file. "
23732 configure_input=$configure_input"Generated from `echo $ac_file_in |
23733 sed 's,.*/,,'` by configure."
23735 # First look for the input files in the build tree, otherwise in the
23736 # src tree.
23737 ac_file_inputs=`IFS=:
23738 for f in $ac_file_in; do
23739 case $f in
23740 -) echo $tmp/stdin ;;
23741 [\\/$]*)
23742 # Absolute (can't be DOS-style, as IFS=:)
23743 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23744 echo "$as_me: error: cannot find input file: $f" >&2;}
23745 { (exit 1); exit 1; }; }
23746 echo "$f";;
23747 *) # Relative
23748 if test -f "$f"; then
23749 # Build tree
23750 echo "$f"
23751 elif test -f "$srcdir/$f"; then
23752 # Source tree
23753 echo "$srcdir/$f"
23754 else
23755 # /dev/null tree
23756 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23757 echo "$as_me: error: cannot find input file: $f" >&2;}
23758 { (exit 1); exit 1; }; }
23759 fi;;
23760 esac
23761 done` || { (exit 1); exit 1; }
23763 if test x"$ac_file" != x-; then
23764 { echo "$as_me:$LINENO: creating $ac_file" >&5
23765 echo "$as_me: creating $ac_file" >&6;}
23766 rm -f "$ac_file"
23768 _ACEOF
23769 cat >>$CONFIG_STATUS <<_ACEOF
23770 sed "$ac_vpsub
23771 $extrasub
23772 _ACEOF
23773 cat >>$CONFIG_STATUS <<\_ACEOF
23775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23776 s,@configure_input@,$configure_input,;t t
23777 s,@srcdir@,$ac_srcdir,;t t
23778 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23779 s,@top_srcdir@,$ac_top_srcdir,;t t
23780 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23781 s,@builddir@,$ac_builddir,;t t
23782 s,@abs_builddir@,$ac_abs_builddir,;t t
23783 s,@top_builddir@,$ac_top_builddir,;t t
23784 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23785 s,@INSTALL@,$ac_INSTALL,;t t
23786 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23787 rm -f $tmp/stdin
23788 if test x"$ac_file" != x-; then
23789 mv $tmp/out $ac_file
23790 else
23791 cat $tmp/out
23792 rm -f $tmp/out
23795 done
23796 _ACEOF
23797 cat >>$CONFIG_STATUS <<\_ACEOF
23800 # CONFIG_HEADER section.
23803 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23804 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23806 # ac_d sets the value in "#define NAME VALUE" lines.
23807 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23808 ac_dB='[ ].*$,\1#\2'
23809 ac_dC=' '
23810 ac_dD=',;t'
23811 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23812 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23813 ac_uB='$,\1#\2define\3'
23814 ac_uC=' '
23815 ac_uD=',;t'
23817 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23819 case $ac_file in
23820 - | *:- | *:-:* ) # input from stdin
23821 cat >$tmp/stdin
23822 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23824 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23826 * ) ac_file_in=$ac_file.in ;;
23827 esac
23829 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23830 echo "$as_me: creating $ac_file" >&6;}
23832 # First look for the input files in the build tree, otherwise in the
23833 # src tree.
23834 ac_file_inputs=`IFS=:
23835 for f in $ac_file_in; do
23836 case $f in
23837 -) echo $tmp/stdin ;;
23838 [\\/$]*)
23839 # Absolute (can't be DOS-style, as IFS=:)
23840 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23841 echo "$as_me: error: cannot find input file: $f" >&2;}
23842 { (exit 1); exit 1; }; }
23843 # Do quote $f, to prevent DOS paths from being IFS'd.
23844 echo "$f";;
23845 *) # Relative
23846 if test -f "$f"; then
23847 # Build tree
23848 echo "$f"
23849 elif test -f "$srcdir/$f"; then
23850 # Source tree
23851 echo "$srcdir/$f"
23852 else
23853 # /dev/null tree
23854 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23855 echo "$as_me: error: cannot find input file: $f" >&2;}
23856 { (exit 1); exit 1; }; }
23857 fi;;
23858 esac
23859 done` || { (exit 1); exit 1; }
23860 # Remove the trailing spaces.
23861 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23863 _ACEOF
23865 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23866 # `conftest.undefs', that substitutes the proper values into
23867 # config.h.in to produce config.h. The first handles `#define'
23868 # templates, and the second `#undef' templates.
23869 # And first: Protect against being on the right side of a sed subst in
23870 # config.status. Protect against being in an unquoted here document
23871 # in config.status.
23872 rm -f conftest.defines conftest.undefs
23873 # Using a here document instead of a string reduces the quoting nightmare.
23874 # Putting comments in sed scripts is not portable.
23876 # `end' is used to avoid that the second main sed command (meant for
23877 # 0-ary CPP macros) applies to n-ary macro definitions.
23878 # See the Autoconf documentation for `clear'.
23879 cat >confdef2sed.sed <<\_ACEOF
23880 s/[\\&,]/\\&/g
23881 s,[\\$`],\\&,g
23882 t clear
23883 : clear
23884 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23885 t end
23886 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23887 : end
23888 _ACEOF
23889 # If some macros were called several times there might be several times
23890 # the same #defines, which is useless. Nevertheless, we may not want to
23891 # sort them, since we want the *last* AC-DEFINE to be honored.
23892 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23893 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23894 rm -f confdef2sed.sed
23896 # This sed command replaces #undef with comments. This is necessary, for
23897 # example, in the case of _POSIX_SOURCE, which is predefined and required
23898 # on some systems where configure will not decide to define it.
23899 cat >>conftest.undefs <<\_ACEOF
23900 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23901 _ACEOF
23903 # Break up conftest.defines because some shells have a limit on the size
23904 # of here documents, and old seds have small limits too (100 cmds).
23905 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23906 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23907 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23908 echo ' :' >>$CONFIG_STATUS
23909 rm -f conftest.tail
23910 while grep . conftest.defines >/dev/null
23912 # Write a limited-size here document to $tmp/defines.sed.
23913 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23914 # Speed up: don't consider the non `#define' lines.
23915 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23916 # Work around the forget-to-reset-the-flag bug.
23917 echo 't clr' >>$CONFIG_STATUS
23918 echo ': clr' >>$CONFIG_STATUS
23919 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23920 echo 'CEOF
23921 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23922 rm -f $tmp/in
23923 mv $tmp/out $tmp/in
23924 ' >>$CONFIG_STATUS
23925 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23926 rm -f conftest.defines
23927 mv conftest.tail conftest.defines
23928 done
23929 rm -f conftest.defines
23930 echo ' fi # grep' >>$CONFIG_STATUS
23931 echo >>$CONFIG_STATUS
23933 # Break up conftest.undefs because some shells have a limit on the size
23934 # of here documents, and old seds have small limits too (100 cmds).
23935 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23936 rm -f conftest.tail
23937 while grep . conftest.undefs >/dev/null
23939 # Write a limited-size here document to $tmp/undefs.sed.
23940 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23941 # Speed up: don't consider the non `#undef'
23942 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23943 # Work around the forget-to-reset-the-flag bug.
23944 echo 't clr' >>$CONFIG_STATUS
23945 echo ': clr' >>$CONFIG_STATUS
23946 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23947 echo 'CEOF
23948 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23949 rm -f $tmp/in
23950 mv $tmp/out $tmp/in
23951 ' >>$CONFIG_STATUS
23952 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23953 rm -f conftest.undefs
23954 mv conftest.tail conftest.undefs
23955 done
23956 rm -f conftest.undefs
23958 cat >>$CONFIG_STATUS <<\_ACEOF
23959 # Let's still pretend it is `configure' which instantiates (i.e., don't
23960 # use $as_me), people would be surprised to read:
23961 # /* config.h. Generated by config.status. */
23962 if test x"$ac_file" = x-; then
23963 echo "/* Generated by configure. */" >$tmp/config.h
23964 else
23965 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23967 cat $tmp/in >>$tmp/config.h
23968 rm -f $tmp/in
23969 if test x"$ac_file" != x-; then
23970 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23971 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23972 echo "$as_me: $ac_file is unchanged" >&6;}
23973 else
23974 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23976 X"$ac_file" : 'X\(//\)[^/]' \| \
23977 X"$ac_file" : 'X\(//\)$' \| \
23978 X"$ac_file" : 'X\(/\)' \| \
23979 . : '\(.\)' 2>/dev/null ||
23980 echo X"$ac_file" |
23981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23983 /^X\(\/\/\)$/{ s//\1/; q; }
23984 /^X\(\/\).*/{ s//\1/; q; }
23985 s/.*/./; q'`
23986 { if $as_mkdir_p; then
23987 mkdir -p "$ac_dir"
23988 else
23989 as_dir="$ac_dir"
23990 as_dirs=
23991 while test ! -d "$as_dir"; do
23992 as_dirs="$as_dir $as_dirs"
23993 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23995 X"$as_dir" : 'X\(//\)[^/]' \| \
23996 X"$as_dir" : 'X\(//\)$' \| \
23997 X"$as_dir" : 'X\(/\)' \| \
23998 . : '\(.\)' 2>/dev/null ||
23999 echo X"$as_dir" |
24000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24002 /^X\(\/\/\)$/{ s//\1/; q; }
24003 /^X\(\/\).*/{ s//\1/; q; }
24004 s/.*/./; q'`
24005 done
24006 test ! -n "$as_dirs" || mkdir $as_dirs
24007 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24008 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24009 { (exit 1); exit 1; }; }; }
24011 rm -f $ac_file
24012 mv $tmp/config.h $ac_file
24014 else
24015 cat $tmp/config.h
24016 rm -f $tmp/config.h
24018 done
24019 _ACEOF
24020 cat >>$CONFIG_STATUS <<\_ACEOF
24023 # CONFIG_COMMANDS section.
24025 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24026 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24027 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24028 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24029 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24030 X"$ac_dest" : 'X\(//\)[^/]' \| \
24031 X"$ac_dest" : 'X\(//\)$' \| \
24032 X"$ac_dest" : 'X\(/\)' \| \
24033 . : '\(.\)' 2>/dev/null ||
24034 echo X"$ac_dest" |
24035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24037 /^X\(\/\/\)$/{ s//\1/; q; }
24038 /^X\(\/\).*/{ s//\1/; q; }
24039 s/.*/./; q'`
24040 { if $as_mkdir_p; then
24041 mkdir -p "$ac_dir"
24042 else
24043 as_dir="$ac_dir"
24044 as_dirs=
24045 while test ! -d "$as_dir"; do
24046 as_dirs="$as_dir $as_dirs"
24047 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24049 X"$as_dir" : 'X\(//\)[^/]' \| \
24050 X"$as_dir" : 'X\(//\)$' \| \
24051 X"$as_dir" : 'X\(/\)' \| \
24052 . : '\(.\)' 2>/dev/null ||
24053 echo X"$as_dir" |
24054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24056 /^X\(\/\/\)$/{ s//\1/; q; }
24057 /^X\(\/\).*/{ s//\1/; q; }
24058 s/.*/./; q'`
24059 done
24060 test ! -n "$as_dirs" || mkdir $as_dirs
24061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24063 { (exit 1); exit 1; }; }; }
24065 ac_builddir=.
24067 if test "$ac_dir" != .; then
24068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24069 # A "../" for each directory in $ac_dir_suffix.
24070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24071 else
24072 ac_dir_suffix= ac_top_builddir=
24075 case $srcdir in
24076 .) # No --srcdir option. We are building in place.
24077 ac_srcdir=.
24078 if test -z "$ac_top_builddir"; then
24079 ac_top_srcdir=.
24080 else
24081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24082 fi ;;
24083 [\\/]* | ?:[\\/]* ) # Absolute path.
24084 ac_srcdir=$srcdir$ac_dir_suffix;
24085 ac_top_srcdir=$srcdir ;;
24086 *) # Relative path.
24087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24088 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24089 esac
24091 # Do not use `cd foo && pwd` to compute absolute paths, because
24092 # the directories may not exist.
24093 case `pwd` in
24094 .) ac_abs_builddir="$ac_dir";;
24096 case "$ac_dir" in
24097 .) ac_abs_builddir=`pwd`;;
24098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24099 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24100 esac;;
24101 esac
24102 case $ac_abs_builddir in
24103 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24105 case ${ac_top_builddir}. in
24106 .) ac_abs_top_builddir=$ac_abs_builddir;;
24107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24109 esac;;
24110 esac
24111 case $ac_abs_builddir in
24112 .) ac_abs_srcdir=$ac_srcdir;;
24114 case $ac_srcdir in
24115 .) ac_abs_srcdir=$ac_abs_builddir;;
24116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24118 esac;;
24119 esac
24120 case $ac_abs_builddir in
24121 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24123 case $ac_top_srcdir in
24124 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24127 esac;;
24128 esac
24131 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24132 echo "$as_me: executing $ac_dest commands" >&6;}
24133 case $ac_dest in
24134 default )
24136 ### Make the necessary directories, if they don't exist.
24137 for dir in etc lisp ; do
24138 test -d ${dir} || mkdir ${dir}
24139 done
24141 # Build src/Makefile from ${srcdir}/src/Makefile.c
24142 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24143 # This must be done after src/config.h is built, since we rely on that file.
24145 # Now get this: Some word that is part of the ${srcdir} directory name
24146 # or the ${configuration} value might, just might, happen to be an
24147 # identifier like `sun4' or `i386' or something, and be predefined by
24148 # the C preprocessor to some helpful value like 1, or maybe the empty
24149 # string. Needless to say consequent macro substitutions are less
24150 # than conducive to the makefile finding the correct directory.
24151 undefs="`echo $top_srcdir $configuration $canonical |
24152 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24153 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24156 echo creating src/epaths.h
24157 ${MAKE-make} epaths-force
24159 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24160 # `..' to `. .' unless invoked with -traditional
24162 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24163 CPPFLAGS="$CPPFLAGS -traditional"
24166 echo creating lib-src/Makefile
24167 ( cd lib-src
24168 rm -f junk.c junk1.c junk2.c
24169 sed -e '/start of cpp stuff/q' \
24170 < Makefile.c > junk1.c
24171 sed -e '1,/start of cpp stuff/d'\
24172 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24173 < Makefile.c > junk.c
24174 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24175 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24176 cat junk1.c junk2.c > Makefile.new
24177 rm -f junk.c junk1.c junk2.c
24178 chmod 444 Makefile.new
24179 mv -f Makefile.new Makefile
24182 echo creating src/Makefile
24183 ( cd src
24184 rm -f junk.c junk1.c junk2.c
24185 sed -e '/start of cpp stuff/q' \
24186 < Makefile.c > junk1.c
24187 sed -e '1,/start of cpp stuff/d'\
24188 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24189 < Makefile.c > junk.c
24190 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24191 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24192 cat junk1.c junk2.c > Makefile.new
24193 rm -f junk.c junk1.c junk2.c
24194 chmod 444 Makefile.new
24195 mv -f Makefile.new Makefile
24198 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24199 echo creating src/.gdbinit
24200 echo source $srcdir/src/.gdbinit > src/.gdbinit
24203 # This is how we know whether to re-run configure in certain cases.
24204 touch src/config.stamp
24207 esac
24208 done
24209 _ACEOF
24211 cat >>$CONFIG_STATUS <<\_ACEOF
24213 { (exit 0); exit 0; }
24214 _ACEOF
24215 chmod +x $CONFIG_STATUS
24216 ac_clean_files=$ac_clean_files_save
24219 # configure is writing to config.log, and then calls config.status.
24220 # config.status does its own redirection, appending to config.log.
24221 # Unfortunately, on DOS this fails, as config.log is still kept open
24222 # by configure, so config.status won't be able to write to it; its
24223 # output is simply discarded. So we exec the FD to /dev/null,
24224 # effectively closing config.log, so it can be properly (re)opened and
24225 # appended to by config.status. When coming back to configure, we
24226 # need to make the FD available again.
24227 if test "$no_create" != yes; then
24228 ac_cs_success=:
24229 ac_config_status_args=
24230 test "$silent" = yes &&
24231 ac_config_status_args="$ac_config_status_args --quiet"
24232 exec 5>/dev/null
24233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24234 exec 5>>config.log
24235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24236 # would make configure fail if this is the last instruction.
24237 $ac_cs_success || { (exit 1); exit 1; }