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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
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.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP SETARCH LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
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'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
431 -help |
--help |
--hel |
--he |
-h)
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)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
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'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
610 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
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`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
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.
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
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 ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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.
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.
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 \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
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
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --disable-largefile omit support
for large files
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-gcc don
't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP
mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version
5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server
host
871 --without-sound don
't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don
't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables
:
888 CC C compiler
command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
891 nonstandard directory
<lib dir
>
892 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
893 headers
in a nonstandard directory
<include dir
>
896 Use these variables to override the choices made by
`configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1018 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1019 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1020 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1021 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1022 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1025 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1027 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1029 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1030 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1031 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1033 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_must_keep_next=false
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 -* ) ac_must_keep_next=true ;;
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close
' the trap.
1113 trap 'exit_status
=$?
1114 # Save into config.log some information that might help in debugging.
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1124 # The following way of writing the cache mishandles newlines in values,
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1147 for ac_var
in $ac_subst_vars
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -n "$ac_subst_files"; then
1161 for ac_var
in $ac_subst_files
1163 eval ac_val
=$
`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -s confdefs.h
; then
1176 sed "/^$/d" confdefs.h |
sort
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1183 rm -f core
*.core
&&
1184 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's
/^
/|
/' "$ac_site_file" >&5
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1259 # Check that the precious variables saved in the cache have kept the same
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1272 ac_cache_corrupted=: ;;
1274 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1281 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1306 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1313 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it
if useless.
1344 cat <<\_ACEOF
>conftest.
sed
1345 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1347 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1351 lispdir
='${datadir}/emacs/${version}/lisp'
1352 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath
='${locallisppath}:${lispdir}'
1355 etcdir
='${datadir}/emacs/${version}/etc'
1356 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir
='${datadir}/emacs/${version}/etc'
1358 gamedir
='${localstatedir}/games/emacs'
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define MAIL_USE_POP 1
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval
="$with_kerberos"
1390 cat >>confdefs.h
<<\_ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval
="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1403 cat >>confdefs.h
<<\_ACEOF
1410 cat >>confdefs.h
<<\_ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval
="$with_hesiod"
1420 cat >>confdefs.h
<<\_ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval
="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval
="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye |
yes ) val
=athena
;;
1440 l | lu | luc | luci | lucid
) val
=lucid
;;
1441 a |
at | ath | athe | athen | athena
) val
=athena
;;
1442 m | mo | mot | moti | motif
) val
=motif
;;
1443 g | gt | gtk
) val
=gtk
;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval
="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval
="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval
="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval
="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval
="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval
="$enable_carbon_app"
1520 carbon_appdir_x
=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval
="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE
=$enableval
1528 USE_MAINTAINER_MODE
=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1555 srcdir
="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1581 ### Canonicalize the configuration name.
1584 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1585 if test -f $ac_dir/install-sh
; then
1587 ac_install_sh
="$ac_aux_dir/install-sh -c"
1589 elif test -f $ac_dir/install.sh
; then
1591 ac_install_sh
="$ac_aux_dir/install.sh -c"
1593 elif test -f $ac_dir/shtool
; then
1595 ac_install_sh
="$ac_aux_dir/shtool install -c"
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1604 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias
=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias
=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias
=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias
=$ac_cv_build_alias
1648 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 configuration
=${host_alias-$host}
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1690 machine
='' opsys
='' unported
=no
1691 case "${canonical}" in
1696 case "${canonical}" in
1697 alpha
*-*-freebsd*) machine
=alpha
;;
1698 i
[3456]86-*-freebsd*) machine
=intel386
;;
1705 if test -f /usr
/lib
/crti.o
; then
1707 cat >>confdefs.h
<<\_ACEOF
1713 case "${canonical}" in
1714 alpha
*-*-netbsd*) machine
=alpha
;;
1715 i
[3456]86-*-netbsd*) machine
=intel386
;;
1717 # This is somewhat bogus.
1718 machine
=hp9000s300
;;
1719 powerpc-apple-netbsd
*) machine
=macppc
;;
1720 mips-
*-netbsd*) machine
=pmax
;;
1721 mipsel-
*-netbsd*) machine
=pmax
;;
1722 mipseb-
*-netbsd*) machine
=pmax
;;
1723 ns32k-
*-netbsd*) machine
=ns32000
;;
1724 powerpc-
*-netbsd*) machine
=macppc
;;
1725 sparc
*-*-netbsd*) machine
=sparc
;;
1726 vax-
*-netbsd*) machine
=vax
;;
1727 arm-
*-netbsd*) machine
=arm
;;
1734 case "${canonical}" in
1735 alpha
*-*-openbsd*) machine
=alpha
;;
1736 i386-
*-openbsd*) machine
=intel386
;;
1737 m68k-
*-openbsd*) machine
=hp9000s300
;;
1738 mipsel-
*-openbsd*) machine
=pmax
;;
1739 ns32k-
*-openbsd*) machine
=ns32000
;;
1740 sparc-
*-openbsd*) machine
=sparc
;;
1741 vax-
*-openbsd*) machine
=vax
;;
1746 arm-acorn-riscix1.1
* )
1747 machine
=acorn opsys
=riscix1-1
1749 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine
=acorn opsys
=riscix12
1758 case "${canonical}" in
1759 i
[345]86-*-bsdi*) machine
=intel386
;;
1760 sparc-
*-bsdi*) machine
=sparc
;;
1761 powerpc-
*-bsdi*) machine
=macppc
;;
1763 case "${canonical}" in
1764 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1765 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1766 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1767 *-*-bsdi3* ) opsys
=bsdos3
;;
1768 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1779 machine
=alliant4 opsys
=bsd4-2
1782 machine
=alliant-2800 opsys
=bsd4-3
1785 ## Alpha (DEC) machines.
1787 machine
=alpha opsys
=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1790 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP
=/usr
/bin
/cpp
1796 case "${canonical}" in
1797 alpha
*-dec-osf[5-9]*)
1802 alpha
*-*-linux-gnu* )
1803 machine
=alpha opsys
=gnu-linux
1807 machine
=arm opsys
=gnu-linux
1812 machine
=macppc opsys
=gnu-linux
1817 machine
=altos opsys
=usg5-2
1822 machine
=amdahl opsys
=usg5-2-2
1825 ## Apollo, Domain/OS
1827 machine
=apollo opsys
=bsd4-3
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1832 machine
=att3b opsys
=usg5-2-2
1835 ## AT&T 3b1 - The Mighty Unix PC!
1837 machine
=7300 opsys
=usg5-2-2
1842 machine
=ibmrs6000 opsys
=aix3-2
1847 machine
=dpx2 opsys
=usg5-3
1852 machine
=sps7 opsys
=usg5-2
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd
* )
1862 machine
=celerity opsys
=bsd4-2
1866 ## What operating systems does this chip run that Emacs has been
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1875 mips-compaq-nonstopux
* )
1876 machine
=nonstopux opsys
=nonstopux
1880 *-convex-bsd* |
*-convex-convexos* )
1881 machine
=convex opsys
=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP
="cc -E -P"
1887 i
[3456]86-cubix-sysv* )
1888 machine
=intel386 opsys
=usg5-3
1892 cydra
*-cydrome-sysv* )
1893 machine
=cydra5 opsys
=usg5-3
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1903 machine
=aviion opsys
=dgux4
1905 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine
=aviion opsys
=dgux5-4-3
1910 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1911 machine
=aviion opsys
=dgux5-4r2
1914 machine
=aviion opsys
=dgux
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i
[345]86-dg-dguxR4* )
1921 machine
=aviion-intel opsys
=dgux4
1925 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1926 machine
=pmax opsys
=bsd4-2
1928 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1929 machine
=pmax opsys
=bsd4-3
1932 machine
=pmax opsys
=ultrix4-3
1935 machine
=pmax opsys
=osf1
1937 mips-dec-mach_bsd4.3
* )
1938 machine
=pmax opsys
=mach-bsd4-3
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1943 machine
=delta opsys
=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1946 if test -s /etc
/167config
1947 then CC
="gnucc -m68040"
1948 else CC
="gnucc -m68881"
1951 if test -z "`type gcc | grep 'not found'`"
1957 m88k-motorola-sysv4
* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine
=delta88k opsys
=usg5-4-2
1964 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1965 machine
=delta88k opsys
=usg5-3
1970 machine
=dual opsys
=usg5-2
1972 m68
*-dual-uniplus* )
1973 machine
=dual opsys
=unipl5-2
1978 machine
=elxsi opsys
=usg5-2
1983 machine
=ns16000 opsys
=umax
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1989 ## Gould Power Node and NP1
1991 machine
=gould opsys
=bsd4-2
1994 machine
=gould opsys
=bsd4-3
1997 machine
=gould-np1 opsys
=bsd4-3
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2006 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2008 NON_GNU_CPP
="/lib/cpp"
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2012 machine
=nh3000 opsys
=cxux
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix
)
2016 machine
=nh6000 opsys
=powerunix
2017 NON_GNU_CPP
="cc -Xo -E -P"
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1
-hitachi-hiuxmpp* )
2021 machine
=sr2k opsys
=hiuxmpp
2023 hppa1.1
-hitachi-hiuxwe2* )
2024 machine
=sr2k opsys
=hiuxwe2
2027 xps
*-honeywell-sysv* )
2028 machine
=xps100 opsys
=usg5-2
2031 ## HP 9000 series 200 or 300
2033 machine
=hp9000s300 opsys
=bsd4-3
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2041 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2042 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2043 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2044 *) machine
=hp9000s300 opsys
=hpux
;;
2048 ## HP 9000 series 700 and 800, running HP/UX
2050 machine
=hp800 opsys
=hpux
2053 machine
=hp800 opsys
=hpux8
2055 hppa
*-hp-hpux9shr* )
2056 machine
=hp800 opsys
=hpux9shr
2059 machine
=hp800 opsys
=hpux9
2061 hppa
*-hp-hpux10.2
* )
2062 machine
=hp800 opsys
=hpux10-20
2065 machine
=hp800 opsys
=hpux10
2067 hppa
*-hp-hpux1[1-9]* )
2068 machine
=hp800 opsys
=hpux11
2071 hppa
*-*-linux-gnu* )
2072 machine
=hp800 opsys
=gnu-linux
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2082 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2083 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2084 *) machine
=hp800 opsys
=hpux10
;;
2088 machine
=hp800 opsys
=nextstep
2093 machine
=orion opsys
=bsd4-2
2095 clipper-orion-bsd
* )
2096 machine
=orion105 opsys
=bsd4-2
2100 i
[3456]86-ibm-aix1.1
* )
2101 machine
=ibmps2-aix opsys
=usg5-2-2
2103 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2104 machine
=ibmps2-aix opsys
=usg5-3
2107 machine
=ibm370aix opsys
=usg5-3
2110 machine
=ibms390 opsys
=gnu-linux
2112 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2113 machine
=ibmrs6000 opsys
=aix3-1
2115 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2116 machine
=ibmrs6000 opsys
=aix3-2-5
2118 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2119 machine
=ibmrs6000 opsys
=aix4-1
2121 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2122 machine
=ibmrs6000 opsys
=aix4-2
2124 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2125 machine
=ibmrs6000 opsys
=aix4-2
2127 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2128 machine
=ibmrs6000 opsys
=aix4
2130 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2131 machine
=ibmrs6000 opsys
=aix4-1
2133 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2134 machine
=ibmrs6000 opsys
=aix3-2
2137 machine
=ibmrt opsys
=bsd4-3
2140 machine
=ibmrt opsys
=bsd4-2
2143 machine
=ibmrt opsys
=bsd4-3
2146 machine
=ibmrt opsys
=bsd4-2
2149 machine
=ibmrt opsys
=bsd4-3
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt-aix opsys
=usg5-2-2
2158 ## Integrated Solutions `Optimum V'
2160 machine
=isi-ov opsys
=bsd4-2
2163 machine
=isi-ov opsys
=bsd4-3
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i
[3456]86-intsys-sysv* )
2168 machine
=is386 opsys
=usg5-2-2
2172 i
[3456]86-prime-sysv* )
2173 machine
=i386 opsys
=usg5-3
2176 ## Sequent Symmetry running Dynix
2177 i
[3456]86-sequent-bsd* )
2178 machine
=symmetry opsys
=bsd4-3
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2183 machine
=sequent-ptx opsys
=ptx4
2184 NON_GNU_CPP
=/lib
/cpp
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i
[3456]86-sequent-ptx* )
2190 machine
=sequent-ptx opsys
=ptx
2191 NON_GNU_CPP
="/lib/cpp"
2194 ## ncr machine running svr4.3.
2195 i
[3456]86-ncr-sysv4.3
)
2196 machine
=ncr386 opsys
=usg5-4-3
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i
[3456]86-ncr-sysv* )
2202 machine
=ncr386 opsys
=usg5-4-2
2205 ## Intel Paragon OSF/1
2207 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2212 machine
=i860 opsys
=usg5-4
2213 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2217 ## Macintosh PowerPC
2218 powerpc
*-*-linux-gnu* )
2219 machine
=macppc opsys
=gnu-linux
2222 ## Masscomp machines
2223 m68
*-masscomp-rtu* )
2224 machine
=masscomp opsys
=rtu
2227 ## Megatest machines
2228 m68
*-megatest-bsd* )
2229 machine
=mega68 opsys
=bsd4-2
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2245 ## Fall through to the general code at the bottom to decide on the OS.
2247 mips-mips-riscos4
* )
2248 machine
=mips4 opsys
=bsd4-3
2249 NON_GNU_CC
="cc -systype bsd43"
2250 NON_GNU_CPP
="cc -systype bsd43 -E"
2252 mips-mips-riscos5
* )
2253 machine
=mips4 opsys
=riscos5
2254 NON_GNU_CC
="cc -systype bsd43"
2255 NON_GNU_CPP
="cc -systype bsd43 -E"
2258 machine
=mips opsys
=bsd4-3
2261 machine
=mips opsys
=usg5-2-2
2265 m68
*-next-* | m68k-
*-nextstep* )
2266 machine
=m68k opsys
=nextstep
2269 ## The complete machine from National Semiconductor
2271 machine
=ns32000 opsys
=usg5-2
2275 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2276 machine
=tower32 opsys
=usg5-2-2
2278 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2279 machine
=tower32v3 opsys
=usg5-3
2284 machine
=ews4800 opsys
=ux4800
2287 ## Nixdorf Targon 31
2288 m68
*-nixdorf-sysv* )
2289 machine
=targon31 opsys
=usg5-2-2
2294 machine
=nu opsys
=usg5-2
2299 machine
=plexus opsys
=usg5-2
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd
* )
2306 machine
=pyramid opsys
=bsd4-2
2310 ns32k-sequent-bsd4.2
* )
2311 machine
=sequent opsys
=bsd4-2
2313 ns32k-sequent-bsd4.3
* )
2314 machine
=sequent opsys
=bsd4-3
2318 mips-siemens-sysv
* | mips-sni-sysv
*)
2319 machine
=mips-siemens opsys
=usg5-4
2320 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2321 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2327 machine
=irist opsys
=iris3-5
2329 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2330 machine
=irist opsys
=iris3-6
2334 machine
=iris4d opsys
=irix3-3
2337 machine
=iris4d opsys
=irix4-0
2340 machine
=iris4d opsys
=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2348 machine
=iris4d opsys
=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS
=-32
2355 mips-sgi-irix5.
[01]* )
2356 machine
=iris4d opsys
=irix5-0
2358 mips-sgi-irix5
* | mips-sgi-irix
* )
2359 machine
=iris4d opsys
=irix5-2
2364 machine
=news opsys
=bsd4-2
2367 machine
=news opsys
=bsd4-3
2369 m68
*-sony-newsos3* | m68
*-sony-news3*)
2370 machine
=news opsys
=bsd4-3
2372 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2373 machine
=news-risc opsys
=bsd4-3
2375 mips-sony-newsos6
* )
2376 machine
=news-r6 opsys
=newsos6
2379 machine
=news-risc opsys
=newsos5
2384 machine
=stride opsys
=usg5-2
2388 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2389 machine
=sparc opsys
=gnu-linux
2392 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2393 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2394 | rs6000-
*-solaris2*)
2395 case "${canonical}" in
2396 m68
*-sunos1* ) machine
=sun1
;;
2397 m68
*-sunos2* ) machine
=sun2
;;
2398 m68
* ) machine
=sun3
;;
2399 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2400 i
[3456]86-*-* ) machine
=intel386
;;
2401 powerpcle
* ) machine
=powerpcle
;;
2402 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2403 sparc
* ) machine
=sparc
;;
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2409 *-sunos4.0
* ) opsys
=sunos4-0
;;
2410 *-sunos4.1.
[3-9]*noshare
)
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2414 NON_GNU_CPP
=/usr
/lib
/cpp
2415 NON_GCC_TEST_OPTIONS
=-Bstatic
2416 GCC_TEST_OPTIONS
=-static
2418 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2420 NON_GNU_CPP
=/usr
/lib
/cpp
2422 *-sunos4* |
*-sunos )
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos5.3
* |
*-solaris2.3
* )
2429 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2431 *-sunos5.4
* |
*-solaris2.4
* )
2433 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2436 *-sunos5.5
* |
*-solaris2.5
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2441 *-sunos5.6
* |
*-solaris2.6
* )
2443 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2446 *-sunos5* |
*-solaris* )
2448 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* |
*-sunos5* )
2455 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2465 machine
=sparc opsys
=nextstep
2469 m68
*-tadpole-sysv* )
2470 machine
=tad68k opsys
=usg5-3
2474 tahoe-tahoe-bsd4.2
* )
2475 machine
=tahoe opsys
=bsd4-2
2477 tahoe-tahoe-bsd4.3
* )
2478 machine
=tahoe opsys
=bsd4-3
2481 ## Tandem Integrity S2
2483 machine
=tandem-s2 opsys
=usg5-3
2487 m88k-tektronix-sysv3
* )
2488 machine
=tekxd88 opsys
=usg5-3
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd
* )
2493 machine
=ns16000 opsys
=bsd4-2
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68
*-tektronix-bsd* )
2498 machine
=tek4300 opsys
=bsd4-3
2502 ## We seem to have lost the machine-description file titan.h!
2504 machine
=titan opsys
=usg5-3
2507 ## Ustation E30 (SS5E)
2508 m68
*-unisys-uniplus* )
2509 machine
=ustation opsystem
=unipl5-2
2515 case "${canonical}" in
2516 *-bsd4.1
* ) opsys
=bsd4-1
;;
2517 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2518 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2519 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2520 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2521 *-vms* ) opsys
=vms
;;
2527 ns16k-whitechapel-
* )
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2535 machine
=wicat opsys
=usg5-2
2540 machine
=ia64 opsys
=gnu-linux
2543 ## Intel 386 machines where we don't care about the manufacturer
2546 case "${canonical}" in
2547 *-cygwin ) opsys
=cygwin
;;
2548 *-lynxos* ) opsys
=lynxos
;;
2549 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2550 *-isc2.2
* ) opsys
=isc2-2
;;
2551 *-isc4.0
* ) opsys
=isc4-0
;;
2552 *-isc4.
* ) opsys
=isc4-1
2553 GCC_TEST_OPTIONS
=-posix
2554 NON_GCC_TEST_OPTIONS
=-Xp
2556 *-isc* ) opsys
=isc3-0
;;
2557 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2558 *-esix* ) opsys
=esix
;;
2559 *-xenix* ) opsys
=xenix
;;
2560 *-linux-gnu* ) opsys
=gnu-linux
;;
2561 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2562 *-sco3.2v5
* ) opsys
=sco5
2563 NON_GNU_CPP
=/lib
/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS
=" "
2568 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2569 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2570 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-386bsd* ) opsys
=386bsd
;;
2572 *-nextstep* ) opsys
=nextstep
;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2577 ## m68k Linux-based GNU system
2579 machine
=m68k opsys
=gnu-linux
2582 ## Mips Linux-based GNU system
2583 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2584 machine
=mips opsys
=gnu-linux
2588 sparc-fujitsu-sysv4
* )
2589 machine
=sparc opsys
=uxpds
2590 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2595 f301-fujitsu-uxpv4.1
)
2596 machine
=f301 opsys
=uxpv
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin
* )
2601 machine
=powermac opsys
=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP
="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw
/include
&& test -d /sw
/lib
; then
2606 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2607 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-
*-linux-gnu* )
2614 machine
=amdx86-64 opsys
=gnu-linux
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2628 if test x
"${opsys}" = x
; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys
=gnu
;;
2631 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2632 *-bsd4.2
) opsys
=bsd4-2
;;
2633 *-bsd4.3
) opsys
=bsd4-3
;;
2634 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2635 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2636 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2637 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2638 *-sysv4.2uw
* ) opsys
=unixware
;;
2639 *-sysv5uw* ) opsys
=unixware
;;
2640 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2641 *-sysv4.1
* |
*-sysvr4.1
* )
2642 NON_GNU_CPP
=/usr
/lib
/cpp
2644 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2645 if [ x
$NON_GNU_CPP = x
]; then
2646 if [ -f /usr
/ccs
/lib
/cpp
]; then
2647 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2649 NON_GNU_CPP
=/lib
/cpp
2653 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2670 machfile
="m/${machine}.h"
2671 opsysfile
="s/${opsys}.h"
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified
=yes
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS
="$CFLAGS"
2681 "yes" ) CC
="gcc" GCC
=yes ;;
2682 "no" ) : ${CC=cc} ;;
2686 ac_cpp
='$CPP $CPPFLAGS'
2687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC
="$CC" # Let the user override the test.
2701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir
=.
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc
; ac_word
=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC
="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC
="$CC" # Let the user override the test.
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_CC"; then
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc
; ac_word
=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC
="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc
; ac_word
=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC
="$CC" # Let the user override the test.
2862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir
=.
2867 for ac_exec_ext
in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected
=yes
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy
$ac_cv_prog_CC
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2889 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC
="$CC" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$CC" && break
2946 if test -z "$CC"; then
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy
$ac_prog; ac_word
=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 test -n "$ac_ct_CC" && break
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler
=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 cat >conftest.
$ac_ext <<_ACEOF
3023 cat confdefs.h
>>conftest.
$ac_ext
3024 cat >>conftest.
$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 ac_clean_files_save
=$ac_clean_files
3036 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3055 # b.out is created by i960 compilers.
3056 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3058 test -f "$ac_file" ||
continue
3060 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3063 # This is the source file.
3066 # We found the default executable, but exeext='' is most
3070 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3091 ac_exeext
=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try
='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 if test "$cross_compiling" = maybe
; then
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3127 ac_clean_files
=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3146 for ac_file
in conftest.exe conftest conftest.
*; do
3147 test -f "$ac_file" ||
continue
3149 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3150 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest
$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3168 rm -f conftest.
$ac_ext
3169 EXEEXT
=$ac_cv_exeext
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 cat >conftest.
$ac_ext <<_ACEOF
3179 cat confdefs.h
>>conftest.
$ac_ext
3180 cat >>conftest.
$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3199 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3200 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.
$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3215 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT
=$ac_cv_objext
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1
>conftest.err
3250 cat conftest.err
>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try
='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try
='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.
$ac_ext >&5
3273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3274 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS
=${CFLAGS+set}
3281 ac_save_CFLAGS
=$CFLAGS
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 cat >conftest.
$ac_ext <<_ACEOF
3291 cat confdefs.h
>>conftest.
$ac_ext
3292 cat >>conftest.
$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3303 rm -f conftest.
$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3307 grep -v '^ *+' conftest.er1
>conftest.err
3309 cat conftest.err
>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try
='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try
='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.
$ac_ext >&5
3332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS
=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3345 if test "$GCC" = yes; then
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 ac_cv_prog_cc_stdc
=no
3358 cat >conftest.
$ac_ext <<_ACEOF
3361 cat confdefs.h
>>conftest.
$ac_ext
3362 cat >>conftest.
$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3382 s = g (p, va_arg (v,int));
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC
="$ac_save_CC $ac_arg"
3420 rm -f conftest.
$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1
>conftest.err
3426 cat conftest.err
>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try
='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try
='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc
=$ac_arg
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3449 rm -f conftest.err conftest.
$ac_objext
3451 rm -f conftest.
$ac_ext conftest.
$ac_objext
3456 case "x$ac_cv_prog_cc_stdc" in
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.
$ac_ext <<_ACEOF
3475 rm -f conftest.
$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3479 grep -v '^ *+' conftest.er1
>conftest.err
3481 cat conftest.err
>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try
='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try
='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration
in \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3505 cat >conftest.
$ac_ext <<_ACEOF
3508 cat confdefs.h
>>conftest.
$ac_ext
3509 cat >>conftest.
$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3521 rm -f conftest.
$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try
='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try
='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.
$ac_ext >&5
3550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3551 cat >conftest.
$ac_ext <<_ACEOF
3554 cat confdefs.h
>>conftest.
$ac_ext
3555 cat >>conftest.
$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.
$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1
>conftest.err
3572 cat conftest.err
>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try
='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try
='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.
$ac_ext >&5
3594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3610 ac_cpp
='$CPP $CPPFLAGS'
3611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3633 test x
$cc_specified != xyes
3638 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3640 CC
="$CC $GCC_TEST_OPTIONS"
3643 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3645 CC
="$CC $NON_GCC_TEST_OPTIONS"
3648 #### Some other nice autoconf tests.
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3662 ac_cpp
='$CPP $CPPFLAGS'
3663 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 # Double quotes because CPP needs to be expanded
3677 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680 for ac_c_preproc_warn_flag
in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.
$ac_ext <<_ACEOF
3691 cat confdefs.h
>>conftest.
$ac_ext
3692 cat >>conftest.
$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3695 # include <limits.h>
3697 # include <assert.h>
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3704 grep -v '^ *+' conftest.er1
>conftest.err
3706 cat conftest.err
>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev
/null
; then
3709 if test -s conftest.err
; then
3710 ac_cpp_err
=$ac_c_preproc_warn_flag
3711 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3718 if test -z "$ac_cpp_err"; then
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.
$ac_ext >&5
3724 # Broken: fails on valid input.
3727 rm -f conftest.err conftest.
$ac_ext
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev
/null
; then
3747 if test -s conftest.err
; then
3748 ac_cpp_err
=$ac_c_preproc_warn_flag
3749 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.
$ac_ext >&5
3763 # Passes both tests.
3767 rm -f conftest.err conftest.
$ac_ext
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.
$ac_ext
3772 if $ac_preproc_ok; then
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3787 for ac_c_preproc_warn_flag
in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.
$ac_ext <<_ACEOF
3798 cat confdefs.h
>>conftest.
$ac_ext
3799 cat >>conftest.
$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3802 # include <limits.h>
3804 # include <assert.h>
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3811 grep -v '^ *+' conftest.er1
>conftest.err
3813 cat conftest.err
>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev
/null
; then
3816 if test -s conftest.err
; then
3817 ac_cpp_err
=$ac_c_preproc_warn_flag
3818 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3825 if test -z "$ac_cpp_err"; then
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.
$ac_ext >&5
3831 # Broken: fails on valid input.
3834 rm -f conftest.err conftest.
$ac_ext
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev
/null
; then
3854 if test -s conftest.err
; then
3855 ac_cpp_err
=$ac_c_preproc_warn_flag
3856 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 # Passes both tests.
3874 rm -f conftest.err conftest.
$ac_ext
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.
$ac_ext
3879 if $ac_preproc_ok; then
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3890 ac_cpp
='$CPP $CPPFLAGS'
3891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir
=.
3919 # Account for people who put trailing slashes in PATH elements.
3921 .
/ | .
// |
/cC
/* | \
3922 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3923 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3929 for ac_prog
in ginstall scoinst
install; do
3930 for ac_exec_ext
in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3936 elif test $ac_prog = install &&
3937 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3941 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL
=$ac_cv_path_install
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL
=$ac_install_sh
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3972 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3974 if test "x$RANLIB" = x
; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir
=.
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 RANLIB
=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB
=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib
; ac_word
=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_exec_ext
in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4041 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4050 RANLIB
=$ac_ct_RANLIB
4052 RANLIB
="$ac_cv_prog_RANLIB"
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info
; ac_word
=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 case $INSTALL_INFO in
4065 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info
; ac_word
=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 case $INSTALL_INFO in
4104 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4108 for as_dir
in /usr
/sbin
4111 test -z "$as_dir" && as_dir
=.
4112 for ac_exec_ext
in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info
; ac_word
=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 case $INSTALL_INFO in
4143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4176 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4178 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4181 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4183 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4187 late_LDFLAGS
=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4191 LDFLAGS
="$LDFLAGS -znocombreloc"
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4197 cat >conftest.
$ac_ext <<_ACEOF
4200 rm -f conftest.
$ac_objext conftest
$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4204 grep -v '^ *+' conftest.er1
>conftest.err
4206 cat conftest.err
>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try
='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try
='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.
$ac_ext >&5
4228 LDFLAGS
=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4232 rm -f conftest.err conftest.
$ac_objext \
4233 conftest
$ac_exeext conftest.
$ac_ext
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4242 then ac_cv_prog_egrep
='grep -E'
4243 else ac_cv_prog_egrep
='egrep'
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP
=$ac_cv_prog_egrep
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.
$ac_ext <<_ACEOF
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev
/null
2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h
<<\_ACEOF
4270 #define _ALL_SOURCE 1
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4281 echo "$as_me:$LINENO: checking for /proc/sys/kernel/exec-shield" >&5
4282 echo $ECHO_N "checking for /proc/sys/kernel/exec-shield... $ECHO_C" >&6
4283 if test "${ac_cv_file__proc_sys_kernel_exec_shield+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 test "$cross_compiling" = yes &&
4287 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4288 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4289 { (exit 1); exit 1; }; }
4290 if test -r "/proc/sys/kernel/exec-shield"; then
4291 ac_cv_file__proc_sys_kernel_exec_shield
=yes
4293 ac_cv_file__proc_sys_kernel_exec_shield
=no
4296 echo "$as_me:$LINENO: result: $ac_cv_file__proc_sys_kernel_exec_shield" >&5
4297 echo "${ECHO_T}$ac_cv_file__proc_sys_kernel_exec_shield" >&6
4298 if test $ac_cv_file__proc_sys_kernel_exec_shield = yes; then
4299 emacs_cv_execshield
=1
4301 emacs_cv_execshield
=0
4304 if test "$emacs_cv_execshield" = 1; then
4305 # Extract the first word of "setarch", so it can be a program name with args.
4306 set dummy setarch
; ac_word
=$2
4307 echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309 if test "${ac_cv_path_SETARCH+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_cv_path_SETARCH
="$SETARCH" # Let the user override the test with a path.
4317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir
=.
4322 for ac_exec_ext
in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_path_SETARCH
="$as_dir/$ac_word$ac_exec_ext"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH
="no"
4335 SETARCH
=$ac_cv_path_SETARCH
4337 if test -n "$SETARCH"; then
4338 echo "$as_me:$LINENO: result: $SETARCH" >&5
4339 echo "${ECHO_T}$SETARCH" >&6
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4346 if test "$setarch" != no
&& test "$machine" = "intel386"; then
4348 cat >>confdefs.h
<<\_ACEOF
4349 #define HAVE_EXECSHIELD 1
4353 case "`cat /proc/sys/kernel/exec-shield`" in
4356 { { echo "$as_me:$LINENO: error: Exec-shield is turned on.
4357 Emacs can not dump itself if exec-shield is turned on.
4358 See \`etc/PROBLEMS' for further information." >&5
4359 echo "$as_me: error: Exec-shield is turned on.
4360 Emacs can not dump itself if exec-shield is turned on.
4361 See \`etc/PROBLEMS' for further information." >&2;}
4362 { (exit 1); exit 1; }; }
4367 #### Extract some information from the operating system and machine files.
4369 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4370 - which libraries the lib-src programs will want, and
4371 - whether the GNU malloc routines are usable..." >&5
4372 echo "$as_me: checking the machine- and system-dependent files to find out
4373 - which libraries the lib-src programs will want, and
4374 - whether the GNU malloc routines are usable..." >&6;}
4376 ### First figure out CFLAGS (which we use for running the compiler here)
4377 ### and REAL_CFLAGS (which we use for real compilation).
4378 ### The two are the same except on a few systems, where they are made
4379 ### different to work around various lossages. For example,
4380 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4381 ### as implying static linking.
4383 ### If the CFLAGS env var is specified, we use that value
4384 ### instead of the default.
4386 ### It's not important that this name contain the PID; you can't run
4387 ### two configures in the same directory and have anything work
4389 tempcname
="conftest.c"
4392 #include "'${srcdir}'/src/'${opsysfile}'"
4393 #include "'${srcdir}'/src/'${machfile}'"
4394 #ifndef LIBS_MACHINE
4395 #define LIBS_MACHINE
4400 #ifndef C_SWITCH_SYSTEM
4401 #define C_SWITCH_SYSTEM
4403 #ifndef C_SWITCH_MACHINE
4404 #define C_SWITCH_MACHINE
4406 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4407 configure___ c_switch_system=C_SWITCH_SYSTEM
4408 configure___ c_switch_machine=C_SWITCH_MACHINE
4411 #define LIB_X11_LIB -lX11
4414 #ifndef LIBX11_MACHINE
4415 #define LIBX11_MACHINE
4418 #ifndef LIBX11_SYSTEM
4419 #define LIBX11_SYSTEM
4421 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4424 configure___ unexec=UNEXEC
4426 configure___ unexec=unexec.o
4429 #ifdef SYSTEM_MALLOC
4430 configure___ system_malloc=yes
4432 configure___ system_malloc=no
4435 #ifdef USE_MMAP_FOR_BUFFERS
4436 configure___ use_mmap_for_buffers=yes
4438 configure___ use_mmap_for_buffers=no
4441 #ifndef C_DEBUG_SWITCH
4442 #define C_DEBUG_SWITCH -g
4445 #ifndef C_OPTIMIZE_SWITCH
4447 #define C_OPTIMIZE_SWITCH -O2
4449 #define C_OPTIMIZE_SWITCH -O
4453 #ifndef LD_SWITCH_MACHINE
4454 #define LD_SWITCH_MACHINE
4457 #ifndef LD_SWITCH_SYSTEM
4458 #define LD_SWITCH_SYSTEM
4461 #ifndef LD_SWITCH_X_SITE_AUX
4462 #define LD_SWITCH_X_SITE_AUX
4465 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4466 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4468 #ifdef THIS_IS_CONFIGURE
4470 /* Get the CFLAGS for tests in configure. */
4472 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4474 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4477 #else /* not THIS_IS_CONFIGURE */
4479 /* Get the CFLAGS for real compilation. */
4481 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4483 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4486 #endif /* not THIS_IS_CONFIGURE */
4489 # The value of CPP is a quoted variable reference, so we need to do this
4490 # to get its actual value...
4491 CPP
=`eval "echo $CPP"`
4492 eval `${CPP} -Isrc ${tempcname} \
4493 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4494 if test "x$SPECIFIED_CFLAGS" = x
; then
4495 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4496 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4498 REAL_CFLAGS
="$CFLAGS"
4502 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4504 ### Make sure subsequent tests use flags consistent with the build flags.
4506 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4507 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4509 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4515 cat >>confdefs.h
<<\_ACEOF
4516 #define _GNU_SOURCE 1
4521 # Check whether --enable-largefile or --disable-largefile was given.
4522 if test "${enable_largefile+set}" = set; then
4523 enableval
="$enable_largefile"
4526 if test "$enable_largefile" != no
; then
4528 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4529 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4530 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 ac_cv_sys_largefile_CC
=no
4534 if test "$GCC" != yes; then
4537 # IRIX 6.2 and later do not support large files by default,
4538 # so use the C compiler's -n32 option if that helps.
4539 cat >conftest.
$ac_ext <<_ACEOF
4542 cat confdefs.h
>>conftest.
$ac_ext
4543 cat >>conftest.
$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 #include <sys/types.h>
4546 /* Check that off_t can represent 2**63 - 1 correctly.
4547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4548 since some C++ compilers masquerading as C compilers
4549 incorrectly reject 9223372036854775807. */
4550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4552 && LARGE_OFF_T % 2147483647 == 1)
4562 rm -f conftest.
$ac_objext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564 (eval $ac_compile) 2>conftest.er1
4566 grep -v '^ *+' conftest.er1
>conftest.err
4568 cat conftest.err
>&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try
='test -z "$ac_c_werror_flag"
4572 || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try
='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.
$ac_ext >&5
4590 rm -f conftest.err conftest.
$ac_objext
4592 rm -f conftest.
$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>conftest.er1
4596 grep -v '^ *+' conftest.er1
>conftest.err
4598 cat conftest.err
>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try
='test -z "$ac_c_werror_flag"
4602 || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try
='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_sys_largefile_CC
=' -n32'; break
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.
$ac_ext >&5
4620 rm -f conftest.err conftest.
$ac_objext
4624 rm -f conftest.
$ac_ext
4627 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4628 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4629 if test "$ac_cv_sys_largefile_CC" != no
; then
4630 CC
=$CC$ac_cv_sys_largefile_CC
4633 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4634 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4635 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_sys_file_offset_bits
=no
4640 cat >conftest.
$ac_ext <<_ACEOF
4643 cat confdefs.h
>>conftest.
$ac_ext
4644 cat >>conftest.
$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #include <sys/types.h>
4647 /* Check that off_t can represent 2**63 - 1 correctly.
4648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4649 since some C++ compilers masquerading as C compilers
4650 incorrectly reject 9223372036854775807. */
4651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4653 && LARGE_OFF_T % 2147483647 == 1)
4663 rm -f conftest.
$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4667 grep -v '^ *+' conftest.er1
>conftest.err
4669 cat conftest.err
>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try
='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try
='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.
$ac_ext >&5
4691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4692 cat >conftest.
$ac_ext <<_ACEOF
4695 cat confdefs.h
>>conftest.
$ac_ext
4696 cat >>conftest.
$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #define _FILE_OFFSET_BITS 64
4699 #include <sys/types.h>
4700 /* Check that off_t can represent 2**63 - 1 correctly.
4701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4702 since some C++ compilers masquerading as C compilers
4703 incorrectly reject 9223372036854775807. */
4704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4706 && LARGE_OFF_T % 2147483647 == 1)
4716 rm -f conftest.
$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4720 grep -v '^ *+' conftest.er1
>conftest.err
4722 cat conftest.err
>&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try
='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try
='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_sys_file_offset_bits
=64; break
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.
$ac_ext >&5
4744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4748 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4749 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4750 if test "$ac_cv_sys_file_offset_bits" != no
; then
4752 cat >>confdefs.h
<<_ACEOF
4753 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4758 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4759 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4760 if test "${ac_cv_sys_large_files+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_cv_sys_large_files
=no
4765 cat >conftest.
$ac_ext <<_ACEOF
4768 cat confdefs.h
>>conftest.
$ac_ext
4769 cat >>conftest.
$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 #include <sys/types.h>
4772 /* Check that off_t can represent 2**63 - 1 correctly.
4773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4774 since some C++ compilers masquerading as C compilers
4775 incorrectly reject 9223372036854775807. */
4776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4778 && LARGE_OFF_T % 2147483647 == 1)
4788 rm -f conftest.
$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1
>conftest.err
4794 cat conftest.err
>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try
='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try
='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.
$ac_ext >&5
4816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4817 cat >conftest.
$ac_ext <<_ACEOF
4820 cat confdefs.h
>>conftest.
$ac_ext
4821 cat >>conftest.
$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #define _LARGE_FILES 1
4824 #include <sys/types.h>
4825 /* Check that off_t can represent 2**63 - 1 correctly.
4826 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4827 since some C++ compilers masquerading as C compilers
4828 incorrectly reject 9223372036854775807. */
4829 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4831 && LARGE_OFF_T % 2147483647 == 1)
4841 rm -f conftest.
$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4845 grep -v '^ *+' conftest.er1
>conftest.err
4847 cat conftest.err
>&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try
='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try
='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_sys_large_files
=1; break
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.
$ac_ext >&5
4869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4873 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4874 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4875 if test "$ac_cv_sys_large_files" != no
; then
4877 cat >>confdefs.h
<<_ACEOF
4878 #define _LARGE_FILES $ac_cv_sys_large_files
4886 if test "${with_sound}" != "no"; then
4887 # Sound support for GNU/Linux and the free BSDs.
4888 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4889 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4890 if test "${ac_cv_header_stdc+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 cat >conftest.
$ac_ext <<_ACEOF
4896 cat confdefs.h
>>conftest.
$ac_ext
4897 cat >>conftest.
$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4912 rm -f conftest.
$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4916 grep -v '^ *+' conftest.er1
>conftest.err
4918 cat conftest.err
>&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try
='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try
='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_cv_header_stdc
=yes
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.
$ac_ext >&5
4939 ac_cv_header_stdc
=no
4941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4943 if test $ac_cv_header_stdc = yes; then
4944 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4945 cat >conftest.
$ac_ext <<_ACEOF
4948 cat confdefs.h
>>conftest.
$ac_ext
4949 cat >>conftest.
$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955 $EGREP "memchr" >/dev
/null
2>&1; then
4958 ac_cv_header_stdc
=no
4964 if test $ac_cv_header_stdc = yes; then
4965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4966 cat >conftest.
$ac_ext <<_ACEOF
4969 cat confdefs.h
>>conftest.
$ac_ext
4970 cat >>conftest.
$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4976 $EGREP "free" >/dev
/null
2>&1; then
4979 ac_cv_header_stdc
=no
4985 if test $ac_cv_header_stdc = yes; then
4986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4987 if test "$cross_compiling" = yes; then
4990 cat >conftest.
$ac_ext <<_ACEOF
4993 cat confdefs.h
>>conftest.
$ac_ext
4994 cat >>conftest.
$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 #if ((' ' & 0x0FF) == 0x020)
4998 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4999 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5001 # define ISLOWER(c) \
5002 (('a' <= (c) && (c) <= 'i') \
5003 || ('j' <= (c) && (c) <= 'r') \
5004 || ('s' <= (c) && (c) <= 'z'))
5005 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5008 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5013 for (i = 0; i < 256; i++)
5014 if (XOR (islower (i), ISLOWER (i))
5015 || toupper (i) != TOUPPER (i))
5020 rm -f conftest
$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5033 echo "$as_me: program exited with status $ac_status" >&5
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.
$ac_ext >&5
5038 ac_cv_header_stdc
=no
5040 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5044 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5045 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5046 if test $ac_cv_header_stdc = yes; then
5048 cat >>confdefs.h
<<\_ACEOF
5049 #define STDC_HEADERS 1
5054 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5064 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5065 inttypes.h stdint.h unistd.h
5067 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5068 echo "$as_me:$LINENO: checking for $ac_header" >&5
5069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 cat >conftest.
$ac_ext <<_ACEOF
5076 cat confdefs.h
>>conftest.
$ac_ext
5077 cat >>conftest.
$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 $ac_includes_default
5081 #include <$ac_header>
5083 rm -f conftest.
$ac_objext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085 (eval $ac_compile) 2>conftest.er1
5087 grep -v '^ *+' conftest.er1
>conftest.err
5089 cat conftest.err
>&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try
='test -z "$ac_c_werror_flag"
5093 || test ! -s conftest.err'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try
='test -s conftest.$ac_objext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 eval "$as_ac_Header=yes"
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.
$ac_ext >&5
5110 eval "$as_ac_Header=no"
5112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5117 cat >>confdefs.h
<<_ACEOF
5118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5129 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5131 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5133 echo "$as_me:$LINENO: checking for $ac_header" >&5
5134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5141 # Is the header compilable?
5142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5144 cat >conftest.
$ac_ext <<_ACEOF
5147 cat confdefs.h
>>conftest.
$ac_ext
5148 cat >>conftest.
$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5151 #include <$ac_header>
5153 rm -f conftest.
$ac_objext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5155 (eval $ac_compile) 2>conftest.er1
5157 grep -v '^ *+' conftest.er1
>conftest.err
5159 cat conftest.err
>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try
='test -z "$ac_c_werror_flag"
5163 || test ! -s conftest.err'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; } &&
5169 { ac_try
='test -s conftest.$ac_objext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 ac_header_compiler
=yes
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.
$ac_ext >&5
5180 ac_header_compiler
=no
5182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5184 echo "${ECHO_T}$ac_header_compiler" >&6
5186 # Is the header present?
5187 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5189 cat >conftest.
$ac_ext <<_ACEOF
5192 cat confdefs.h
>>conftest.
$ac_ext
5193 cat >>conftest.
$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #include <$ac_header>
5197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5198 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5200 grep -v '^ *+' conftest.er1
>conftest.err
5202 cat conftest.err
>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } >/dev
/null
; then
5205 if test -s conftest.err
; then
5206 ac_cpp_err
=$ac_c_preproc_warn_flag
5207 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5214 if test -z "$ac_cpp_err"; then
5215 ac_header_preproc
=yes
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.
$ac_ext >&5
5220 ac_header_preproc
=no
5222 rm -f conftest.err conftest.
$ac_ext
5223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5224 echo "${ECHO_T}$ac_header_preproc" >&6
5226 # So? What about this header?
5227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5233 ac_header_preproc
=yes
5236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5250 ## ------------------------------------------ ##
5251 ## Report this to the AC_PACKAGE_NAME lists. ##
5252 ## ------------------------------------------ ##
5255 sed "s/^/$as_me: WARNING: /" >&2
5258 echo "$as_me:$LINENO: checking for $ac_header" >&5
5259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 eval "$as_ac_Header=\$ac_header_preproc"
5265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5270 cat >>confdefs.h
<<_ACEOF
5271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5278 # Emulation library used on NetBSD.
5279 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5280 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5281 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_check_lib_save_LIBS
=$LIBS
5285 LIBS
="-lossaudio $LIBS"
5286 cat >conftest.
$ac_ext <<_ACEOF
5289 cat confdefs.h
>>conftest.
$ac_ext
5290 cat >>conftest.
$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5293 /* Override any gcc2 internal prototype to avoid an error. */
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5308 rm -f conftest.
$ac_objext conftest
$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1
>conftest.err
5314 cat conftest.err
>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try
='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try
='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_cv_lib_ossaudio__oss_ioctl
=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.
$ac_ext >&5
5335 ac_cv_lib_ossaudio__oss_ioctl
=no
5337 rm -f conftest.err conftest.
$ac_objext \
5338 conftest
$ac_exeext conftest.
$ac_ext
5339 LIBS
=$ac_check_lib_save_LIBS
5341 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5342 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5343 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5375 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5376 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5377 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5378 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5380 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5382 echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5390 # Is the header compilable?
5391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5393 cat >conftest.
$ac_ext <<_ACEOF
5396 cat confdefs.h
>>conftest.
$ac_ext
5397 cat >>conftest.
$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5400 #include <$ac_header>
5402 rm -f conftest.
$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5406 grep -v '^ *+' conftest.er1
>conftest.err
5408 cat conftest.err
>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try
='test -z "$ac_c_werror_flag"
5412 || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try
='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_header_compiler
=yes
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.
$ac_ext >&5
5429 ac_header_compiler
=no
5431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5433 echo "${ECHO_T}$ac_header_compiler" >&6
5435 # Is the header present?
5436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5438 cat >conftest.
$ac_ext <<_ACEOF
5441 cat confdefs.h
>>conftest.
$ac_ext
5442 cat >>conftest.
$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <$ac_header>
5446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5449 grep -v '^ *+' conftest.er1
>conftest.err
5451 cat conftest.err
>&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev
/null
; then
5454 if test -s conftest.err
; then
5455 ac_cpp_err
=$ac_c_preproc_warn_flag
5456 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5463 if test -z "$ac_cpp_err"; then
5464 ac_header_preproc
=yes
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.
$ac_ext >&5
5469 ac_header_preproc
=no
5471 rm -f conftest.err conftest.
$ac_ext
5472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5473 echo "${ECHO_T}$ac_header_preproc" >&6
5475 # So? What about this header?
5476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5482 ac_header_preproc
=yes
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5499 ## ------------------------------------------ ##
5500 ## Report this to the AC_PACKAGE_NAME lists. ##
5501 ## ------------------------------------------ ##
5504 sed "s/^/$as_me: WARNING: /" >&2
5507 echo "$as_me:$LINENO: checking for $ac_header" >&5
5508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 eval "$as_ac_Header=\$ac_header_preproc"
5514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h
<<_ACEOF
5520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528 for ac_header
in term.h
5530 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5531 echo "$as_me:$LINENO: checking for $ac_header" >&5
5532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 cat >conftest.
$ac_ext <<_ACEOF
5539 cat confdefs.h
>>conftest.
$ac_ext
5540 cat >>conftest.
$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 #include <$ac_header>
5544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5545 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5547 grep -v '^ *+' conftest.er1
>conftest.err
5549 cat conftest.err
>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } >/dev
/null
; then
5552 if test -s conftest.err
; then
5553 ac_cpp_err
=$ac_c_preproc_warn_flag
5554 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5561 if test -z "$ac_cpp_err"; then
5562 eval "$as_ac_Header=yes"
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.
$ac_ext >&5
5567 eval "$as_ac_Header=no"
5569 rm -f conftest.err conftest.
$ac_ext
5571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5572 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
5582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5584 if test "${ac_cv_header_stdc+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 cat >conftest.
$ac_ext <<_ACEOF
5590 cat confdefs.h
>>conftest.
$ac_ext
5591 cat >>conftest.
$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5606 rm -f conftest.
$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5610 grep -v '^ *+' conftest.er1
>conftest.err
5612 cat conftest.err
>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try
='test -z "$ac_c_werror_flag"
5616 || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try
='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_cv_header_stdc
=yes
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.
$ac_ext >&5
5633 ac_cv_header_stdc
=no
5635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5637 if test $ac_cv_header_stdc = yes; then
5638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5639 cat >conftest.
$ac_ext <<_ACEOF
5642 cat confdefs.h
>>conftest.
$ac_ext
5643 cat >>conftest.
$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "memchr" >/dev
/null
2>&1; then
5652 ac_cv_header_stdc
=no
5658 if test $ac_cv_header_stdc = yes; then
5659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5660 cat >conftest.
$ac_ext <<_ACEOF
5663 cat confdefs.h
>>conftest.
$ac_ext
5664 cat >>conftest.
$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5670 $EGREP "free" >/dev
/null
2>&1; then
5673 ac_cv_header_stdc
=no
5679 if test $ac_cv_header_stdc = yes; then
5680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5681 if test "$cross_compiling" = yes; then
5684 cat >conftest.
$ac_ext <<_ACEOF
5687 cat confdefs.h
>>conftest.
$ac_ext
5688 cat >>conftest.
$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 #if ((' ' & 0x0FF) == 0x020)
5692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5695 # define ISLOWER(c) \
5696 (('a' <= (c) && (c) <= 'i') \
5697 || ('j' <= (c) && (c) <= 'r') \
5698 || ('s' <= (c) && (c) <= 'z'))
5699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5707 for (i = 0; i < 256; i++)
5708 if (XOR (islower (i), ISLOWER (i))
5709 || toupper (i) != TOUPPER (i))
5714 rm -f conftest
$ac_exeext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5716 (eval $ac_link) 2>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5727 echo "$as_me: program exited with status $ac_status" >&5
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.
$ac_ext >&5
5732 ac_cv_header_stdc
=no
5734 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5738 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5739 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5740 if test $ac_cv_header_stdc = yes; then
5742 cat >>confdefs.h
<<\_ACEOF
5743 #define STDC_HEADERS 1
5748 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5749 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5750 if test "${ac_cv_header_time+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 cat >conftest.
$ac_ext <<_ACEOF
5756 cat confdefs.h
>>conftest.
$ac_ext
5757 cat >>conftest.
$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 #include <sys/time.h>
5766 if ((struct tm *) 0)
5772 rm -f conftest.
$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1
>conftest.err
5778 cat conftest.err
>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try
='test -z "$ac_c_werror_flag"
5782 || test ! -s conftest.err'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; } &&
5788 { ac_try
='test -s conftest.$ac_objext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_header_time
=yes
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.
$ac_ext >&5
5799 ac_cv_header_time
=no
5801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5803 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5804 echo "${ECHO_T}$ac_cv_header_time" >&6
5805 if test $ac_cv_header_time = yes; then
5807 cat >>confdefs.h
<<\_ACEOF
5808 #define TIME_WITH_SYS_TIME 1
5813 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5814 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5815 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 cat >conftest.
$ac_ext <<_ACEOF
5821 cat confdefs.h
>>conftest.
$ac_ext
5822 cat >>conftest.
$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 $ac_includes_default
5829 char *p = (char *) sys_siglist;
5836 rm -f conftest.
$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1
>conftest.err
5842 cat conftest.err
>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try
='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try
='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_have_decl_sys_siglist
=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.
$ac_ext >&5
5863 ac_cv_have_decl_sys_siglist
=no
5865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5867 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5868 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5869 if test $ac_cv_have_decl_sys_siglist = yes; then
5871 cat >>confdefs.h
<<_ACEOF
5872 #define HAVE_DECL_SYS_SIGLIST 1
5877 cat >>confdefs.h
<<_ACEOF
5878 #define HAVE_DECL_SYS_SIGLIST 0
5885 if test $ac_cv_have_decl_sys_siglist != yes; then
5886 # For Tru64, at least:
5887 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5888 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5889 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 cat >conftest.
$ac_ext <<_ACEOF
5895 cat confdefs.h
>>conftest.
$ac_ext
5896 cat >>conftest.
$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5902 #ifndef __sys_siglist
5903 char *p = (char *) __sys_siglist;
5910 rm -f conftest.
$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5914 grep -v '^ *+' conftest.er1
>conftest.err
5916 cat conftest.err
>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try
='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try
='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_have_decl___sys_siglist
=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.
$ac_ext >&5
5937 ac_cv_have_decl___sys_siglist
=no
5939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5942 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5943 if test $ac_cv_have_decl___sys_siglist = yes; then
5945 cat >>confdefs.h
<<_ACEOF
5946 #define HAVE_DECL___SYS_SIGLIST 1
5951 cat >>confdefs.h
<<_ACEOF
5952 #define HAVE_DECL___SYS_SIGLIST 0
5959 if test $ac_cv_have_decl___sys_siglist = yes; then
5961 cat >>confdefs.h
<<\_ACEOF
5962 #define sys_siglist __sys_siglist
5967 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5968 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5969 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 cat >conftest.
$ac_ext <<_ACEOF
5975 cat confdefs.h
>>conftest.
$ac_ext
5976 cat >>conftest.
$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5979 #include <sys/wait.h>
5981 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5984 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5992 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5997 rm -f conftest.
$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1
>conftest.err
6003 cat conftest.err
>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try
='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try
='test -s conftest.$ac_objext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_header_sys_wait_h
=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.
$ac_ext >&5
6024 ac_cv_header_sys_wait_h
=no
6026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6029 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6030 if test $ac_cv_header_sys_wait_h = yes; then
6032 cat >>confdefs.h
<<\_ACEOF
6033 #define HAVE_SYS_WAIT_H 1
6039 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6040 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6041 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 cat >conftest.
$ac_ext <<_ACEOF
6047 cat confdefs.h
>>conftest.
$ac_ext
6048 cat >>conftest.
$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #ifdef TIME_WITH_SYS_TIME
6051 #include <sys/time.h>
6054 #ifdef HAVE_SYS_TIME_H
6055 #include <sys/time.h>
6066 static struct utimbuf x; x.actime = x.modtime;
6071 rm -f conftest.
$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>conftest.er1
6075 grep -v '^ *+' conftest.er1
>conftest.err
6077 cat conftest.err
>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try
='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try
='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 emacs_cv_struct_utimbuf
=yes
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.
$ac_ext >&5
6098 emacs_cv_struct_utimbuf
=no
6100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6102 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6103 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6104 if test $emacs_cv_struct_utimbuf = yes; then
6106 cat >>confdefs.h
<<\_ACEOF
6107 #define HAVE_STRUCT_UTIMBUF 1
6112 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6113 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6114 if test "${ac_cv_type_signal+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 cat >conftest.
$ac_ext <<_ACEOF
6120 cat confdefs.h
>>conftest.
$ac_ext
6121 cat >>conftest.
$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #include <sys/types.h>
6129 extern "C" void (*signal (int, void (*)(int)))(int);
6131 void (*signal ()) ();
6142 rm -f conftest.
$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1
>conftest.err
6148 cat conftest.err
>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try
='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_signal
=void
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.
$ac_ext >&5
6169 ac_cv_type_signal
=int
6171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6174 echo "${ECHO_T}$ac_cv_type_signal" >&6
6176 cat >>confdefs.h
<<_ACEOF
6177 #define RETSIGTYPE $ac_cv_type_signal
6182 echo "$as_me:$LINENO: checking for speed_t" >&5
6183 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6184 if test "${emacs_cv_speed_t+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 cat >conftest.
$ac_ext <<_ACEOF
6190 cat confdefs.h
>>conftest.
$ac_ext
6191 cat >>conftest.
$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <termios.h>
6202 rm -f conftest.
$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>conftest.er1
6206 grep -v '^ *+' conftest.er1
>conftest.err
6208 cat conftest.err
>&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try
='test -z "$ac_c_werror_flag"
6212 || test ! -s conftest.err'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try
='test -s conftest.$ac_objext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 emacs_cv_speed_t
=yes
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.
$ac_ext >&5
6231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6233 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6234 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6235 if test $emacs_cv_speed_t = yes; then
6237 cat >>confdefs.h
<<\_ACEOF
6238 #define HAVE_SPEED_T 1
6243 echo "$as_me:$LINENO: checking for struct timeval" >&5
6244 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6245 if test "${emacs_cv_struct_timeval+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 cat >conftest.
$ac_ext <<_ACEOF
6251 cat confdefs.h
>>conftest.
$ac_ext
6252 cat >>conftest.
$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 #ifdef TIME_WITH_SYS_TIME
6255 #include <sys/time.h>
6258 #ifdef HAVE_SYS_TIME_H
6259 #include <sys/time.h>
6267 static struct timeval x; x.tv_sec = x.tv_usec;
6272 rm -f conftest.
$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>conftest.er1
6276 grep -v '^ *+' conftest.er1
>conftest.err
6278 cat conftest.err
>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try
='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try
='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 emacs_cv_struct_timeval
=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 emacs_cv_struct_timeval
=no
6301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6304 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6305 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6306 if test $emacs_cv_struct_timeval = yes; then
6308 cat >>confdefs.h
<<\_ACEOF
6309 #define HAVE_TIMEVAL 1
6314 echo "$as_me:$LINENO: checking for struct exception" >&5
6315 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6316 if test "${emacs_cv_struct_exception+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 cat >conftest.
$ac_ext <<_ACEOF
6322 cat confdefs.h
>>conftest.
$ac_ext
6323 cat >>conftest.
$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6329 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6334 rm -f conftest.
$ac_objext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>conftest.er1
6338 grep -v '^ *+' conftest.er1
>conftest.err
6340 cat conftest.err
>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try
='test -z "$ac_c_werror_flag"
6344 || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try
='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 emacs_cv_struct_exception
=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.
$ac_ext >&5
6361 emacs_cv_struct_exception
=no
6363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6365 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6366 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6367 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6368 if test $emacs_cv_struct_exception != yes; then
6370 cat >>confdefs.h
<<\_ACEOF
6371 #define NO_MATHERR 1
6377 for ac_header
in sys
/socket.h
6379 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381 echo "$as_me:$LINENO: checking for $ac_header" >&5
6382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6389 # Is the header compilable?
6390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6392 cat >conftest.
$ac_ext <<_ACEOF
6395 cat confdefs.h
>>conftest.
$ac_ext
6396 cat >>conftest.
$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 $ac_includes_default
6399 #include <$ac_header>
6401 rm -f conftest.
$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6405 grep -v '^ *+' conftest.er1
>conftest.err
6407 cat conftest.err
>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try
='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try
='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_header_compiler
=yes
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.
$ac_ext >&5
6428 ac_header_compiler
=no
6430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6432 echo "${ECHO_T}$ac_header_compiler" >&6
6434 # Is the header present?
6435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6437 cat >conftest.
$ac_ext <<_ACEOF
6440 cat confdefs.h
>>conftest.
$ac_ext
6441 cat >>conftest.
$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <$ac_header>
6445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1
>conftest.err
6450 cat conftest.err
>&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } >/dev
/null
; then
6453 if test -s conftest.err
; then
6454 ac_cpp_err
=$ac_c_preproc_warn_flag
6455 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6462 if test -z "$ac_cpp_err"; then
6463 ac_header_preproc
=yes
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6468 ac_header_preproc
=no
6470 rm -f conftest.err conftest.
$ac_ext
6471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6472 echo "${ECHO_T}$ac_header_preproc" >&6
6474 # So? What about this header?
6475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6481 ac_header_preproc
=yes
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6498 ## ------------------------------------------ ##
6499 ## Report this to the AC_PACKAGE_NAME lists. ##
6500 ## ------------------------------------------ ##
6503 sed "s/^/$as_me: WARNING: /" >&2
6506 echo "$as_me:$LINENO: checking for $ac_header" >&5
6507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 eval "$as_ac_Header=\$ac_header_preproc"
6513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6518 cat >>confdefs.h
<<_ACEOF
6519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6527 for ac_header
in net
/if.h
6529 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6530 echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 cat >conftest.
$ac_ext <<_ACEOF
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6542 #if HAVE_SYS_SOCKET_H
6543 #include <sys/socket.h>
6546 #include <$ac_header>
6548 rm -f conftest.
$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 eval "$as_ac_Header=yes"
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 eval "$as_ac_Header=no"
6577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6582 cat >>confdefs.h
<<_ACEOF
6583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6592 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6593 if test "${ac_cv_struct_tm+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 cat >conftest.
$ac_ext <<_ACEOF
6599 cat confdefs.h
>>conftest.
$ac_ext
6600 cat >>conftest.
$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <sys/types.h>
6608 struct tm *tp; tp->tm_sec;
6613 rm -f conftest.
$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>conftest.er1
6617 grep -v '^ *+' conftest.er1
>conftest.err
6619 cat conftest.err
>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try
='test -z "$ac_c_werror_flag"
6623 || test ! -s conftest.err'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; } &&
6629 { ac_try
='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_cv_struct_tm
=time.h
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.
$ac_ext >&5
6640 ac_cv_struct_tm
=sys
/time.h
6642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6644 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6645 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6646 if test $ac_cv_struct_tm = sys
/time.h
; then
6648 cat >>confdefs.h
<<\_ACEOF
6649 #define TM_IN_SYS_TIME 1
6654 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6655 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6656 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 cat >conftest.
$ac_ext <<_ACEOF
6662 cat confdefs.h
>>conftest.
$ac_ext
6663 cat >>conftest.
$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #include <sys/types.h>
6666 #include <$ac_cv_struct_tm>
6672 static struct tm ac_aggr;
6673 if (ac_aggr.tm_zone)
6679 rm -f conftest.
$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6683 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_member_struct_tm_tm_zone
=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.
$ac_ext >&5
6706 cat >conftest.
$ac_ext <<_ACEOF
6709 cat confdefs.h
>>conftest.
$ac_ext
6710 cat >>conftest.
$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <$ac_cv_struct_tm>
6719 static struct tm ac_aggr;
6720 if (sizeof ac_aggr.tm_zone)
6726 rm -f conftest.
$ac_objext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6728 (eval $ac_compile) 2>conftest.er1
6730 grep -v '^ *+' conftest.er1
>conftest.err
6732 cat conftest.err
>&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try
='test -z "$ac_c_werror_flag"
6736 || test ! -s conftest.err'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; } &&
6742 { ac_try
='test -s conftest.$ac_objext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 ac_cv_member_struct_tm_tm_zone
=yes
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.
$ac_ext >&5
6753 ac_cv_member_struct_tm_tm_zone
=no
6755 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6759 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6760 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6761 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6763 cat >>confdefs.h
<<_ACEOF
6764 #define HAVE_STRUCT_TM_TM_ZONE 1
6770 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6772 cat >>confdefs.h
<<\_ACEOF
6773 #define HAVE_TM_ZONE 1
6777 echo "$as_me:$LINENO: checking for tzname" >&5
6778 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6779 if test "${ac_cv_var_tzname+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 cat >conftest.
$ac_ext <<_ACEOF
6785 cat confdefs.h
>>conftest.
$ac_ext
6786 cat >>conftest.
$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6789 #ifndef tzname /* For SGI. */
6790 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6801 rm -f conftest.
$ac_objext conftest
$ac_exeext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6803 (eval $ac_link) 2>conftest.er1
6805 grep -v '^ *+' conftest.er1
>conftest.err
6807 cat conftest.err
>&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try
='test -z "$ac_c_werror_flag"
6811 || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try
='test -s conftest$ac_exeext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 ac_cv_var_tzname
=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.
$ac_ext >&5
6830 rm -f conftest.err conftest.
$ac_objext \
6831 conftest
$ac_exeext conftest.
$ac_ext
6833 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6834 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6835 if test $ac_cv_var_tzname = yes; then
6837 cat >>confdefs.h
<<\_ACEOF
6838 #define HAVE_TZNAME 1
6844 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6845 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6846 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 cat >conftest.
$ac_ext <<_ACEOF
6852 cat confdefs.h
>>conftest.
$ac_ext
6853 cat >>conftest.
$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6860 static struct tm ac_aggr;
6861 if (ac_aggr.tm_gmtoff)
6867 rm -f conftest.
$ac_objext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>conftest.er1
6871 grep -v '^ *+' conftest.er1
>conftest.err
6873 cat conftest.err
>&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try
='test -z "$ac_c_werror_flag"
6877 || test ! -s conftest.err'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; } &&
6883 { ac_try
='test -s conftest.$ac_objext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 ac_cv_member_struct_tm_tm_gmtoff
=yes
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.
$ac_ext >&5
6894 cat >conftest.
$ac_ext <<_ACEOF
6897 cat confdefs.h
>>conftest.
$ac_ext
6898 cat >>conftest.
$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6905 static struct tm ac_aggr;
6906 if (sizeof ac_aggr.tm_gmtoff)
6912 rm -f conftest.
$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6916 grep -v '^ *+' conftest.er1
>conftest.err
6918 cat conftest.err
>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try
='test -z "$ac_c_werror_flag"
6922 || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try
='test -s conftest.$ac_objext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_cv_member_struct_tm_tm_gmtoff
=yes
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.
$ac_ext >&5
6939 ac_cv_member_struct_tm_tm_gmtoff
=no
6941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6943 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6945 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6946 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6947 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6949 cat >>confdefs.h
<<\_ACEOF
6950 #define HAVE_TM_GMTOFF 1
6955 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6956 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6957 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cat >conftest.
$ac_ext <<_ACEOF
6963 cat confdefs.h
>>conftest.
$ac_ext
6964 cat >>conftest.
$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 $ac_includes_default
6967 #if HAVE_SYS_SOCKET_H
6968 #include <sys/socket.h>
6977 static struct ifreq ac_aggr;
6978 if (ac_aggr.ifr_flags)
6984 rm -f conftest.
$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6988 grep -v '^ *+' conftest.er1
>conftest.err
6990 cat conftest.err
>&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try
='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try
='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 ac_cv_member_struct_ifreq_ifr_flags
=yes
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.
$ac_ext >&5
7011 cat >conftest.
$ac_ext <<_ACEOF
7014 cat confdefs.h
>>conftest.
$ac_ext
7015 cat >>conftest.
$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7018 #if HAVE_SYS_SOCKET_H
7019 #include <sys/socket.h>
7028 static struct ifreq ac_aggr;
7029 if (sizeof ac_aggr.ifr_flags)
7035 rm -f conftest.
$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>conftest.er1
7039 grep -v '^ *+' conftest.er1
>conftest.err
7041 cat conftest.err
>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try
='test -z "$ac_c_werror_flag"
7045 || test ! -s conftest.err'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try
='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_member_struct_ifreq_ifr_flags
=yes
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.
$ac_ext >&5
7062 ac_cv_member_struct_ifreq_ifr_flags
=no
7064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7069 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7070 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7072 cat >>confdefs.h
<<_ACEOF
7073 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7078 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7079 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7080 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 cat >conftest.
$ac_ext <<_ACEOF
7086 cat confdefs.h
>>conftest.
$ac_ext
7087 cat >>conftest.
$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7090 #if HAVE_SYS_SOCKET_H
7091 #include <sys/socket.h>
7100 static struct ifreq ac_aggr;
7101 if (ac_aggr.ifr_hwaddr)
7107 rm -f conftest.
$ac_objext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109 (eval $ac_compile) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1
>conftest.err
7113 cat conftest.err
>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try
='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try
='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.
$ac_ext >&5
7134 cat >conftest.
$ac_ext <<_ACEOF
7137 cat confdefs.h
>>conftest.
$ac_ext
7138 cat >>conftest.
$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 $ac_includes_default
7141 #if HAVE_SYS_SOCKET_H
7142 #include <sys/socket.h>
7151 static struct ifreq ac_aggr;
7152 if (sizeof ac_aggr.ifr_hwaddr)
7158 rm -f conftest.
$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>conftest.er1
7162 grep -v '^ *+' conftest.er1
>conftest.err
7164 cat conftest.err
>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try
='test -z "$ac_c_werror_flag"
7168 || test ! -s conftest.err'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; } &&
7174 { ac_try
='test -s conftest.$ac_objext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.
$ac_ext >&5
7185 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7187 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7189 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7191 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7192 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7193 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7195 cat >>confdefs.h
<<_ACEOF
7196 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7201 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7202 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7203 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 cat >conftest.
$ac_ext <<_ACEOF
7209 cat confdefs.h
>>conftest.
$ac_ext
7210 cat >>conftest.
$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 $ac_includes_default
7213 #if HAVE_SYS_SOCKET_H
7214 #include <sys/socket.h>
7223 static struct ifreq ac_aggr;
7224 if (ac_aggr.ifr_netmask)
7230 rm -f conftest.
$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>conftest.er1
7234 grep -v '^ *+' conftest.er1
>conftest.err
7236 cat conftest.err
>&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try
='test -z "$ac_c_werror_flag"
7240 || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try
='test -s conftest.$ac_objext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.
$ac_ext >&5
7257 cat >conftest.
$ac_ext <<_ACEOF
7260 cat confdefs.h
>>conftest.
$ac_ext
7261 cat >>conftest.
$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 $ac_includes_default
7264 #if HAVE_SYS_SOCKET_H
7265 #include <sys/socket.h>
7274 static struct ifreq ac_aggr;
7275 if (sizeof ac_aggr.ifr_netmask)
7281 rm -f conftest.
$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1
>conftest.err
7287 cat conftest.err
>&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try
='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try
='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.
$ac_ext >&5
7308 ac_cv_member_struct_ifreq_ifr_netmask
=no
7310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7314 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7315 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7316 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7318 cat >>confdefs.h
<<_ACEOF
7319 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7324 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7325 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7326 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 cat >conftest.
$ac_ext <<_ACEOF
7332 cat confdefs.h
>>conftest.
$ac_ext
7333 cat >>conftest.
$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7336 #if HAVE_SYS_SOCKET_H
7337 #include <sys/socket.h>
7346 static struct ifreq ac_aggr;
7347 if (ac_aggr.ifr_broadaddr)
7353 rm -f conftest.
$ac_objext
7354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7355 (eval $ac_compile) 2>conftest.er1
7357 grep -v '^ *+' conftest.er1
>conftest.err
7359 cat conftest.err
>&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try
='test -z "$ac_c_werror_flag"
7363 || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try
='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.
$ac_ext >&5
7380 cat >conftest.
$ac_ext <<_ACEOF
7383 cat confdefs.h
>>conftest.
$ac_ext
7384 cat >>conftest.
$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 $ac_includes_default
7387 #if HAVE_SYS_SOCKET_H
7388 #include <sys/socket.h>
7397 static struct ifreq ac_aggr;
7398 if (sizeof ac_aggr.ifr_broadaddr)
7404 rm -f conftest.
$ac_objext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406 (eval $ac_compile) 2>conftest.er1
7408 grep -v '^ *+' conftest.er1
>conftest.err
7410 cat conftest.err
>&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try
='test -z "$ac_c_werror_flag"
7414 || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try
='test -s conftest.$ac_objext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.
$ac_ext >&5
7431 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7437 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7438 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7439 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7441 cat >>confdefs.h
<<_ACEOF
7442 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7447 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7448 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7449 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 cat >conftest.
$ac_ext <<_ACEOF
7455 cat confdefs.h
>>conftest.
$ac_ext
7456 cat >>conftest.
$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 $ac_includes_default
7459 #if HAVE_SYS_SOCKET_H
7460 #include <sys/socket.h>
7469 static struct ifreq ac_aggr;
7470 if (ac_aggr.ifr_addr)
7476 rm -f conftest.
$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478 (eval $ac_compile) 2>conftest.er1
7480 grep -v '^ *+' conftest.er1
>conftest.err
7482 cat conftest.err
>&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try
='test -z "$ac_c_werror_flag"
7486 || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try
='test -s conftest.$ac_objext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498 ac_cv_member_struct_ifreq_ifr_addr
=yes
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.
$ac_ext >&5
7503 cat >conftest.
$ac_ext <<_ACEOF
7506 cat confdefs.h
>>conftest.
$ac_ext
7507 cat >>conftest.
$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7510 #if HAVE_SYS_SOCKET_H
7511 #include <sys/socket.h>
7520 static struct ifreq ac_aggr;
7521 if (sizeof ac_aggr.ifr_addr)
7527 rm -f conftest.
$ac_objext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>conftest.er1
7531 grep -v '^ *+' conftest.er1
>conftest.err
7533 cat conftest.err
>&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try
='test -z "$ac_c_werror_flag"
7537 || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try
='test -s conftest.$ac_objext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_member_struct_ifreq_ifr_addr
=yes
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.
$ac_ext >&5
7554 ac_cv_member_struct_ifreq_ifr_addr
=no
7556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7560 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7561 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7562 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7564 cat >>confdefs.h
<<_ACEOF
7565 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7573 echo "$as_me:$LINENO: checking for function prototypes" >&5
7574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7575 if test "$ac_cv_prog_cc_stdc" != no
; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577 echo "${ECHO_T}yes" >&6
7579 cat >>confdefs.h
<<\_ACEOF
7580 #define PROTOTYPES 1
7584 cat >>confdefs.h
<<\_ACEOF
7585 #define __PROTOTYPES 1
7589 echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7593 echo "$as_me:$LINENO: checking for working volatile" >&5
7594 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7595 if test "${ac_cv_c_volatile+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 cat >conftest.
$ac_ext <<_ACEOF
7601 cat confdefs.h
>>conftest.
$ac_ext
7602 cat >>conftest.
$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7615 rm -f conftest.
$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617 (eval $ac_compile) 2>conftest.er1
7619 grep -v '^ *+' conftest.er1
>conftest.err
7621 cat conftest.err
>&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try
='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try
='test -s conftest.$ac_objext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_c_volatile
=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.
$ac_ext >&5
7644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7646 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7647 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7648 if test $ac_cv_c_volatile = no
; then
7650 cat >>confdefs.h
<<\_ACEOF
7656 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7657 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7658 if test "${ac_cv_c_const+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 cat >conftest.
$ac_ext <<_ACEOF
7664 cat confdefs.h
>>conftest.
$ac_ext
7665 cat >>conftest.
$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7671 /* FIXME: Include the comments suggested by Paul. */
7673 /* Ultrix mips cc rejects this. */
7674 typedef int charset[2];
7676 /* SunOS 4.1.1 cc rejects this. */
7677 char const *const *ccp;
7679 /* NEC SVR4.0.2 mips cc rejects this. */
7680 struct point {int x, y;};
7681 static struct point const zero = {0,0};
7682 /* AIX XL C 1.02.0.0 rejects this.
7683 It does not let you subtract one const X* pointer from another in
7684 an arm of an if-expression whose if-part is not a constant
7686 const char *g = "string";
7687 ccp = &g + (g ? g-g : 0);
7688 /* HPUX 7.0 cc rejects these. */
7691 ccp = (char const *const *) p;
7692 { /* SCO 3.2v4 cc rejects this. */
7694 char const *s = 0 ? (char *) 0 : (char const *) 0;
7698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7700 const int *foo = &x[0];
7703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7704 typedef const int *iptr;
7708 { /* AIX XL C 1.02.0.0 rejects this saying
7709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7710 struct s { int j; const int *ap[3]; };
7711 struct s *b; b->j = 5;
7713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7722 rm -f conftest.
$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>conftest.er1
7726 grep -v '^ *+' conftest.er1
>conftest.err
7728 cat conftest.err
>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try
='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try
='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.
$ac_ext >&5
7751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7753 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7754 echo "${ECHO_T}$ac_cv_c_const" >&6
7755 if test $ac_cv_c_const = no
; then
7757 cat >>confdefs.h
<<\_ACEOF
7763 echo "$as_me:$LINENO: checking for void * support" >&5
7764 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7765 if test "${emacs_cv_void_star+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.
$ac_ext <<_ACEOF
7771 cat confdefs.h
>>conftest.
$ac_ext
7772 cat >>conftest.
$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7783 rm -f conftest.
$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785 (eval $ac_compile) 2>conftest.er1
7787 grep -v '^ *+' conftest.er1
>conftest.err
7789 cat conftest.err
>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try
='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try
='test -s conftest.$ac_objext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 emacs_cv_void_star
=yes
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.
$ac_ext >&5
7810 emacs_cv_void_star
=no
7812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7814 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7815 echo "${ECHO_T}$emacs_cv_void_star" >&6
7816 if test $emacs_cv_void_star = yes; then
7817 cat >>confdefs.h
<<\_ACEOF
7818 #define POINTER_TYPE void
7822 cat >>confdefs.h
<<\_ACEOF
7823 #define POINTER_TYPE char
7830 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7831 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7832 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7833 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 cat >conftest.
make <<\_ACEOF
7838 @
echo 'ac_maketemp="$(MAKE)"'
7840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7841 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7842 if test -n "$ac_maketemp"; then
7843 eval ac_cv_prog_make_
${ac_make}_set
=yes
7845 eval ac_cv_prog_make_
${ac_make}_set
=no
7849 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7850 echo "$as_me:$LINENO: result: yes" >&5
7851 echo "${ECHO_T}yes" >&6
7854 echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6
7856 SET_MAKE
="MAKE=${MAKE-make}"
7860 echo "$as_me:$LINENO: checking for long file names" >&5
7861 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7862 if test "${ac_cv_sys_long_file_names+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 ac_cv_sys_long_file_names
=yes
7866 # Test for long file names in all the places we know might matter:
7867 # . the current directory, where building will happen
7868 # $prefix/lib where we will be installing things
7869 # $exec_prefix/lib likewise
7870 # eval it to expand exec_prefix.
7871 # $TMPDIR if set, where it might want to write temporary files
7872 # if $TMPDIR is not set:
7873 # /tmp where it might want to write temporary files
7876 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7879 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7881 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7882 test -d $ac_dir ||
continue
7883 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7884 ac_xdir
=$ac_dir/cf$$
7885 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7886 ac_tf1
=$ac_xdir/conftest9012345
7887 ac_tf2
=$ac_xdir/conftest9012346
7888 (echo 1 >$ac_tf1) 2>/dev
/null
7889 (echo 2 >$ac_tf2) 2>/dev
/null
7890 ac_val
=`cat $ac_tf1 2>/dev/null`
7891 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7892 ac_cv_sys_long_file_names
=no
7893 rm -rf $ac_xdir 2>/dev
/null
7896 rm -rf $ac_xdir 2>/dev
/null
7899 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7900 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7901 if test $ac_cv_sys_long_file_names = yes; then
7903 cat >>confdefs.h
<<\_ACEOF
7904 #define HAVE_LONG_FILE_NAMES 1
7910 #### Choose a window system.
7912 echo "$as_me:$LINENO: checking for X" >&5
7913 echo $ECHO_N "checking for X... $ECHO_C" >&6
7916 # Check whether --with-x or --without-x was given.
7917 if test "${with_x+set}" = set; then
7921 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7922 if test "x$with_x" = xno
; then
7923 # The user explicitly disabled X.
7926 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7927 # Both variables are already set.
7930 if test "${ac_cv_have_x+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 # One or both of the vars are not set, and there is no cached value.
7934 ac_x_includes
=no ac_x_libraries
=no
7936 if mkdir conftest.dir
; then
7938 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7939 cat >Imakefile
<<'_ACEOF'
7941 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7943 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7945 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7946 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7947 for ac_extension
in a so sl
; do
7948 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7949 test -f $ac_im_libdir/libX11.
$ac_extension; then
7950 ac_im_usrlibdir
=$ac_im_libdir; break
7953 # Screen out bogus values from the imake configuration. They are
7954 # bogus both because they are the default anyway, and because
7955 # using them would break gcc on systems where it needs fixed includes.
7956 case $ac_im_incroot in
7958 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7960 case $ac_im_usrlibdir in
7962 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7969 # Standard set of common directories for X headers.
7970 # Check X11 before X11Rn because it is often a symlink to the current release.
7982 /usr/local/X11/include
7983 /usr/local/X11R6/include
7984 /usr/local/X11R5/include
7985 /usr/local/X11R4/include
7987 /usr/local/include/X11
7988 /usr/local/include/X11R6
7989 /usr/local/include/X11R5
7990 /usr/local/include/X11R4
7994 /usr/XFree86/include/X11
7998 /usr/unsupported/include
8000 /usr/local/x11r5/include
8001 /usr/lpp/Xamples/include
8003 /usr/openwin/include
8004 /usr/openwin/share/include'
8006 if test "$ac_x_includes" = no
; then
8007 # Guess where to find include files, by looking for Intrinsic.h.
8008 # First, try using that file with no special directory specified.
8009 cat >conftest.
$ac_ext <<_ACEOF
8012 cat confdefs.h
>>conftest.
$ac_ext
8013 cat >>conftest.
$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 #include <X11/Intrinsic.h>
8017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8018 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8020 grep -v '^ *+' conftest.er1
>conftest.err
8022 cat conftest.err
>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } >/dev
/null
; then
8025 if test -s conftest.err
; then
8026 ac_cpp_err
=$ac_c_preproc_warn_flag
8027 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8034 if test -z "$ac_cpp_err"; then
8035 # We can compile using X headers with no special include directory.
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.
$ac_ext >&5
8041 for ac_dir
in $ac_x_header_dirs; do
8042 if test -r "$ac_dir/X11/Intrinsic.h"; then
8043 ac_x_includes
=$ac_dir
8048 rm -f conftest.err conftest.
$ac_ext
8049 fi # $ac_x_includes = no
8051 if test "$ac_x_libraries" = no
; then
8052 # Check for the libraries.
8053 # See if we find them without any special options.
8054 # Don't add to $LIBS permanently.
8057 cat >conftest.
$ac_ext <<_ACEOF
8060 cat confdefs.h
>>conftest.
$ac_ext
8061 cat >>conftest.
$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 #include <X11/Intrinsic.h>
8072 rm -f conftest.
$ac_objext conftest
$ac_exeext
8073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074 (eval $ac_link) 2>conftest.er1
8076 grep -v '^ *+' conftest.er1
>conftest.err
8078 cat conftest.err
>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try
='test -z "$ac_c_werror_flag"
8082 || test ! -s conftest.err'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; } &&
8088 { ac_try
='test -s conftest$ac_exeext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8095 # We can link X programs with no special library path.
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.
$ac_ext >&5
8102 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8104 # Don't even attempt the hair of trying to link an X program!
8105 for ac_extension
in a so sl
; do
8106 if test -r $ac_dir/libXt.
$ac_extension; then
8107 ac_x_libraries
=$ac_dir
8113 rm -f conftest.err conftest.
$ac_objext \
8114 conftest
$ac_exeext conftest.
$ac_ext
8115 fi # $ac_x_libraries = no
8117 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8118 # Didn't find X anywhere. Cache the known absence of X.
8119 ac_cv_have_x
="have_x=no"
8121 # Record where we found X for the cache.
8122 ac_cv_have_x
="have_x=yes \
8123 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8128 eval "$ac_cv_have_x"
8131 if test "$have_x" != yes; then
8132 echo "$as_me:$LINENO: result: $have_x" >&5
8133 echo "${ECHO_T}$have_x" >&6
8136 # If each of the values was on the command line, it overrides each guess.
8137 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8138 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8139 # Update the cache value to reflect the command line values.
8140 ac_cv_have_x
="have_x=yes \
8141 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8142 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8143 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8146 if test "$no_x" = yes; then
8152 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8153 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8154 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8155 x_default_search_path
=""
8156 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8158 ${x_library}/X11/%L/%T/%N%C%S:\
8159 ${x_library}/X11/%l/%T/%N%C%S:\
8160 ${x_library}/X11/%T/%N%C%S:\
8161 ${x_library}/X11/%L/%T/%N%S:\
8162 ${x_library}/X11/%l/%T/%N%S:\
8163 ${x_library}/X11/%T/%N%S"
8164 if test x
"${x_default_search_path}" = x
; then
8165 x_default_search_path
=${x_search_path}
8167 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8171 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8172 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8175 if test x
"${x_includes}" = x
; then
8176 bitmapdir
=/usr
/include
/X11
/bitmaps
8178 # accumulate include directories that have X11 bitmap subdirectories
8180 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8181 if test -d "${bmd}/X11/bitmaps"; then
8182 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8184 if test -d "${bmd}/bitmaps"; then
8185 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8188 if test ${bmd_acc} != "dummyval"; then
8189 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8193 case "${window_system}" in
8197 case "${with_x_toolkit}" in
8198 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8199 motif
) USE_X_TOOLKIT
=MOTIF
;;
8201 USE_X_TOOLKIT
=none
;;
8202 no
) USE_X_TOOLKIT
=none
;;
8203 * ) USE_X_TOOLKIT
=maybe
;;
8213 ### If we're using X11, we should use the X menu package.
8216 yes ) HAVE_MENUS
=yes ;;
8219 if test "${opsys}" = "hpux9"; then
8220 case "${x_libraries}" in
8222 opsysfile
="s/hpux9-x11r4.h"
8227 if test "${opsys}" = "hpux9shr"; then
8228 case "${x_libraries}" in
8230 opsysfile
="s/hpux9shxr4.h"
8235 ### Compute the unexec source name from the object name.
8236 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8238 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8239 # Assume not, until told otherwise.
8242 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8243 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8244 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 cat >conftest.
$ac_ext <<_ACEOF
8250 cat confdefs.h
>>conftest.
$ac_ext
8251 cat >>conftest.
$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8255 #define malloc_get_state innocuous_malloc_get_state
8257 /* System header to define __stub macros and hopefully few prototypes,
8258 which can conflict with char malloc_get_state (); below.
8259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260 <limits.h> exists even on freestanding compilers. */
8263 # include <limits.h>
8265 # include <assert.h>
8268 #undef malloc_get_state
8270 /* Override any gcc2 internal prototype to avoid an error. */
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8277 char malloc_get_state ();
8278 /* The GNU C library defines this for functions which it implements
8279 to always fail with ENOSYS. Some functions are actually named
8280 something starting with __ and the normal name is an alias. */
8281 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8284 char (*f) () = malloc_get_state;
8293 return f != malloc_get_state;
8298 rm -f conftest.
$ac_objext conftest
$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>conftest.er1
8302 grep -v '^ *+' conftest.er1
>conftest.err
8304 cat conftest.err
>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try
='test -z "$ac_c_werror_flag"
8308 || test ! -s conftest.err'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try
='test -s conftest$ac_exeext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_func_malloc_get_state
=yes
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.
$ac_ext >&5
8325 ac_cv_func_malloc_get_state
=no
8327 rm -f conftest.err conftest.
$ac_objext \
8328 conftest
$ac_exeext conftest.
$ac_ext
8330 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8331 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8332 if test $ac_cv_func_malloc_get_state = yes; then
8338 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8339 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8340 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 cat >conftest.
$ac_ext <<_ACEOF
8346 cat confdefs.h
>>conftest.
$ac_ext
8347 cat >>conftest.
$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8351 #define malloc_set_state innocuous_malloc_set_state
8353 /* System header to define __stub macros and hopefully few prototypes,
8354 which can conflict with char malloc_set_state (); below.
8355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8356 <limits.h> exists even on freestanding compilers. */
8359 # include <limits.h>
8361 # include <assert.h>
8364 #undef malloc_set_state
8366 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373 char malloc_set_state ();
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8380 char (*f) () = malloc_set_state;
8389 return f != malloc_set_state;
8394 rm -f conftest.
$ac_objext conftest
$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try
='test -z "$ac_c_werror_flag"
8404 || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try
='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_func_malloc_set_state
=yes
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.
$ac_ext >&5
8421 ac_cv_func_malloc_set_state
=no
8423 rm -f conftest.err conftest.
$ac_objext \
8424 conftest
$ac_exeext conftest.
$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8427 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8428 if test $ac_cv_func_malloc_set_state = yes; then
8434 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8435 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8436 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 cat >conftest.
$ac_ext <<_ACEOF
8442 cat confdefs.h
>>conftest.
$ac_ext
8443 cat >>conftest.
$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 extern void (* __after_morecore_hook)();
8449 __after_morecore_hook = 0
8454 rm -f conftest.
$ac_objext conftest
$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8458 grep -v '^ *+' conftest.er1
>conftest.err
8460 cat conftest.err
>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try
='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try
='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 emacs_cv_var___after_morecore_hook
=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 emacs_cv_var___after_morecore_hook
=no
8483 rm -f conftest.err conftest.
$ac_objext \
8484 conftest
$ac_exeext conftest.
$ac_ext
8486 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8487 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8488 if test $emacs_cv_var___after_morecore_hook = no
; then
8491 if test "${system_malloc}" = "yes"; then
8494 (The GNU allocators don't work with this system configuration.)"
8496 if test "$doug_lea_malloc" = "yes" ; then
8497 if test "$GNU_MALLOC" = yes ; then
8499 (Using Doug Lea's new malloc from the GNU C Library.)"
8502 cat >>confdefs.h
<<\_ACEOF
8503 #define DOUG_LEA_MALLOC 1
8508 if test x
"${REL_ALLOC}" = x
; then
8509 REL_ALLOC
=${GNU_MALLOC}
8515 for ac_header
in stdlib.h unistd.h
8517 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8519 echo "$as_me:$LINENO: checking for $ac_header" >&5
8520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8527 # Is the header compilable?
8528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8530 cat >conftest.
$ac_ext <<_ACEOF
8533 cat confdefs.h
>>conftest.
$ac_ext
8534 cat >>conftest.
$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #include <$ac_header>
8539 rm -f conftest.
$ac_objext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8541 (eval $ac_compile) 2>conftest.er1
8543 grep -v '^ *+' conftest.er1
>conftest.err
8545 cat conftest.err
>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try
='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try
='test -s conftest.$ac_objext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_header_compiler
=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.
$ac_ext >&5
8566 ac_header_compiler
=no
8568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8570 echo "${ECHO_T}$ac_header_compiler" >&6
8572 # Is the header present?
8573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8575 cat >conftest.
$ac_ext <<_ACEOF
8578 cat confdefs.h
>>conftest.
$ac_ext
8579 cat >>conftest.
$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 #include <$ac_header>
8583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8584 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8586 grep -v '^ *+' conftest.er1
>conftest.err
8588 cat conftest.err
>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } >/dev
/null
; then
8591 if test -s conftest.err
; then
8592 ac_cpp_err
=$ac_c_preproc_warn_flag
8593 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8600 if test -z "$ac_cpp_err"; then
8601 ac_header_preproc
=yes
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.
$ac_ext >&5
8606 ac_header_preproc
=no
8608 rm -f conftest.err conftest.
$ac_ext
8609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8610 echo "${ECHO_T}$ac_header_preproc" >&6
8612 # So? What about this header?
8613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8619 ac_header_preproc
=yes
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8636 ## ------------------------------------------ ##
8637 ## Report this to the AC_PACKAGE_NAME lists. ##
8638 ## ------------------------------------------ ##
8641 sed "s/^/$as_me: WARNING: /" >&2
8644 echo "$as_me:$LINENO: checking for $ac_header" >&5
8645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 eval "$as_ac_Header=\$ac_header_preproc"
8651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8656 cat >>confdefs.h
<<_ACEOF
8657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8665 for ac_func
in getpagesize
8667 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8668 echo "$as_me:$LINENO: checking for $ac_func" >&5
8669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8670 if eval "test \"\${$as_ac_var+set}\" = set"; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 cat >conftest.
$ac_ext <<_ACEOF
8676 cat confdefs.h
>>conftest.
$ac_ext
8677 cat >>conftest.
$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8681 #define $ac_func innocuous_$ac_func
8683 /* System header to define __stub macros and hopefully few prototypes,
8684 which can conflict with char $ac_func (); below.
8685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8686 <limits.h> exists even on freestanding compilers. */
8689 # include <limits.h>
8691 # include <assert.h>
8696 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8704 /* The GNU C library defines this for functions which it implements
8705 to always fail with ENOSYS. Some functions are actually named
8706 something starting with __ and the normal name is an alias. */
8707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8710 char (*f) () = $ac_func;
8719 return f != $ac_func;
8724 rm -f conftest.
$ac_objext conftest
$ac_exeext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726 (eval $ac_link) 2>conftest.er1
8728 grep -v '^ *+' conftest.er1
>conftest.err
8730 cat conftest.err
>&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try
='test -z "$ac_c_werror_flag"
8734 || test ! -s conftest.err'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try
='test -s conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 eval "$as_ac_var=yes"
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.
$ac_ext >&5
8751 eval "$as_ac_var=no"
8753 rm -f conftest.err conftest.
$ac_objext \
8754 conftest
$ac_exeext conftest.
$ac_ext
8756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8758 if test `eval echo '${'$as_ac_var'}'` = yes; then
8759 cat >>confdefs.h
<<_ACEOF
8760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8766 echo "$as_me:$LINENO: checking for working mmap" >&5
8767 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8768 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 if test "$cross_compiling" = yes; then
8772 ac_cv_func_mmap_fixed_mapped
=no
8774 cat >conftest.
$ac_ext <<_ACEOF
8777 cat confdefs.h
>>conftest.
$ac_ext
8778 cat >>conftest.
$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 /* malloc might have been renamed as rpl_malloc. */
8784 /* Thanks to Mike Haertel and Jim Avera for this test.
8785 Here is a matrix of mmap possibilities:
8786 mmap private not fixed
8787 mmap private fixed at somewhere currently unmapped
8788 mmap private fixed at somewhere already mapped
8789 mmap shared not fixed
8790 mmap shared fixed at somewhere currently unmapped
8791 mmap shared fixed at somewhere already mapped
8792 For private mappings, we should verify that changes cannot be read()
8793 back from the file, nor mmap's back from the file at a different
8794 address. (There have been systems where private was not correctly
8795 implemented like the infamous i386 svr4.0, and systems where the
8796 VM page cache was not coherent with the file system buffer cache
8797 like early versions of FreeBSD and possibly contemporary NetBSD.)
8798 For shared mappings, we should conversely verify that changes get
8799 propagated back to all the places they're supposed to be.
8801 Grep wants private fixed already mapped.
8802 The main things grep needs to know about mmap are:
8803 * does it exist and is it safe to write into the mmap'd area
8804 * how to use it (BSD variants) */
8807 #include <sys/mman.h>
8809 #if !STDC_HEADERS && !HAVE_STDLIB_H
8813 /* This mess was copied from the GNU getpagesize.h. */
8814 #if !HAVE_GETPAGESIZE
8815 /* Assume that all systems that can run configure have sys/param.h. */
8816 # if !HAVE_SYS_PARAM_H
8817 # define HAVE_SYS_PARAM_H 1
8820 # ifdef _SC_PAGESIZE
8821 # define getpagesize() sysconf(_SC_PAGESIZE)
8822 # else /* no _SC_PAGESIZE */
8823 # if HAVE_SYS_PARAM_H
8824 # include <sys/param.h>
8825 # ifdef EXEC_PAGESIZE
8826 # define getpagesize() EXEC_PAGESIZE
8827 # else /* no EXEC_PAGESIZE */
8829 # define getpagesize() NBPG * CLSIZE
8832 # endif /* no CLSIZE */
8833 # else /* no NBPG */
8835 # define getpagesize() NBPC
8836 # else /* no NBPC */
8838 # define getpagesize() PAGESIZE
8839 # endif /* PAGESIZE */
8840 # endif /* no NBPC */
8841 # endif /* no NBPG */
8842 # endif /* no EXEC_PAGESIZE */
8843 # else /* no HAVE_SYS_PARAM_H */
8844 # define getpagesize() 8192 /* punt totally */
8845 # endif /* no HAVE_SYS_PARAM_H */
8846 # endif /* no _SC_PAGESIZE */
8848 #endif /* no HAVE_GETPAGESIZE */
8853 char *data, *data2, *data3;
8857 pagesize = getpagesize ();
8859 /* First, make a file with some known garbage in it. */
8860 data = (char *) malloc (pagesize);
8863 for (i = 0; i < pagesize; ++i)
8864 *(data + i) = rand ();
8866 fd = creat ("conftest.mmap", 0600);
8869 if (write (fd, data, pagesize) != pagesize)
8873 /* Next, try to mmap the file at a fixed address which already has
8874 something else allocated at it. If we can, also make sure that
8875 we see the same garbage. */
8876 fd = open ("conftest.mmap", O_RDWR);
8879 data2 = (char *) malloc (2 * pagesize);
8882 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8883 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8884 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8886 for (i = 0; i < pagesize; ++i)
8887 if (*(data + i) != *(data2 + i))
8890 /* Finally, make sure that changes to the mapped area do not
8891 percolate back to the file as seen by read(). (This is a bug on
8892 some variants of i386 svr4.0.) */
8893 for (i = 0; i < pagesize; ++i)
8894 *(data2 + i) = *(data2 + i) + 1;
8895 data3 = (char *) malloc (pagesize);
8898 if (read (fd, data3, pagesize) != pagesize)
8900 for (i = 0; i < pagesize; ++i)
8901 if (*(data + i) != *(data3 + i))
8907 rm -f conftest
$ac_exeext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909 (eval $ac_link) 2>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_func_mmap_fixed_mapped
=yes
8920 echo "$as_me: program exited with status $ac_status" >&5
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.
$ac_ext >&5
8925 ac_cv_func_mmap_fixed_mapped
=no
8927 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8930 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8931 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8932 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8934 cat >>confdefs.h
<<\_ACEOF
8941 if test $use_mmap_for_buffers = yes; then
8945 LIBS
="$libsrc_libs $LIBS"
8948 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8949 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8950 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 ac_check_lib_save_LIBS
=$LIBS
8955 cat >conftest.
$ac_ext <<_ACEOF
8958 cat confdefs.h
>>conftest.
$ac_ext
8959 cat >>conftest.
$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8962 /* Override any gcc2 internal prototype to avoid an error. */
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8977 rm -f conftest.
$ac_objext conftest
$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979 (eval $ac_link) 2>conftest.er1
8981 grep -v '^ *+' conftest.er1
>conftest.err
8983 cat conftest.err
>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try
='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try
='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_cv_lib_dnet_dnet_ntoa
=yes
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.
$ac_ext >&5
9004 ac_cv_lib_dnet_dnet_ntoa
=no
9006 rm -f conftest.err conftest.
$ac_objext \
9007 conftest
$ac_exeext conftest.
$ac_ext
9008 LIBS
=$ac_check_lib_save_LIBS
9010 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9011 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9012 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9013 cat >>confdefs.h
<<_ACEOF
9014 #define HAVE_LIBDNET 1
9022 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9023 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9024 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 ac_check_lib_save_LIBS
=$LIBS
9029 cat >conftest.
$ac_ext <<_ACEOF
9032 cat confdefs.h
>>conftest.
$ac_ext
9033 cat >>conftest.
$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9045 rm -f conftest.
$ac_objext conftest
$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>conftest.er1
9049 grep -v '^ *+' conftest.er1
>conftest.err
9051 cat conftest.err
>&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try
='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try
='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_lib_Xbsd_main
=yes
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.
$ac_ext >&5
9072 ac_cv_lib_Xbsd_main
=no
9074 rm -f conftest.err conftest.
$ac_objext \
9075 conftest
$ac_exeext conftest.
$ac_ext
9076 LIBS
=$ac_check_lib_save_LIBS
9078 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9079 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9080 if test $ac_cv_lib_Xbsd_main = yes; then
9081 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9086 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9087 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9088 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 ac_check_lib_save_LIBS
=$LIBS
9092 LIBS
="-lpthreads $LIBS"
9093 cat >conftest.
$ac_ext <<_ACEOF
9096 cat confdefs.h
>>conftest.
$ac_ext
9097 cat >>conftest.
$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9115 rm -f conftest.
$ac_objext conftest
$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1
>conftest.err
9121 cat conftest.err
>&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try
='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try
='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_lib_pthreads_cma_open
=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9142 ac_cv_lib_pthreads_cma_open
=no
9144 rm -f conftest.err conftest.
$ac_objext \
9145 conftest
$ac_exeext conftest.
$ac_ext
9146 LIBS
=$ac_check_lib_save_LIBS
9148 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9149 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9150 if test $ac_cv_lib_pthreads_cma_open = yes; then
9151 cat >>confdefs.h
<<_ACEOF
9152 #define HAVE_LIBPTHREADS 1
9155 LIBS
="-lpthreads $LIBS"
9160 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9161 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9162 if test -d /usr
/X386
/include
; then
9164 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9168 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9169 echo "${ECHO_T}$HAVE_XFREE386" >&6
9174 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9175 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9176 if test "${gdb_cv_bigtoc+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9182 *) gdb_cv_bigtoc
=-bbigtoc ;;
9185 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9186 cat >conftest.
$ac_ext <<_ACEOF
9189 cat confdefs.h
>>conftest.
$ac_ext
9190 cat >>conftest.
$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9201 rm -f conftest.
$ac_objext conftest
$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203 (eval $ac_link) 2>conftest.er1
9205 grep -v '^ *+' conftest.er1
>conftest.err
9207 cat conftest.err
>&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try
='test -z "$ac_c_werror_flag"
9211 || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try
='test -s conftest$ac_exeext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.
$ac_ext >&5
9230 rm -f conftest.err conftest.
$ac_objext \
9231 conftest
$ac_exeext conftest.
$ac_ext
9234 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9235 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9239 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9240 # used for the tests that follow. We set them back to REAL_CFLAGS and
9241 # REAL_CPPFLAGS later on.
9243 REAL_CPPFLAGS
="$CPPFLAGS"
9245 if test "${HAVE_X11}" = "yes"; then
9246 DEFS
="$C_SWITCH_X_SITE $DEFS"
9247 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9249 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9250 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9252 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9253 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9254 # but it's more convenient here to set LD_RUN_PATH
9255 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9256 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9257 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9261 if test "${opsys}" = "gnu-linux"; then
9262 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9263 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9264 cat >conftest.
$ac_ext <<_ACEOF
9267 cat confdefs.h
>>conftest.
$ac_ext
9268 cat >>conftest.
$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9274 XOpenDisplay ("foo");
9279 rm -f conftest.
$ac_objext conftest
$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9283 grep -v '^ *+' conftest.er1
>conftest.err
9285 cat conftest.err
>&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try
='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try
='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 xlinux_first_failure
=no
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.
$ac_ext >&5
9306 xlinux_first_failure
=yes
9308 rm -f conftest.err conftest.
$ac_objext \
9309 conftest
$ac_exeext conftest.
$ac_ext
9310 if test "${xlinux_first_failure}" = "yes"; then
9311 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9312 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9313 OLD_CPPFLAGS
="$CPPFLAGS"
9315 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9316 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9317 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9318 LIBS
="$LIBS -b i486-linuxaout"
9319 cat >conftest.
$ac_ext <<_ACEOF
9322 cat confdefs.h
>>conftest.
$ac_ext
9323 cat >>conftest.
$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9329 XOpenDisplay ("foo");
9334 rm -f conftest.
$ac_objext conftest
$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>conftest.er1
9338 grep -v '^ *+' conftest.er1
>conftest.err
9340 cat conftest.err
>&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try
='test -z "$ac_c_werror_flag"
9344 || test ! -s conftest.err'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try
='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 xlinux_second_failure
=no
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.
$ac_ext >&5
9361 xlinux_second_failure
=yes
9363 rm -f conftest.err conftest.
$ac_objext \
9364 conftest
$ac_exeext conftest.
$ac_ext
9365 if test "${xlinux_second_failure}" = "yes"; then
9366 # If we get the same failure with -b, there is no use adding -b.
9367 # So take it out. This plays safe.
9368 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9369 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9370 CPPFLAGS
="$OLD_CPPFLAGS"
9372 echo "$as_me:$LINENO: result: no" >&5
9373 echo "${ECHO_T}no" >&6
9375 echo "$as_me:$LINENO: result: yes" >&5
9376 echo "${ECHO_T}yes" >&6
9379 echo "$as_me:$LINENO: result: no" >&5
9380 echo "${ECHO_T}no" >&6
9384 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9385 # header files included from there.
9386 echo "$as_me:$LINENO: checking for Xkb" >&5
9387 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9388 cat >conftest.
$ac_ext <<_ACEOF
9391 cat confdefs.h
>>conftest.
$ac_ext
9392 cat >>conftest.
$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 #include <X11/Xlib.h>
9395 #include <X11/XKBlib.h>
9399 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9404 rm -f conftest.
$ac_objext conftest
$ac_exeext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>conftest.er1
9408 grep -v '^ *+' conftest.er1
>conftest.err
9410 cat conftest.err
>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try
='test -z "$ac_c_werror_flag"
9414 || test ! -s conftest.err'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; } &&
9420 { ac_try
='test -s conftest$ac_exeext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.
$ac_ext >&5
9433 rm -f conftest.err conftest.
$ac_objext \
9434 conftest
$ac_exeext conftest.
$ac_ext
9435 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9436 echo "${ECHO_T}$emacs_xkb" >&6
9437 if test $emacs_xkb = yes; then
9439 cat >>confdefs.h
<<\_ACEOF
9440 #define HAVE_XKBGETKEYBOARD 1
9449 for ac_func
in XrmSetDatabase XScreenResourceString \
9450 XScreenNumberOfScreen XSetWMProtocols
9452 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9453 echo "$as_me:$LINENO: checking for $ac_func" >&5
9454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9455 if eval "test \"\${$as_ac_var+set}\" = set"; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 cat >conftest.
$ac_ext <<_ACEOF
9461 cat confdefs.h
>>conftest.
$ac_ext
9462 cat >>conftest.
$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9466 #define $ac_func innocuous_$ac_func
9468 /* System header to define __stub macros and hopefully few prototypes,
9469 which can conflict with char $ac_func (); below.
9470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471 <limits.h> exists even on freestanding compilers. */
9474 # include <limits.h>
9476 # include <assert.h>
9481 /* Override any gcc2 internal prototype to avoid an error. */
9486 /* We use char because int might match the return type of a gcc2
9487 builtin and then its argument prototype would still apply. */
9489 /* The GNU C library defines this for functions which it implements
9490 to always fail with ENOSYS. Some functions are actually named
9491 something starting with __ and the normal name is an alias. */
9492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9495 char (*f) () = $ac_func;
9504 return f != $ac_func;
9509 rm -f conftest.
$ac_objext conftest
$ac_exeext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>conftest.er1
9513 grep -v '^ *+' conftest.er1
>conftest.err
9515 cat conftest.err
>&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try
='test -z "$ac_c_werror_flag"
9519 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try
='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 eval "$as_ac_var=yes"
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.
$ac_ext >&5
9536 eval "$as_ac_var=no"
9538 rm -f conftest.err conftest.
$ac_objext \
9539 conftest
$ac_exeext conftest.
$ac_ext
9541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9543 if test `eval echo '${'$as_ac_var'}'` = yes; then
9544 cat >>confdefs.h
<<_ACEOF
9545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9553 if test "${window_system}" = "x11"; then
9554 echo "$as_me:$LINENO: checking X11 version 6" >&5
9555 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9556 if test "${emacs_cv_x11_version_6+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 cat >conftest.
$ac_ext <<_ACEOF
9562 cat confdefs.h
>>conftest.
$ac_ext
9563 cat >>conftest.
$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 #include <X11/Xlib.h>
9569 #if XlibSpecificationRelease < 6
9577 rm -f conftest.
$ac_objext conftest
$ac_exeext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>conftest.er1
9581 grep -v '^ *+' conftest.er1
>conftest.err
9583 cat conftest.err
>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try
='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try
='test -s conftest$ac_exeext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 emacs_cv_x11_version_6
=yes
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.
$ac_ext >&5
9604 emacs_cv_x11_version_6
=no
9606 rm -f conftest.err conftest.
$ac_objext \
9607 conftest
$ac_exeext conftest.
$ac_ext
9610 if test $emacs_cv_x11_version_6 = yes; then
9611 echo "$as_me:$LINENO: result: 6 or newer" >&5
9612 echo "${ECHO_T}6 or newer" >&6
9614 cat >>confdefs.h
<<\_ACEOF
9615 #define HAVE_X11R6 1
9619 echo "$as_me:$LINENO: result: before 6" >&5
9620 echo "${ECHO_T}before 6" >&6
9624 if test "${window_system}" = "x11"; then
9625 echo "$as_me:$LINENO: checking X11 version 5" >&5
9626 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9627 if test "${emacs_cv_x11_version_5+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 cat >conftest.
$ac_ext <<_ACEOF
9633 cat confdefs.h
>>conftest.
$ac_ext
9634 cat >>conftest.
$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 #include <X11/Xlib.h>
9640 #if XlibSpecificationRelease < 5
9648 rm -f conftest.
$ac_objext conftest
$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650 (eval $ac_link) 2>conftest.er1
9652 grep -v '^ *+' conftest.er1
>conftest.err
9654 cat conftest.err
>&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try
='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try
='test -s conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 emacs_cv_x11_version_5
=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.
$ac_ext >&5
9675 emacs_cv_x11_version_5
=no
9677 rm -f conftest.err conftest.
$ac_objext \
9678 conftest
$ac_exeext conftest.
$ac_ext
9681 if test $emacs_cv_x11_version_5 = yes; then
9682 echo "$as_me:$LINENO: result: 5 or newer" >&5
9683 echo "${ECHO_T}5 or newer" >&6
9686 cat >>confdefs.h
<<\_ACEOF
9687 #define HAVE_X11R5 1
9692 echo "$as_me:$LINENO: result: before 5" >&5
9693 echo "${ECHO_T}before 5" >&6
9700 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9701 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9702 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9703 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9704 { (exit 1); exit 1; }; };
9708 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9710 if test "X${with_pkg_config_prog}" != X
; then
9711 PKG_CONFIG
="${with_pkg_config_prog}"
9716 if test -z "$PKG_CONFIG"; then
9717 # Extract the first word of "pkg-config", so it can be a program name with args.
9718 set dummy pkg-config
; ac_word
=$2
9719 echo "$as_me:$LINENO: checking for $ac_word" >&5
9720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9721 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9733 test -z "$as_dir" && as_dir
=.
9734 for ac_exec_ext
in '' $ac_executable_extensions; do
9735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9747 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9749 if test -n "$PKG_CONFIG"; then
9750 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9751 echo "${ECHO_T}$PKG_CONFIG" >&6
9753 echo "$as_me:$LINENO: result: no" >&5
9754 echo "${ECHO_T}no" >&6
9759 if test "$PKG_CONFIG" = "no" ; then
9760 echo "*** The pkg-config script could not be found. Make sure it is"
9761 echo "*** in your path, or give the full path to pkg-config with"
9762 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9763 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9765 PKG_CONFIG_MIN_VERSION
=0.9.0
9766 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9767 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9768 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9770 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9771 echo "$as_me:$LINENO: result: yes" >&5
9772 echo "${ECHO_T}yes" >&6
9775 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9776 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9777 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9778 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9779 echo "${ECHO_T}$GTK_CFLAGS" >&6
9781 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9782 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9783 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9784 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9785 echo "${ECHO_T}$GTK_LIBS" >&6
9789 ## If we have a custom action on failure, don't print errors, but
9790 ## do set a variable so people can do so.
9791 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9792 echo $GTK_PKG_ERRORS
9798 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9799 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9803 if test $succeeded = yes; then
9806 { { 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
9807 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;}
9808 { (exit 1); exit 1; }; }
9813 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9814 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9815 LIBS
="$GTK_LIBS $LIBS"
9818 cat >>confdefs.h
<<\_ACEOF
9824 with_toolkit_scroll_bars
=yes
9826 HAVE_GTK_MULTIDISPLAY
=no
9828 for ac_func
in gdk_display_open
9830 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_func" >&5
9832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_var+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 cat >conftest.
$ac_ext <<_ACEOF
9839 cat confdefs.h
>>conftest.
$ac_ext
9840 cat >>conftest.
$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9844 #define $ac_func innocuous_$ac_func
9846 /* System header to define __stub macros and hopefully few prototypes,
9847 which can conflict with char $ac_func (); below.
9848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9849 <limits.h> exists even on freestanding compilers. */
9852 # include <limits.h>
9854 # include <assert.h>
9859 /* Override any gcc2 internal prototype to avoid an error. */
9864 /* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9873 char (*f) () = $ac_func;
9882 return f != $ac_func;
9887 rm -f conftest.
$ac_objext conftest
$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889 (eval $ac_link) 2>conftest.er1
9891 grep -v '^ *+' conftest.er1
>conftest.err
9893 cat conftest.err
>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try
='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try
='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 eval "$as_ac_var=yes"
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.
$ac_ext >&5
9914 eval "$as_ac_var=no"
9916 rm -f conftest.err conftest.
$ac_objext \
9917 conftest
$ac_exeext conftest.
$ac_ext
9919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9921 if test `eval echo '${'$as_ac_var'}'` = yes; then
9922 cat >>confdefs.h
<<_ACEOF
9923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9925 HAVE_GTK_MULTIDISPLAY
=yes
9929 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9931 cat >>confdefs.h
<<\_ACEOF
9932 #define HAVE_GTK_MULTIDISPLAY 1
9938 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9939 if test x
"${HAVE_X11R5}" = xyes
; then
9940 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9941 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9942 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 cat >conftest.
$ac_ext <<_ACEOF
9948 cat confdefs.h
>>conftest.
$ac_ext
9949 cat >>conftest.
$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9952 #include <X11/Intrinsic.h>
9953 #include <X11/Xaw/Simple.h>
9962 rm -f conftest.
$ac_objext conftest
$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9966 grep -v '^ *+' conftest.er1
>conftest.err
9968 cat conftest.err
>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try
='test -z "$ac_c_werror_flag"
9972 || test ! -s conftest.err'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try
='test -s conftest$ac_exeext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 emacs_cv_x11_version_5_with_xaw
=yes
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.
$ac_ext >&5
9989 emacs_cv_x11_version_5_with_xaw
=no
9991 rm -f conftest.err conftest.
$ac_objext \
9992 conftest
$ac_exeext conftest.
$ac_ext
9995 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9996 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9997 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10000 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10001 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10009 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10011 if test "${USE_X_TOOLKIT}" != "none"; then
10012 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10013 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10014 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 cat >conftest.
$ac_ext <<_ACEOF
10020 cat confdefs.h
>>conftest.
$ac_ext
10021 cat >>conftest.
$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <X11/Intrinsic.h>
10027 #if XtSpecificationRelease < 6
10035 rm -f conftest.
$ac_objext conftest
$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037 (eval $ac_link) 2>conftest.er1
10039 grep -v '^ *+' conftest.er1
>conftest.err
10041 cat conftest.err
>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try
='test -z "$ac_c_werror_flag"
10045 || test ! -s conftest.err'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try
='test -s conftest$ac_exeext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10057 emacs_cv_x11_toolkit_version_6
=yes
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.
$ac_ext >&5
10062 emacs_cv_x11_toolkit_version_6
=no
10064 rm -f conftest.err conftest.
$ac_objext \
10065 conftest
$ac_exeext conftest.
$ac_ext
10068 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10069 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10070 echo "$as_me:$LINENO: result: 6 or newer" >&5
10071 echo "${ECHO_T}6 or newer" >&6
10073 cat >>confdefs.h
<<\_ACEOF
10074 #define HAVE_X11XTR6 1
10078 echo "$as_me:$LINENO: result: before 6" >&5
10079 echo "${ECHO_T}before 6" >&6
10083 if test x
$HAVE_X11XTR6 = xyes
; then
10084 LIBS
="-lXt -lSM -lICE $LIBS"
10089 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10090 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10091 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 ac_check_lib_save_LIBS
=$LIBS
10096 cat >conftest.
$ac_ext <<_ACEOF
10099 cat confdefs.h
>>conftest.
$ac_ext
10100 cat >>conftest.
$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10103 /* Override any gcc2 internal prototype to avoid an error. */
10107 /* We use char because int might match the return type of a gcc2
10108 builtin and then its argument prototype would still apply. */
10109 char XmuConvertStandardSelection ();
10113 XmuConvertStandardSelection ();
10118 rm -f conftest.
$ac_objext conftest
$ac_exeext
10119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120 (eval $ac_link) 2>conftest.er1
10122 grep -v '^ *+' conftest.er1
>conftest.err
10124 cat conftest.err
>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try
='test -z "$ac_c_werror_flag"
10128 || test ! -s conftest.err'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try
='test -s conftest$ac_exeext'
10135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.
$ac_ext >&5
10145 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10147 rm -f conftest.err conftest.
$ac_objext \
10148 conftest
$ac_exeext conftest.
$ac_ext
10149 LIBS
=$ac_check_lib_save_LIBS
10151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10152 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10153 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10154 cat >>confdefs.h
<<_ACEOF
10155 #define HAVE_LIBXMU 1
10162 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10165 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10166 if test "${HAVE_X11}" = "yes"; then
10167 if test "${USE_X_TOOLKIT}" != "none"; then
10169 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10170 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10171 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 ac_check_lib_save_LIBS
=$LIBS
10175 LIBS
="-lXext $LIBS"
10176 cat >conftest.
$ac_ext <<_ACEOF
10179 cat confdefs.h
>>conftest.
$ac_ext
10180 cat >>conftest.
$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10183 /* Override any gcc2 internal prototype to avoid an error. */
10187 /* We use char because int might match the return type of a gcc2
10188 builtin and then its argument prototype would still apply. */
10189 char XShapeQueryExtension ();
10193 XShapeQueryExtension ();
10198 rm -f conftest.
$ac_objext conftest
$ac_exeext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>conftest.er1
10202 grep -v '^ *+' conftest.er1
>conftest.err
10204 cat conftest.err
>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try
='test -z "$ac_c_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try
='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.
$ac_ext >&5
10225 ac_cv_lib_Xext_XShapeQueryExtension
=no
10227 rm -f conftest.err conftest.
$ac_objext \
10228 conftest
$ac_exeext conftest.
$ac_ext
10229 LIBS
=$ac_check_lib_save_LIBS
10231 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10232 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10233 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10234 cat >>confdefs.h
<<_ACEOF
10235 #define HAVE_LIBXEXT 1
10238 LIBS
="-lXext $LIBS"
10245 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10246 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10247 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10248 if test "${emacs_cv_lesstif+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 # We put this in CFLAGS temporarily to precede other -I options
10252 # that might be in CFLAGS temporarily.
10253 # We put this in CPPFLAGS where it precedes the other -I options.
10254 OLD_CPPFLAGS
=$CPPFLAGS
10256 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10257 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10258 cat >conftest.
$ac_ext <<_ACEOF
10261 cat confdefs.h
>>conftest.
$ac_ext
10262 cat >>conftest.
$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10273 rm -f conftest.
$ac_objext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>conftest.er1
10277 grep -v '^ *+' conftest.er1
>conftest.err
10279 cat conftest.err
>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try
='test -z "$ac_c_werror_flag"
10283 || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try
='test -s conftest.$ac_objext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295 emacs_cv_lesstif
=yes
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.
$ac_ext >&5
10300 emacs_cv_lesstif
=no
10302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10304 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10305 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10306 if test $emacs_cv_lesstif = yes; then
10307 # Make sure this -I option remains in CPPFLAGS after it is set
10308 # back to REAL_CPPFLAGS.
10309 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10310 # have those other -I options anyway. Ultimately, having this
10311 # directory ultimately in CPPFLAGS will be enough.
10312 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10313 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10316 CPPFLAGS
=$OLD_CPPFLAGS
10318 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10319 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10320 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 cat >conftest.
$ac_ext <<_ACEOF
10326 cat confdefs.h
>>conftest.
$ac_ext
10327 cat >>conftest.
$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10333 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10336 Motif version prior to 2.1.
10342 rm -f conftest.
$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>conftest.er1
10346 grep -v '^ *+' conftest.er1
>conftest.err
10348 cat conftest.err
>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try
='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try
='test -s conftest.$ac_objext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 emacs_cv_motif_version_2_1
=yes
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.
$ac_ext >&5
10369 emacs_cv_motif_version_2_1
=no
10371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10373 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10374 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10375 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10376 if test $emacs_cv_motif_version_2_1 = yes; then
10379 cat >>confdefs.h
<<\_ACEOF
10380 #define HAVE_MOTIF_2_1 1
10383 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10384 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10385 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 ac_check_lib_save_LIBS
=$LIBS
10390 cat >conftest.
$ac_ext <<_ACEOF
10393 cat confdefs.h
>>conftest.
$ac_ext
10394 cat >>conftest.
$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10397 /* Override any gcc2 internal prototype to avoid an error. */
10401 /* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10403 char XpCreateContext ();
10407 XpCreateContext ();
10412 rm -f conftest.
$ac_objext conftest
$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>conftest.er1
10416 grep -v '^ *+' conftest.er1
>conftest.err
10418 cat conftest.err
>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try
='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try
='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_lib_Xp_XpCreateContext
=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.
$ac_ext >&5
10439 ac_cv_lib_Xp_XpCreateContext
=no
10441 rm -f conftest.err conftest.
$ac_objext \
10442 conftest
$ac_exeext conftest.
$ac_ext
10443 LIBS
=$ac_check_lib_save_LIBS
10445 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10446 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10447 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10451 if test ${HAVE_LIBXP} = yes; then
10453 cat >>confdefs.h
<<\_ACEOF
10454 #define HAVE_LIBXP 1
10461 ### Is -lXaw3d available?
10463 if test "${HAVE_X11}" = "yes"; then
10464 if test "${USE_X_TOOLKIT}" != "none"; then
10465 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10466 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10467 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 cat >conftest.
$ac_ext <<_ACEOF
10473 cat confdefs.h
>>conftest.
$ac_ext
10474 cat >>conftest.
$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #include <X11/Xaw3d/Scrollbar.h>
10478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10481 grep -v '^ *+' conftest.er1
>conftest.err
10483 cat conftest.err
>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } >/dev
/null
; then
10486 if test -s conftest.err
; then
10487 ac_cpp_err
=$ac_c_preproc_warn_flag
10488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10495 if test -z "$ac_cpp_err"; then
10496 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.
$ac_ext >&5
10501 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10503 rm -f conftest.err conftest.
$ac_ext
10505 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10506 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10507 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10508 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10509 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10510 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 ac_check_lib_save_LIBS
=$LIBS
10514 LIBS
="-lXaw3d $LIBS"
10515 cat >conftest.
$ac_ext <<_ACEOF
10518 cat confdefs.h
>>conftest.
$ac_ext
10519 cat >>conftest.
$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10522 /* Override any gcc2 internal prototype to avoid an error. */
10526 /* We use char because int might match the return type of a gcc2
10527 builtin and then its argument prototype would still apply. */
10528 char XawScrollbarSetThumb ();
10532 XawScrollbarSetThumb ();
10537 rm -f conftest.
$ac_objext conftest
$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>conftest.er1
10541 grep -v '^ *+' conftest.er1
>conftest.err
10543 cat conftest.err
>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try
='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try
='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.
$ac_ext >&5
10564 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10566 rm -f conftest.err conftest.
$ac_objext \
10567 conftest
$ac_exeext conftest.
$ac_ext
10568 LIBS
=$ac_check_lib_save_LIBS
10570 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10571 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10572 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10579 if test "${HAVE_XAW3D}" = "yes"; then
10581 cat >>confdefs.h
<<\_ACEOF
10582 #define HAVE_XAW3D 1
10591 USE_TOOLKIT_SCROLL_BARS
=no
10592 if test "${with_toolkit_scroll_bars}" != "no"; then
10593 if test "${USE_X_TOOLKIT}" != "none"; then
10594 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10595 cat >>confdefs.h
<<\_ACEOF
10596 #define USE_TOOLKIT_SCROLL_BARS 1
10600 USE_TOOLKIT_SCROLL_BARS
=yes
10601 elif test "${HAVE_XAW3D}" = "yes"; then
10602 cat >>confdefs.h
<<\_ACEOF
10603 #define USE_TOOLKIT_SCROLL_BARS 1
10606 USE_TOOLKIT_SCROLL_BARS
=yes
10608 elif test "${HAVE_GTK}" = "yes"; then
10609 cat >>confdefs.h
<<\_ACEOF
10610 #define USE_TOOLKIT_SCROLL_BARS 1
10613 USE_TOOLKIT_SCROLL_BARS
=yes
10617 cat >conftest.
$ac_ext <<_ACEOF
10620 cat confdefs.h
>>conftest.
$ac_ext
10621 cat >>conftest.
$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10624 #include <X11/Xlib.h>
10625 #include <X11/Xresource.h>
10634 rm -f conftest.
$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10638 grep -v '^ *+' conftest.er1
>conftest.err
10640 cat conftest.err
>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try
='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try
='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10658 cat >>confdefs.h
<<\_ACEOF
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.
$ac_ext >&5
10668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10671 if test "${with_xim}" != "no"; then
10673 cat >>confdefs.h
<<\_ACEOF
10680 if test "${HAVE_XIM}" != "no"; then
10681 late_CFLAGS
=$CFLAGS
10682 if test "$GCC" = yes; then
10683 CFLAGS
="$CFLAGS --pedantic-errors"
10685 cat >conftest.
$ac_ext <<_ACEOF
10688 cat confdefs.h
>>conftest.
$ac_ext
10689 cat >>conftest.
$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10692 #include <X11/Xlib.h>
10693 #include <X11/Xresource.h>
10702 XPointer *client_data;
10704 /* If we're not using GCC, it's probably not XFree86, and this is
10705 probably right, but we can't use something like --pedantic-errors. */
10706 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10707 char*, XIMProc, XPointer*);
10709 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10715 rm -f conftest.
$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717 (eval $ac_compile) 2>conftest.er1
10719 grep -v '^ *+' conftest.er1
>conftest.err
10721 cat conftest.err
>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try
='test -z "$ac_c_werror_flag"
10725 || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try
='test -s conftest.$ac_objext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 emacs_cv_arg6_star
=yes
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.
$ac_ext >&5
10743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10745 if test "$emacs_cv_arg6_star" = yes; then
10746 cat >>confdefs.h
<<\_ACEOF
10747 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10751 cat >>confdefs.h
<<\_ACEOF
10752 #define XRegisterIMInstantiateCallback_arg6 XPointer
10756 CFLAGS
=$late_CFLAGS
10759 ### Use -lXpm if available, unless `--with-xpm=no'.
10761 if test "${HAVE_X11}" = "yes"; then
10762 if test "${with_xpm}" != "no"; then
10763 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10764 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10765 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10766 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10770 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10772 # Is the header compilable?
10773 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10774 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10775 cat >conftest.
$ac_ext <<_ACEOF
10778 cat confdefs.h
>>conftest.
$ac_ext
10779 cat >>conftest.
$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 $ac_includes_default
10782 #include <X11/xpm.h>
10784 rm -f conftest.
$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>conftest.er1
10788 grep -v '^ *+' conftest.er1
>conftest.err
10790 cat conftest.err
>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try
='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try
='test -s conftest.$ac_objext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_header_compiler
=yes
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.
$ac_ext >&5
10811 ac_header_compiler
=no
10813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10815 echo "${ECHO_T}$ac_header_compiler" >&6
10817 # Is the header present?
10818 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10819 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10820 cat >conftest.
$ac_ext <<_ACEOF
10823 cat confdefs.h
>>conftest.
$ac_ext
10824 cat >>conftest.
$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 #include <X11/xpm.h>
10828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10829 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10831 grep -v '^ *+' conftest.er1
>conftest.err
10833 cat conftest.err
>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } >/dev
/null
; then
10836 if test -s conftest.err
; then
10837 ac_cpp_err
=$ac_c_preproc_warn_flag
10838 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10845 if test -z "$ac_cpp_err"; then
10846 ac_header_preproc
=yes
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.
$ac_ext >&5
10851 ac_header_preproc
=no
10853 rm -f conftest.err conftest.
$ac_ext
10854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10855 echo "${ECHO_T}$ac_header_preproc" >&6
10857 # So? What about this header?
10858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10860 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10861 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10863 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10864 ac_header_preproc
=yes
10867 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10868 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10870 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10872 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10874 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10876 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10878 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10881 ## ------------------------------------------ ##
10882 ## Report this to the AC_PACKAGE_NAME lists. ##
10883 ## ------------------------------------------ ##
10886 sed "s/^/$as_me: WARNING: /" >&2
10889 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10890 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10891 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10896 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10897 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10900 if test $ac_cv_header_X11_xpm_h = yes; then
10901 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10902 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10903 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 ac_check_lib_save_LIBS
=$LIBS
10907 LIBS
="-lXpm -lX11 $LIBS"
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 /* Override any gcc2 internal prototype to avoid an error. */
10919 /* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10921 char XpmReadFileToPixmap ();
10925 XpmReadFileToPixmap ();
10930 rm -f conftest.
$ac_objext conftest
$ac_exeext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>conftest.er1
10934 grep -v '^ *+' conftest.er1
>conftest.err
10936 cat conftest.err
>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try
='test -z "$ac_c_werror_flag"
10940 || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try
='test -s conftest$ac_exeext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.
$ac_ext >&5
10957 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10959 rm -f conftest.err conftest.
$ac_objext \
10960 conftest
$ac_exeext conftest.
$ac_ext
10961 LIBS
=$ac_check_lib_save_LIBS
10963 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10964 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10965 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10972 if test "${HAVE_XPM}" = "yes"; then
10973 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10974 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10975 cat >conftest.
$ac_ext <<_ACEOF
10978 cat confdefs.h
>>conftest.
$ac_ext
10979 cat >>conftest.
$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 #include "X11/xpm.h"
10982 #ifndef XpmReturnAllocPixels
10983 no_return_alloc_pixels
10987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10988 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
10996 if test "${HAVE_XPM}" = "yes"; then
10997 echo "$as_me:$LINENO: result: yes" >&5
10998 echo "${ECHO_T}yes" >&6
11000 echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6
11006 if test "${HAVE_XPM}" = "yes"; then
11008 cat >>confdefs.h
<<\_ACEOF
11015 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11017 if test "${HAVE_X11}" = "yes"; then
11018 if test "${with_jpeg}" != "no"; then
11019 if test "${ac_cv_header_jerror_h+set}" = set; then
11020 echo "$as_me:$LINENO: checking for jerror.h" >&5
11021 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11022 if test "${ac_cv_header_jerror_h+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11026 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11028 # Is the header compilable?
11029 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11030 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11031 cat >conftest.
$ac_ext <<_ACEOF
11034 cat confdefs.h
>>conftest.
$ac_ext
11035 cat >>conftest.
$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11037 $ac_includes_default
11038 #include <jerror.h>
11040 rm -f conftest.
$ac_objext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>conftest.er1
11044 grep -v '^ *+' conftest.er1
>conftest.err
11046 cat conftest.err
>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try
='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try
='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_header_compiler
=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 ac_header_compiler
=no
11069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11071 echo "${ECHO_T}$ac_header_compiler" >&6
11073 # Is the header present?
11074 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11075 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11076 cat >conftest.
$ac_ext <<_ACEOF
11079 cat confdefs.h
>>conftest.
$ac_ext
11080 cat >>conftest.
$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 #include <jerror.h>
11084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11087 grep -v '^ *+' conftest.er1
>conftest.err
11089 cat conftest.err
>&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } >/dev
/null
; then
11092 if test -s conftest.err
; then
11093 ac_cpp_err
=$ac_c_preproc_warn_flag
11094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11101 if test -z "$ac_cpp_err"; then
11102 ac_header_preproc
=yes
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.
$ac_ext >&5
11107 ac_header_preproc
=no
11109 rm -f conftest.err conftest.
$ac_ext
11110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11111 echo "${ECHO_T}$ac_header_preproc" >&6
11113 # So? What about this header?
11114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11116 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11117 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11119 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11120 ac_header_preproc
=yes
11123 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11124 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11126 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11128 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11130 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11132 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11134 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11137 ## ------------------------------------------ ##
11138 ## Report this to the AC_PACKAGE_NAME lists. ##
11139 ## ------------------------------------------ ##
11142 sed "s/^/$as_me: WARNING: /" >&2
11145 echo "$as_me:$LINENO: checking for jerror.h" >&5
11146 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11147 if test "${ac_cv_header_jerror_h+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 ac_cv_header_jerror_h
=$ac_header_preproc
11152 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11153 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11156 if test $ac_cv_header_jerror_h = yes; then
11157 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11158 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11159 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 ac_check_lib_save_LIBS
=$LIBS
11163 LIBS
="-ljpeg $LIBS"
11164 cat >conftest.
$ac_ext <<_ACEOF
11167 cat confdefs.h
>>conftest.
$ac_ext
11168 cat >>conftest.
$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11171 /* Override any gcc2 internal prototype to avoid an error. */
11175 /* We use char because int might match the return type of a gcc2
11176 builtin and then its argument prototype would still apply. */
11177 char jpeg_destroy_compress ();
11181 jpeg_destroy_compress ();
11186 rm -f conftest.
$ac_objext conftest
$ac_exeext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188 (eval $ac_link) 2>conftest.er1
11190 grep -v '^ *+' conftest.er1
>conftest.err
11192 cat conftest.err
>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try
='test -z "$ac_c_werror_flag"
11196 || test ! -s conftest.err'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; } &&
11202 { ac_try
='test -s conftest$ac_exeext'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.
$ac_ext >&5
11213 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11215 rm -f conftest.err conftest.
$ac_objext \
11216 conftest
$ac_exeext conftest.
$ac_ext
11217 LIBS
=$ac_check_lib_save_LIBS
11219 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11220 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11221 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11231 if test "${HAVE_JPEG}" = "yes"; then
11232 cat >>confdefs.h
<<\_ACEOF
11233 #define HAVE_JPEG 1
11236 cat >conftest.
$ac_ext <<_ACEOF
11239 cat confdefs.h
>>conftest.
$ac_ext
11240 cat >>conftest.
$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <jpeglib.h>
11243 version=JPEG_LIB_VERSION
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11248 cat >>confdefs.h
<<\_ACEOF
11249 #define HAVE_JPEG 1
11253 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11254 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11262 ### Use -lpng if available, unless `--with-png=no'.
11264 if test "${HAVE_X11}" = "yes"; then
11265 if test "${with_png}" != "no"; then
11266 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11267 # in /usr/include/libpng.
11270 for ac_header
in png.h libpng
/png.h
11272 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11274 echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11282 # Is the header compilable?
11283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11285 cat >conftest.
$ac_ext <<_ACEOF
11288 cat confdefs.h
>>conftest.
$ac_ext
11289 cat >>conftest.
$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 $ac_includes_default
11292 #include <$ac_header>
11294 rm -f conftest.
$ac_objext
11295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11296 (eval $ac_compile) 2>conftest.er1
11298 grep -v '^ *+' conftest.er1
>conftest.err
11300 cat conftest.err
>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try
='test -z "$ac_c_werror_flag"
11304 || test ! -s conftest.err'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try
='test -s conftest.$ac_objext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 ac_header_compiler
=yes
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.
$ac_ext >&5
11321 ac_header_compiler
=no
11323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11325 echo "${ECHO_T}$ac_header_compiler" >&6
11327 # Is the header present?
11328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11330 cat >conftest.
$ac_ext <<_ACEOF
11333 cat confdefs.h
>>conftest.
$ac_ext
11334 cat >>conftest.
$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 #include <$ac_header>
11338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11339 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11341 grep -v '^ *+' conftest.er1
>conftest.err
11343 cat conftest.err
>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev
/null
; then
11346 if test -s conftest.err
; then
11347 ac_cpp_err
=$ac_c_preproc_warn_flag
11348 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11355 if test -z "$ac_cpp_err"; then
11356 ac_header_preproc
=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.
$ac_ext >&5
11361 ac_header_preproc
=no
11363 rm -f conftest.err conftest.
$ac_ext
11364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365 echo "${ECHO_T}$ac_header_preproc" >&6
11367 # So? What about this header?
11368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374 ac_header_preproc
=yes
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11391 ## ------------------------------------------ ##
11392 ## Report this to the AC_PACKAGE_NAME lists. ##
11393 ## ------------------------------------------ ##
11396 sed "s/^/$as_me: WARNING: /" >&2
11399 echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 eval "$as_ac_Header=\$ac_header_preproc"
11406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411 cat >>confdefs.h
<<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11419 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11420 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11421 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11422 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 ac_check_lib_save_LIBS
=$LIBS
11426 LIBS
="-lpng -lz -lm $LIBS"
11427 cat >conftest.
$ac_ext <<_ACEOF
11430 cat confdefs.h
>>conftest.
$ac_ext
11431 cat >>conftest.
$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11434 /* Override any gcc2 internal prototype to avoid an error. */
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11440 char png_get_channels ();
11444 png_get_channels ();
11449 rm -f conftest.
$ac_objext conftest
$ac_exeext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11451 (eval $ac_link) 2>conftest.er1
11453 grep -v '^ *+' conftest.er1
>conftest.err
11455 cat conftest.err
>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try
='test -z "$ac_c_werror_flag"
11459 || test ! -s conftest.err'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try
='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_cv_lib_png_png_get_channels
=yes
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.
$ac_ext >&5
11476 ac_cv_lib_png_png_get_channels
=no
11478 rm -f conftest.err conftest.
$ac_objext \
11479 conftest
$ac_exeext conftest.
$ac_ext
11480 LIBS
=$ac_check_lib_save_LIBS
11482 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11483 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11484 if test $ac_cv_lib_png_png_get_channels = yes; then
11491 if test "${HAVE_PNG}" = "yes"; then
11493 cat >>confdefs.h
<<\_ACEOF
11500 ### Use -ltiff if available, unless `--with-tiff=no'.
11502 if test "${HAVE_X11}" = "yes"; then
11503 if test "${with_tiff}" != "no"; then
11504 if test "${ac_cv_header_tiffio_h+set}" = set; then
11505 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11506 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11507 if test "${ac_cv_header_tiffio_h+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11511 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11513 # Is the header compilable?
11514 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11515 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11516 cat >conftest.
$ac_ext <<_ACEOF
11519 cat confdefs.h
>>conftest.
$ac_ext
11520 cat >>conftest.
$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 $ac_includes_default
11523 #include <tiffio.h>
11525 rm -f conftest.
$ac_objext
11526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11529 grep -v '^ *+' conftest.er1
>conftest.err
11531 cat conftest.err
>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try
='test -z "$ac_c_werror_flag"
11535 || test ! -s conftest.err'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try
='test -s conftest.$ac_objext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_header_compiler
=yes
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.
$ac_ext >&5
11552 ac_header_compiler
=no
11554 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11556 echo "${ECHO_T}$ac_header_compiler" >&6
11558 # Is the header present?
11559 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11560 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11561 cat >conftest.
$ac_ext <<_ACEOF
11564 cat confdefs.h
>>conftest.
$ac_ext
11565 cat >>conftest.
$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <tiffio.h>
11569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11570 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11572 grep -v '^ *+' conftest.er1
>conftest.err
11574 cat conftest.err
>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } >/dev
/null
; then
11577 if test -s conftest.err
; then
11578 ac_cpp_err
=$ac_c_preproc_warn_flag
11579 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11586 if test -z "$ac_cpp_err"; then
11587 ac_header_preproc
=yes
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.
$ac_ext >&5
11592 ac_header_preproc
=no
11594 rm -f conftest.err conftest.
$ac_ext
11595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596 echo "${ECHO_T}$ac_header_preproc" >&6
11598 # So? What about this header?
11599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11601 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11602 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11604 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11605 ac_header_preproc
=yes
11608 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11609 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11611 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11613 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11615 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11617 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11619 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11622 ## ------------------------------------------ ##
11623 ## Report this to the AC_PACKAGE_NAME lists. ##
11624 ## ------------------------------------------ ##
11627 sed "s/^/$as_me: WARNING: /" >&2
11630 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11631 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11632 if test "${ac_cv_header_tiffio_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 ac_cv_header_tiffio_h
=$ac_header_preproc
11637 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11638 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11641 if test $ac_cv_header_tiffio_h = yes; then
11643 # At least one tiff package requires the jpeg library.
11644 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11645 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11646 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11647 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 ac_check_lib_save_LIBS
=$LIBS
11651 LIBS
="-ltiff $tifflibs $LIBS"
11652 cat >conftest.
$ac_ext <<_ACEOF
11655 cat confdefs.h
>>conftest.
$ac_ext
11656 cat >>conftest.
$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11659 /* Override any gcc2 internal prototype to avoid an error. */
11663 /* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11665 char TIFFGetVersion ();
11674 rm -f conftest.
$ac_objext conftest
$ac_exeext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>conftest.er1
11678 grep -v '^ *+' conftest.er1
>conftest.err
11680 cat conftest.err
>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try
='test -z "$ac_c_werror_flag"
11684 || test ! -s conftest.err'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try
='test -s conftest$ac_exeext'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_cv_lib_tiff_TIFFGetVersion
=yes
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.
$ac_ext >&5
11701 ac_cv_lib_tiff_TIFFGetVersion
=no
11703 rm -f conftest.err conftest.
$ac_objext \
11704 conftest
$ac_exeext conftest.
$ac_ext
11705 LIBS
=$ac_check_lib_save_LIBS
11707 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11708 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11709 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11718 if test "${HAVE_TIFF}" = "yes"; then
11720 cat >>confdefs.h
<<\_ACEOF
11721 #define HAVE_TIFF 1
11727 ### Use -lgif if available, unless `--with-gif=no'.
11729 if test "${HAVE_X11}" = "yes"; then
11730 if test "${with_gif}" != "no"; then
11731 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11732 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11733 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11734 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11738 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11740 # Is the header compilable?
11741 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11742 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11743 cat >conftest.
$ac_ext <<_ACEOF
11746 cat confdefs.h
>>conftest.
$ac_ext
11747 cat >>conftest.
$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 $ac_includes_default
11750 #include <gif_lib.h>
11752 rm -f conftest.
$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754 (eval $ac_compile) 2>conftest.er1
11756 grep -v '^ *+' conftest.er1
>conftest.err
11758 cat conftest.err
>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try
='test -z "$ac_c_werror_flag"
11762 || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try
='test -s conftest.$ac_objext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_header_compiler
=yes
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.
$ac_ext >&5
11779 ac_header_compiler
=no
11781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11783 echo "${ECHO_T}$ac_header_compiler" >&6
11785 # Is the header present?
11786 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11787 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11788 cat >conftest.
$ac_ext <<_ACEOF
11791 cat confdefs.h
>>conftest.
$ac_ext
11792 cat >>conftest.
$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 #include <gif_lib.h>
11796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1
>conftest.err
11801 cat conftest.err
>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } >/dev
/null
; then
11804 if test -s conftest.err
; then
11805 ac_cpp_err
=$ac_c_preproc_warn_flag
11806 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11813 if test -z "$ac_cpp_err"; then
11814 ac_header_preproc
=yes
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.
$ac_ext >&5
11819 ac_header_preproc
=no
11821 rm -f conftest.err conftest.
$ac_ext
11822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11823 echo "${ECHO_T}$ac_header_preproc" >&6
11825 # So? What about this header?
11826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11828 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11829 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11831 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11832 ac_header_preproc
=yes
11835 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11836 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11838 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11840 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11842 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11844 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11846 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11849 ## ------------------------------------------ ##
11850 ## Report this to the AC_PACKAGE_NAME lists. ##
11851 ## ------------------------------------------ ##
11854 sed "s/^/$as_me: WARNING: /" >&2
11857 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11858 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11859 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 ac_cv_header_gif_lib_h
=$ac_header_preproc
11864 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11865 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11868 if test $ac_cv_header_gif_lib_h = yes; then
11869 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11870 # Earlier versions can crash Emacs.
11871 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11872 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11873 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 ac_check_lib_save_LIBS
=$LIBS
11877 LIBS
="-lungif $LIBS"
11878 cat >conftest.
$ac_ext <<_ACEOF
11881 cat confdefs.h
>>conftest.
$ac_ext
11882 cat >>conftest.
$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11885 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11891 char EGifPutExtensionLast ();
11895 EGifPutExtensionLast ();
11900 rm -f conftest.
$ac_objext conftest
$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>conftest.er1
11904 grep -v '^ *+' conftest.er1
>conftest.err
11906 cat conftest.err
>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try
='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try
='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.
$ac_ext >&5
11927 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11929 rm -f conftest.err conftest.
$ac_objext \
11930 conftest
$ac_exeext conftest.
$ac_ext
11931 LIBS
=$ac_check_lib_save_LIBS
11933 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11934 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11935 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11944 if test "${HAVE_GIF}" = "yes"; then
11946 cat >>confdefs.h
<<\_ACEOF
11953 ### Use Mac OS X Carbon API to implement GUI.
11955 if test "${with_carbon}" != "no"; then
11956 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11957 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11958 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11959 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11963 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11965 # Is the header compilable?
11966 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11967 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11968 cat >conftest.
$ac_ext <<_ACEOF
11971 cat confdefs.h
>>conftest.
$ac_ext
11972 cat >>conftest.
$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 $ac_includes_default
11975 #include <Carbon/Carbon.h>
11977 rm -f conftest.
$ac_objext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11979 (eval $ac_compile) 2>conftest.er1
11981 grep -v '^ *+' conftest.er1
>conftest.err
11983 cat conftest.err
>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try
='test -z "$ac_c_werror_flag"
11987 || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try
='test -s conftest.$ac_objext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_header_compiler
=yes
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.
$ac_ext >&5
12004 ac_header_compiler
=no
12006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12008 echo "${ECHO_T}$ac_header_compiler" >&6
12010 # Is the header present?
12011 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12012 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12013 cat >conftest.
$ac_ext <<_ACEOF
12016 cat confdefs.h
>>conftest.
$ac_ext
12017 cat >>conftest.
$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 #include <Carbon/Carbon.h>
12021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12024 grep -v '^ *+' conftest.er1
>conftest.err
12026 cat conftest.err
>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } >/dev
/null
; then
12029 if test -s conftest.err
; then
12030 ac_cpp_err
=$ac_c_preproc_warn_flag
12031 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12038 if test -z "$ac_cpp_err"; then
12039 ac_header_preproc
=yes
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.
$ac_ext >&5
12044 ac_header_preproc
=no
12046 rm -f conftest.err conftest.
$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12048 echo "${ECHO_T}$ac_header_preproc" >&6
12050 # So? What about this header?
12051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12053 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12054 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12056 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12057 ac_header_preproc
=yes
12060 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12061 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12063 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12065 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12067 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12069 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12071 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12074 ## ------------------------------------------ ##
12075 ## Report this to the AC_PACKAGE_NAME lists. ##
12076 ## ------------------------------------------ ##
12079 sed "s/^/$as_me: WARNING: /" >&2
12082 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12083 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12084 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
12089 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12090 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12093 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12100 if test "${HAVE_CARBON}" = "yes"; then
12102 cat >>confdefs.h
<<\_ACEOF
12103 #define HAVE_CARBON 1
12107 ## Specify the install directory
12109 if test "${carbon_appdir_x}" != ""; then
12110 case ${carbon_appdir_x} in
12111 y | ye |
yes) carbon_appdir
=/Applications
;;
12112 * ) carbon_appdir
=${carbon_appdir_x} ;;
12115 # We also have mouse menus.
12119 ### Use session management (-lSM -lICE) if available
12121 if test "${HAVE_X11}" = "yes"; then
12122 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12123 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12124 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12125 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12129 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12131 # Is the header compilable?
12132 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12133 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12134 cat >conftest.
$ac_ext <<_ACEOF
12137 cat confdefs.h
>>conftest.
$ac_ext
12138 cat >>conftest.
$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 $ac_includes_default
12141 #include <X11/SM/SMlib.h>
12143 rm -f conftest.
$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1
>conftest.err
12149 cat conftest.err
>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try
='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try
='test -s conftest.$ac_objext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_header_compiler
=yes
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.
$ac_ext >&5
12170 ac_header_compiler
=no
12172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12174 echo "${ECHO_T}$ac_header_compiler" >&6
12176 # Is the header present?
12177 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12178 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12179 cat >conftest.
$ac_ext <<_ACEOF
12182 cat confdefs.h
>>conftest.
$ac_ext
12183 cat >>conftest.
$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12185 #include <X11/SM/SMlib.h>
12187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12188 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12190 grep -v '^ *+' conftest.er1
>conftest.err
12192 cat conftest.err
>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } >/dev
/null
; then
12195 if test -s conftest.err
; then
12196 ac_cpp_err
=$ac_c_preproc_warn_flag
12197 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12204 if test -z "$ac_cpp_err"; then
12205 ac_header_preproc
=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.
$ac_ext >&5
12210 ac_header_preproc
=no
12212 rm -f conftest.err conftest.
$ac_ext
12213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12214 echo "${ECHO_T}$ac_header_preproc" >&6
12216 # So? What about this header?
12217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12219 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12220 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12222 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12223 ac_header_preproc
=yes
12226 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12227 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12229 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12231 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12233 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12235 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12237 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12240 ## ------------------------------------------ ##
12241 ## Report this to the AC_PACKAGE_NAME lists. ##
12242 ## ------------------------------------------ ##
12245 sed "s/^/$as_me: WARNING: /" >&2
12248 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12249 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12250 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12255 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12256 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12259 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12260 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12261 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12262 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 ac_check_lib_save_LIBS
=$LIBS
12266 LIBS
="-lSM -lICE $LIBS"
12267 cat >conftest.
$ac_ext <<_ACEOF
12270 cat confdefs.h
>>conftest.
$ac_ext
12271 cat >>conftest.
$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12274 /* Override any gcc2 internal prototype to avoid an error. */
12278 /* We use char because int might match the return type of a gcc2
12279 builtin and then its argument prototype would still apply. */
12280 char SmcOpenConnection ();
12284 SmcOpenConnection ();
12289 rm -f conftest.
$ac_objext conftest
$ac_exeext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291 (eval $ac_link) 2>conftest.er1
12293 grep -v '^ *+' conftest.er1
>conftest.err
12295 cat conftest.err
>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try
='test -z "$ac_c_werror_flag"
12299 || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try
='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_lib_SM_SmcOpenConnection
=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.
$ac_ext >&5
12316 ac_cv_lib_SM_SmcOpenConnection
=no
12318 rm -f conftest.err conftest.
$ac_objext \
12319 conftest
$ac_exeext conftest.
$ac_ext
12320 LIBS
=$ac_check_lib_save_LIBS
12322 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12323 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12324 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12332 if test "${HAVE_X_SM}" = "yes"; then
12334 cat >>confdefs.h
<<\_ACEOF
12335 #define HAVE_X_SM 1
12340 *) LIBS
="-lSM -lICE $LIBS" ;;
12345 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12346 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12347 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12348 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 cat >conftest.
$ac_ext <<_ACEOF
12354 cat confdefs.h
>>conftest.
$ac_ext
12355 cat >>conftest.
$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12366 rm -f conftest.
$ac_objext conftest
$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>conftest.er1
12370 grep -v '^ *+' conftest.er1
>conftest.err
12372 cat conftest.err
>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try
='test -z "$ac_c_werror_flag"
12376 || test ! -s conftest.err'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try
='test -s conftest$ac_exeext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 emacs_cv_netdb_declares_h_errno
=yes
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.
$ac_ext >&5
12393 emacs_cv_netdb_declares_h_errno
=no
12395 rm -f conftest.err conftest.
$ac_objext \
12396 conftest
$ac_exeext conftest.
$ac_ext
12398 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12399 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12400 if test $emacs_cv_netdb_declares_h_errno = yes; then
12402 cat >>confdefs.h
<<\_ACEOF
12403 #define HAVE_H_ERRNO 1
12408 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12409 # for constant arguments. Useless!
12410 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12411 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12412 if test "${ac_cv_working_alloca_h+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 cat >conftest.
$ac_ext <<_ACEOF
12418 cat confdefs.h
>>conftest.
$ac_ext
12419 cat >>conftest.
$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 #include <alloca.h>
12425 char *p = (char *) alloca (2 * sizeof (int));
12430 rm -f conftest.
$ac_objext conftest
$ac_exeext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>conftest.er1
12434 grep -v '^ *+' conftest.er1
>conftest.err
12436 cat conftest.err
>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try
='test -z "$ac_c_werror_flag"
12440 || test ! -s conftest.err'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try
='test -s conftest$ac_exeext'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_working_alloca_h
=yes
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.
$ac_ext >&5
12457 ac_cv_working_alloca_h
=no
12459 rm -f conftest.err conftest.
$ac_objext \
12460 conftest
$ac_exeext conftest.
$ac_ext
12462 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12463 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12464 if test $ac_cv_working_alloca_h = yes; then
12466 cat >>confdefs.h
<<\_ACEOF
12467 #define HAVE_ALLOCA_H 1
12472 echo "$as_me:$LINENO: checking for alloca" >&5
12473 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12474 if test "${ac_cv_func_alloca_works+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 cat >conftest.
$ac_ext <<_ACEOF
12480 cat confdefs.h
>>conftest.
$ac_ext
12481 cat >>conftest.
$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12484 # define alloca __builtin_alloca
12487 # include <malloc.h>
12488 # define alloca _alloca
12491 # include <alloca.h>
12496 # ifndef alloca /* predefined by HP cc +Olibcalls */
12507 char *p = (char *) alloca (1);
12512 rm -f conftest.
$ac_objext conftest
$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>conftest.er1
12516 grep -v '^ *+' conftest.er1
>conftest.err
12518 cat conftest.err
>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try
='test -z "$ac_c_werror_flag"
12522 || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try
='test -s conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_func_alloca_works
=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.
$ac_ext >&5
12539 ac_cv_func_alloca_works
=no
12541 rm -f conftest.err conftest.
$ac_objext \
12542 conftest
$ac_exeext conftest.
$ac_ext
12544 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12545 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12547 if test $ac_cv_func_alloca_works = yes; then
12549 cat >>confdefs.h
<<\_ACEOF
12550 #define HAVE_ALLOCA 1
12554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12555 # that cause trouble. Some versions do not even contain alloca or
12556 # contain a buggy version. If you still want to use their alloca,
12557 # use ar to extract alloca.o from them instead of compiling alloca.c.
12559 ALLOCA
=alloca.
$ac_objext
12561 cat >>confdefs.h
<<\_ACEOF
12566 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12567 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12568 if test "${ac_cv_os_cray+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 cat >conftest.
$ac_ext <<_ACEOF
12574 cat confdefs.h
>>conftest.
$ac_ext
12575 cat >>conftest.
$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #if defined(CRAY) && ! defined(CRAY2)
12584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12585 $EGREP "webecray" >/dev
/null
2>&1; then
12593 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12594 echo "${ECHO_T}$ac_cv_os_cray" >&6
12595 if test $ac_cv_os_cray = yes; then
12596 for ac_func
in _getb67 GETB67 getb67
; do
12597 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12598 echo "$as_me:$LINENO: checking for $ac_func" >&5
12599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12600 if eval "test \"\${$as_ac_var+set}\" = set"; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 cat >conftest.
$ac_ext <<_ACEOF
12606 cat confdefs.h
>>conftest.
$ac_ext
12607 cat >>conftest.
$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12611 #define $ac_func innocuous_$ac_func
12613 /* System header to define __stub macros and hopefully few prototypes,
12614 which can conflict with char $ac_func (); below.
12615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616 <limits.h> exists even on freestanding compilers. */
12619 # include <limits.h>
12621 # include <assert.h>
12626 /* Override any gcc2 internal prototype to avoid an error. */
12631 /* We use char because int might match the return type of a gcc2
12632 builtin and then its argument prototype would still apply. */
12634 /* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12640 char (*f) () = $ac_func;
12649 return f != $ac_func;
12654 rm -f conftest.
$ac_objext conftest
$ac_exeext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656 (eval $ac_link) 2>conftest.er1
12658 grep -v '^ *+' conftest.er1
>conftest.err
12660 cat conftest.err
>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try
='test -z "$ac_c_werror_flag"
12664 || test ! -s conftest.err'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try
='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 eval "$as_ac_var=yes"
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.
$ac_ext >&5
12681 eval "$as_ac_var=no"
12683 rm -f conftest.err conftest.
$ac_objext \
12684 conftest
$ac_exeext conftest.
$ac_ext
12686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12688 if test `eval echo '${'$as_ac_var'}'` = yes; then
12690 cat >>confdefs.h
<<_ACEOF
12691 #define CRAY_STACKSEG_END $ac_func
12700 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12701 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12702 if test "${ac_cv_c_stack_direction+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 if test "$cross_compiling" = yes; then
12706 ac_cv_c_stack_direction
=0
12708 cat >conftest.
$ac_ext <<_ACEOF
12711 cat confdefs.h
>>conftest.
$ac_ext
12712 cat >>conftest.
$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12715 find_stack_direction ()
12717 static char *addr = 0;
12722 return find_stack_direction ();
12725 return (&dummy > addr) ? 1 : -1;
12731 exit (find_stack_direction () < 0);
12734 rm -f conftest
$ac_exeext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736 (eval $ac_link) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_c_stack_direction
=1
12747 echo "$as_me: program exited with status $ac_status" >&5
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.
$ac_ext >&5
12751 ( exit $ac_status )
12752 ac_cv_c_stack_direction
=-1
12754 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12757 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12758 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12760 cat >>confdefs.h
<<_ACEOF
12761 #define STACK_DIRECTION $ac_cv_c_stack_direction
12768 # fmod, logb, and frexp are found in -lm on most systems.
12769 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12771 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12772 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12773 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 ac_check_lib_save_LIBS
=$LIBS
12778 cat >conftest.
$ac_ext <<_ACEOF
12781 cat confdefs.h
>>conftest.
$ac_ext
12782 cat >>conftest.
$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12785 /* Override any gcc2 internal prototype to avoid an error. */
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12800 rm -f conftest.
$ac_objext conftest
$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>conftest.er1
12804 grep -v '^ *+' conftest.er1
>conftest.err
12806 cat conftest.err
>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try
='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try
='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_lib_m_sqrt
=yes
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.
$ac_ext >&5
12827 ac_cv_lib_m_sqrt
=no
12829 rm -f conftest.err conftest.
$ac_objext \
12830 conftest
$ac_exeext conftest.
$ac_ext
12831 LIBS
=$ac_check_lib_save_LIBS
12833 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12834 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12835 if test $ac_cv_lib_m_sqrt = yes; then
12836 cat >>confdefs.h
<<_ACEOF
12837 #define HAVE_LIBM 1
12845 # Check for mail-locking functions in a "mail" library. Probably this should
12846 # have the same check as for liblockfile below.
12848 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12849 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12850 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 ac_check_lib_save_LIBS
=$LIBS
12854 LIBS
="-lmail $LIBS"
12855 cat >conftest.
$ac_ext <<_ACEOF
12858 cat confdefs.h
>>conftest.
$ac_ext
12859 cat >>conftest.
$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12862 /* Override any gcc2 internal prototype to avoid an error. */
12866 /* We use char because int might match the return type of a gcc2
12867 builtin and then its argument prototype would still apply. */
12877 rm -f conftest.
$ac_objext conftest
$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12881 grep -v '^ *+' conftest.er1
>conftest.err
12883 cat conftest.err
>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try
='test -z "$ac_c_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try
='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_lib_mail_maillock
=yes
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.
$ac_ext >&5
12904 ac_cv_lib_mail_maillock
=no
12906 rm -f conftest.err conftest.
$ac_objext \
12907 conftest
$ac_exeext conftest.
$ac_ext
12908 LIBS
=$ac_check_lib_save_LIBS
12910 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12911 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12912 if test $ac_cv_lib_mail_maillock = yes; then
12913 cat >>confdefs.h
<<_ACEOF
12914 #define HAVE_LIBMAIL 1
12917 LIBS
="-lmail $LIBS"
12922 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12923 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12924 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 ac_check_lib_save_LIBS
=$LIBS
12928 LIBS
="-llockfile $LIBS"
12929 cat >conftest.
$ac_ext <<_ACEOF
12932 cat confdefs.h
>>conftest.
$ac_ext
12933 cat >>conftest.
$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12936 /* Override any gcc2 internal prototype to avoid an error. */
12940 /* We use char because int might match the return type of a gcc2
12941 builtin and then its argument prototype would still apply. */
12951 rm -f conftest.
$ac_objext conftest
$ac_exeext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12953 (eval $ac_link) 2>conftest.er1
12955 grep -v '^ *+' conftest.er1
>conftest.err
12957 cat conftest.err
>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try
='test -z "$ac_c_werror_flag"
12961 || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try
='test -s conftest$ac_exeext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_lib_lockfile_maillock
=yes
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.
$ac_ext >&5
12978 ac_cv_lib_lockfile_maillock
=no
12980 rm -f conftest.err conftest.
$ac_objext \
12981 conftest
$ac_exeext conftest.
$ac_ext
12982 LIBS
=$ac_check_lib_save_LIBS
12984 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12985 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12986 if test $ac_cv_lib_lockfile_maillock = yes; then
12987 cat >>confdefs.h
<<_ACEOF
12988 #define HAVE_LIBLOCKFILE 1
12991 LIBS
="-llockfile $LIBS"
12995 # If we have the shared liblockfile, assume we must use it for mail
12996 # locking (e.g. Debian). If we couldn't link against liblockfile
12997 # (no liblockfile.a installed), ensure that we don't need to.
12998 if test "$ac_cv_lib_lockfile_maillock" = no
; then
12999 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13000 set dummy liblockfile.so
; ac_word
=$2
13001 echo "$as_me:$LINENO: checking for $ac_word" >&5
13002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13003 if test "${ac_cv_prog_liblockfile+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 if test -n "$liblockfile"; then
13007 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13010 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13011 for as_dir
in $as_dummy
13014 test -z "$as_dir" && as_dir
=.
13015 for ac_exec_ext
in '' $ac_executable_extensions; do
13016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13017 ac_cv_prog_liblockfile
="yes"
13018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13027 liblockfile
=$ac_cv_prog_liblockfile
13028 if test -n "$liblockfile"; then
13029 echo "$as_me:$LINENO: result: $liblockfile" >&5
13030 echo "${ECHO_T}$liblockfile" >&6
13032 echo "$as_me:$LINENO: result: no" >&5
13033 echo "${ECHO_T}no" >&6
13036 if test $ac_cv_prog_liblockfile = yes; then
13037 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13038 This probably means that movemail could lose mail.
13039 There may be a \`development' package to install containing liblockfile." >&5
13040 echo "$as_me: error: Shared liblockfile found but can't link against it.
13041 This probably means that movemail could lose mail.
13042 There may be a \`development' package to install containing liblockfile." >&2;}
13043 { (exit 1); exit 1; }; }
13048 for ac_func
in touchlock
13050 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13051 echo "$as_me:$LINENO: checking for $ac_func" >&5
13052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13053 if eval "test \"\${$as_ac_var+set}\" = set"; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 cat >conftest.
$ac_ext <<_ACEOF
13059 cat confdefs.h
>>conftest.
$ac_ext
13060 cat >>conftest.
$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13064 #define $ac_func innocuous_$ac_func
13066 /* System header to define __stub macros and hopefully few prototypes,
13067 which can conflict with char $ac_func (); below.
13068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13069 <limits.h> exists even on freestanding compilers. */
13072 # include <limits.h>
13074 # include <assert.h>
13079 /* Override any gcc2 internal prototype to avoid an error. */
13084 /* We use char because int might match the return type of a gcc2
13085 builtin and then its argument prototype would still apply. */
13087 /* The GNU C library defines this for functions which it implements
13088 to always fail with ENOSYS. Some functions are actually named
13089 something starting with __ and the normal name is an alias. */
13090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13093 char (*f) () = $ac_func;
13102 return f != $ac_func;
13107 rm -f conftest.
$ac_objext conftest
$ac_exeext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>conftest.er1
13111 grep -v '^ *+' conftest.er1
>conftest.err
13113 cat conftest.err
>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try
='test -z "$ac_c_werror_flag"
13117 || test ! -s conftest.err'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try
='test -s conftest$ac_exeext'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13129 eval "$as_ac_var=yes"
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.
$ac_ext >&5
13134 eval "$as_ac_var=no"
13136 rm -f conftest.err conftest.
$ac_objext \
13137 conftest
$ac_exeext conftest.
$ac_ext
13139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13141 if test `eval echo '${'$as_ac_var'}'` = yes; then
13142 cat >>confdefs.h
<<_ACEOF
13143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13150 for ac_header
in maillock.h
13152 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13162 # Is the header compilable?
13163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13165 cat >conftest.
$ac_ext <<_ACEOF
13168 cat confdefs.h
>>conftest.
$ac_ext
13169 cat >>conftest.
$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13172 #include <$ac_header>
13174 rm -f conftest.
$ac_objext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>conftest.er1
13178 grep -v '^ *+' conftest.er1
>conftest.err
13180 cat conftest.err
>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try
='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try
='test -s conftest.$ac_objext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_header_compiler
=yes
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 ac_header_compiler
=no
13203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13205 echo "${ECHO_T}$ac_header_compiler" >&6
13207 # Is the header present?
13208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13210 cat >conftest.
$ac_ext <<_ACEOF
13213 cat confdefs.h
>>conftest.
$ac_ext
13214 cat >>conftest.
$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 #include <$ac_header>
13218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13221 grep -v '^ *+' conftest.er1
>conftest.err
13223 cat conftest.err
>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } >/dev
/null
; then
13226 if test -s conftest.err
; then
13227 ac_cpp_err
=$ac_c_preproc_warn_flag
13228 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13235 if test -z "$ac_cpp_err"; then
13236 ac_header_preproc
=yes
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.
$ac_ext >&5
13241 ac_header_preproc
=no
13243 rm -f conftest.err conftest.
$ac_ext
13244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13245 echo "${ECHO_T}$ac_header_preproc" >&6
13247 # So? What about this header?
13248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13254 ac_header_preproc
=yes
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13271 ## ------------------------------------------ ##
13272 ## Report this to the AC_PACKAGE_NAME lists. ##
13273 ## ------------------------------------------ ##
13276 sed "s/^/$as_me: WARNING: /" >&2
13279 echo "$as_me:$LINENO: checking for $ac_header" >&5
13280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 eval "$as_ac_Header=\$ac_header_preproc"
13286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13291 cat >>confdefs.h
<<_ACEOF
13292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13366 for ac_func
in gethostname getdomainname dup2 \
13367 rename closedir mkdir
rmdir sysinfo \
13368 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13369 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13370 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13371 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13372 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13373 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13374 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13376 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13377 echo "$as_me:$LINENO: checking for $ac_func" >&5
13378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13379 if eval "test \"\${$as_ac_var+set}\" = set"; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 cat >conftest.
$ac_ext <<_ACEOF
13385 cat confdefs.h
>>conftest.
$ac_ext
13386 cat >>conftest.
$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13390 #define $ac_func innocuous_$ac_func
13392 /* System header to define __stub macros and hopefully few prototypes,
13393 which can conflict with char $ac_func (); below.
13394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13395 <limits.h> exists even on freestanding compilers. */
13398 # include <limits.h>
13400 # include <assert.h>
13405 /* Override any gcc2 internal prototype to avoid an error. */
13410 /* We use char because int might match the return type of a gcc2
13411 builtin and then its argument prototype would still apply. */
13413 /* The GNU C library defines this for functions which it implements
13414 to always fail with ENOSYS. Some functions are actually named
13415 something starting with __ and the normal name is an alias. */
13416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13419 char (*f) () = $ac_func;
13428 return f != $ac_func;
13433 rm -f conftest.
$ac_objext conftest
$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>conftest.er1
13437 grep -v '^ *+' conftest.er1
>conftest.err
13439 cat conftest.err
>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try
='test -z "$ac_c_werror_flag"
13443 || test ! -s conftest.err'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try
='test -s conftest$ac_exeext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 eval "$as_ac_var=yes"
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.
$ac_ext >&5
13460 eval "$as_ac_var=no"
13462 rm -f conftest.err conftest.
$ac_objext \
13463 conftest
$ac_exeext conftest.
$ac_ext
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13467 if test `eval echo '${'$as_ac_var'}'` = yes; then
13468 cat >>confdefs.h
<<_ACEOF
13469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477 for ac_header
in sys
/un.h
13479 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13481 echo "$as_me:$LINENO: checking for $ac_header" >&5
13482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13489 # Is the header compilable?
13490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13492 cat >conftest.
$ac_ext <<_ACEOF
13495 cat confdefs.h
>>conftest.
$ac_ext
13496 cat >>conftest.
$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 $ac_includes_default
13499 #include <$ac_header>
13501 rm -f conftest.
$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>conftest.er1
13505 grep -v '^ *+' conftest.er1
>conftest.err
13507 cat conftest.err
>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try
='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try
='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_header_compiler
=yes
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.
$ac_ext >&5
13528 ac_header_compiler
=no
13530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13532 echo "${ECHO_T}$ac_header_compiler" >&6
13534 # Is the header present?
13535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13537 cat >conftest.
$ac_ext <<_ACEOF
13540 cat confdefs.h
>>conftest.
$ac_ext
13541 cat >>conftest.
$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 #include <$ac_header>
13545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13546 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13548 grep -v '^ *+' conftest.er1
>conftest.err
13550 cat conftest.err
>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } >/dev
/null
; then
13553 if test -s conftest.err
; then
13554 ac_cpp_err
=$ac_c_preproc_warn_flag
13555 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13562 if test -z "$ac_cpp_err"; then
13563 ac_header_preproc
=yes
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.
$ac_ext >&5
13568 ac_header_preproc
=no
13570 rm -f conftest.err conftest.
$ac_ext
13571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572 echo "${ECHO_T}$ac_header_preproc" >&6
13574 # So? What about this header?
13575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13581 ac_header_preproc
=yes
13584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13598 ## ------------------------------------------ ##
13599 ## Report this to the AC_PACKAGE_NAME lists. ##
13600 ## ------------------------------------------ ##
13603 sed "s/^/$as_me: WARNING: /" >&2
13606 echo "$as_me:$LINENO: checking for $ac_header" >&5
13607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 eval "$as_ac_Header=\$ac_header_preproc"
13613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13618 cat >>confdefs.h
<<_ACEOF
13619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13630 for ac_header
in stdlib.h sys
/time.h unistd.h
13632 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13634 echo "$as_me:$LINENO: checking for $ac_header" >&5
13635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13642 # Is the header compilable?
13643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13645 cat >conftest.
$ac_ext <<_ACEOF
13648 cat confdefs.h
>>conftest.
$ac_ext
13649 cat >>conftest.
$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 $ac_includes_default
13652 #include <$ac_header>
13654 rm -f conftest.
$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>conftest.er1
13658 grep -v '^ *+' conftest.er1
>conftest.err
13660 cat conftest.err
>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try
='test -z "$ac_c_werror_flag"
13664 || test ! -s conftest.err'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try
='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_header_compiler
=yes
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.
$ac_ext >&5
13681 ac_header_compiler
=no
13683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13685 echo "${ECHO_T}$ac_header_compiler" >&6
13687 # Is the header present?
13688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13690 cat >conftest.
$ac_ext <<_ACEOF
13693 cat confdefs.h
>>conftest.
$ac_ext
13694 cat >>conftest.
$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13696 #include <$ac_header>
13698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13699 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13701 grep -v '^ *+' conftest.er1
>conftest.err
13703 cat conftest.err
>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } >/dev
/null
; then
13706 if test -s conftest.err
; then
13707 ac_cpp_err
=$ac_c_preproc_warn_flag
13708 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13715 if test -z "$ac_cpp_err"; then
13716 ac_header_preproc
=yes
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.
$ac_ext >&5
13721 ac_header_preproc
=no
13723 rm -f conftest.err conftest.
$ac_ext
13724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13725 echo "${ECHO_T}$ac_header_preproc" >&6
13727 # So? What about this header?
13728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13734 ac_header_preproc
=yes
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13751 ## ------------------------------------------ ##
13752 ## Report this to the AC_PACKAGE_NAME lists. ##
13753 ## ------------------------------------------ ##
13756 sed "s/^/$as_me: WARNING: /" >&2
13759 echo "$as_me:$LINENO: checking for $ac_header" >&5
13760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 eval "$as_ac_Header=\$ac_header_preproc"
13766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13771 cat >>confdefs.h
<<_ACEOF
13772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13780 for ac_func
in alarm
13782 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13783 echo "$as_me:$LINENO: checking for $ac_func" >&5
13784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13785 if eval "test \"\${$as_ac_var+set}\" = set"; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 cat >conftest.
$ac_ext <<_ACEOF
13791 cat confdefs.h
>>conftest.
$ac_ext
13792 cat >>conftest.
$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13796 #define $ac_func innocuous_$ac_func
13798 /* System header to define __stub macros and hopefully few prototypes,
13799 which can conflict with char $ac_func (); below.
13800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13801 <limits.h> exists even on freestanding compilers. */
13804 # include <limits.h>
13806 # include <assert.h>
13811 /* Override any gcc2 internal prototype to avoid an error. */
13816 /* We use char because int might match the return type of a gcc2
13817 builtin and then its argument prototype would still apply. */
13819 /* The GNU C library defines this for functions which it implements
13820 to always fail with ENOSYS. Some functions are actually named
13821 something starting with __ and the normal name is an alias. */
13822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13825 char (*f) () = $ac_func;
13834 return f != $ac_func;
13839 rm -f conftest.
$ac_objext conftest
$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13843 grep -v '^ *+' conftest.er1
>conftest.err
13845 cat conftest.err
>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try
='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try
='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 eval "$as_ac_var=yes"
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.
$ac_ext >&5
13866 eval "$as_ac_var=no"
13868 rm -f conftest.err conftest.
$ac_objext \
13869 conftest
$ac_exeext conftest.
$ac_ext
13871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13873 if test `eval echo '${'$as_ac_var'}'` = yes; then
13874 cat >>confdefs.h
<<_ACEOF
13875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13881 echo "$as_me:$LINENO: checking for working mktime" >&5
13882 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13883 if test "${ac_cv_func_working_mktime+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 if test "$cross_compiling" = yes; then
13887 ac_cv_func_working_mktime
=no
13889 cat >conftest.
$ac_ext <<_ACEOF
13892 cat confdefs.h
>>conftest.
$ac_ext
13893 cat >>conftest.
$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 /* Test program from Paul Eggert and Tony Leneis. */
13896 #if TIME_WITH_SYS_TIME
13897 # include <sys/time.h>
13900 # if HAVE_SYS_TIME_H
13901 # include <sys/time.h>
13908 # include <stdlib.h>
13912 # include <unistd.h>
13916 # define alarm(X) /* empty */
13919 /* Work around redefinition to rpl_putenv by other config tests. */
13922 static time_t time_t_max;
13923 static time_t time_t_min;
13925 /* Values we'll use to set the TZ environment variable. */
13926 static char *tz_strings[] = {
13927 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13928 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13930 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13932 /* Fail if mktime fails to convert a date in the spring-forward gap.
13933 Based on a problem report from Andreas Jaeger. */
13935 spring_forward_gap ()
13937 /* glibc (up to about 1998-10-07) failed this test. */
13940 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13941 instead of "TZ=America/Vancouver" in order to detect the bug even
13942 on systems that don't support the Olson extension, or don't have the
13943 full zoneinfo tables installed. */
13944 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13953 if (mktime (&tm) == (time_t)-1)
13962 if ((lt = localtime (&now)) && mktime (lt) != now)
13970 mktime_test1 (now);
13971 mktime_test1 ((time_t) (time_t_max - now));
13972 mktime_test1 ((time_t) (time_t_min + now));
13978 /* Based on code from Ariel Faigon. */
13988 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13998 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13999 now = mktime (&tm);
14000 if (now != (time_t) -1)
14002 struct tm *lt = localtime (&now);
14004 && lt->tm_year == tm.tm_year
14005 && lt->tm_mon == tm.tm_mon
14006 && lt->tm_mday == tm.tm_mday
14007 && lt->tm_hour == tm.tm_hour
14008 && lt->tm_min == tm.tm_min
14009 && lt->tm_sec == tm.tm_sec
14010 && lt->tm_yday == tm.tm_yday
14011 && lt->tm_wday == tm.tm_wday
14012 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14013 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14024 /* This test makes some buggy mktime implementations loop.
14025 Give up after 60 seconds; a mktime slower than that
14026 isn't worth using anyway. */
14029 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14032 if ((time_t) -1 < 0)
14033 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14035 delta = time_t_max / 997; /* a suitable prime number */
14036 for (i = 0; i < N_STRINGS; i++)
14039 putenv (tz_strings[i]);
14041 for (t = 0; t <= time_t_max - delta; t += delta)
14043 mktime_test ((time_t) 1);
14044 mktime_test ((time_t) (60 * 60));
14045 mktime_test ((time_t) (60 * 60 * 24));
14047 for (j = 1; 0 < j; j *= 2)
14049 bigtime_test (j - 1);
14052 spring_forward_gap ();
14056 rm -f conftest
$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_func_working_mktime
=yes
14069 echo "$as_me: program exited with status $ac_status" >&5
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.
$ac_ext >&5
14073 ( exit $ac_status )
14074 ac_cv_func_working_mktime
=no
14076 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14079 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14080 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14081 if test $ac_cv_func_working_mktime = no
; then
14083 "mktime.$ac_objext" | \
14084 *" mktime.$ac_objext" | \
14085 "mktime.$ac_objext "* | \
14086 *" mktime.$ac_objext "* ) ;;
14087 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14092 if test "$ac_cv_func_working_mktime" = no
; then
14094 cat >>confdefs.h
<<\_ACEOF
14095 #define BROKEN_MKTIME 1
14100 ac_have_func
=no
# yes means we've found a way to get the load average.
14102 # Make sure getloadavg.c is where it belongs, at configure-time.
14103 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14104 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14105 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14106 { (exit 1); exit 1; }; }
14110 # Check for getloadavg, but be sure not to touch the cache variable.
14111 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14112 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14113 if test "${ac_cv_func_getloadavg+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 cat >conftest.
$ac_ext <<_ACEOF
14119 cat confdefs.h
>>conftest.
$ac_ext
14120 cat >>conftest.
$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14124 #define getloadavg innocuous_getloadavg
14126 /* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char getloadavg (); below.
14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129 <limits.h> exists even on freestanding compilers. */
14132 # include <limits.h>
14134 # include <assert.h>
14139 /* Override any gcc2 internal prototype to avoid an error. */
14144 /* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14146 char getloadavg ();
14147 /* The GNU C library defines this for functions which it implements
14148 to always fail with ENOSYS. Some functions are actually named
14149 something starting with __ and the normal name is an alias. */
14150 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14153 char (*f) () = getloadavg;
14162 return f != getloadavg;
14167 rm -f conftest.
$ac_objext conftest
$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>conftest.er1
14171 grep -v '^ *+' conftest.er1
>conftest.err
14173 cat conftest.err
>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try
='test -z "$ac_c_werror_flag"
14177 || test ! -s conftest.err'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try
='test -s conftest$ac_exeext'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 ac_cv_func_getloadavg
=yes
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.
$ac_ext >&5
14194 ac_cv_func_getloadavg
=no
14196 rm -f conftest.err conftest.
$ac_objext \
14197 conftest
$ac_exeext conftest.
$ac_ext
14199 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14200 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14201 if test $ac_cv_func_getloadavg = yes; then
14206 ) && ac_have_func
=yes
14208 # On HPUX9, an unprivileged user can get load averages through this function.
14210 for ac_func
in pstat_getdynamic
14212 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14213 echo "$as_me:$LINENO: checking for $ac_func" >&5
14214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14215 if eval "test \"\${$as_ac_var+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 cat >conftest.
$ac_ext <<_ACEOF
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14226 #define $ac_func innocuous_$ac_func
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char $ac_func (); below.
14230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14231 <limits.h> exists even on freestanding compilers. */
14234 # include <limits.h>
14236 # include <assert.h>
14241 /* Override any gcc2 internal prototype to avoid an error. */
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14249 /* The GNU C library defines this for functions which it implements
14250 to always fail with ENOSYS. Some functions are actually named
14251 something starting with __ and the normal name is an alias. */
14252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14255 char (*f) () = $ac_func;
14264 return f != $ac_func;
14269 rm -f conftest.
$ac_objext conftest
$ac_exeext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14271 (eval $ac_link) 2>conftest.er1
14273 grep -v '^ *+' conftest.er1
>conftest.err
14275 cat conftest.err
>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try
='test -z "$ac_c_werror_flag"
14279 || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try
='test -s conftest$ac_exeext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 eval "$as_ac_var=yes"
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.
$ac_ext >&5
14296 eval "$as_ac_var=no"
14298 rm -f conftest.err conftest.
$ac_objext \
14299 conftest
$ac_exeext conftest.
$ac_ext
14301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14303 if test `eval echo '${'$as_ac_var'}'` = yes; then
14304 cat >>confdefs.h
<<_ACEOF
14305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14312 # Solaris has libkstat which does not require root.
14314 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14315 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14316 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 ac_check_lib_save_LIBS
=$LIBS
14320 LIBS
="-lkstat $LIBS"
14321 cat >conftest.
$ac_ext <<_ACEOF
14324 cat confdefs.h
>>conftest.
$ac_ext
14325 cat >>conftest.
$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14328 /* Override any gcc2 internal prototype to avoid an error. */
14332 /* We use char because int might match the return type of a gcc2
14333 builtin and then its argument prototype would still apply. */
14334 char kstat_open ();
14343 rm -f conftest.
$ac_objext conftest
$ac_exeext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14345 (eval $ac_link) 2>conftest.er1
14347 grep -v '^ *+' conftest.er1
>conftest.err
14349 cat conftest.err
>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
14352 { ac_try
='test -z "$ac_c_werror_flag"
14353 || test ! -s conftest.err'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; } &&
14359 { ac_try
='test -s conftest$ac_exeext'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }; then
14365 ac_cv_lib_kstat_kstat_open
=yes
14367 echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.
$ac_ext >&5
14370 ac_cv_lib_kstat_kstat_open
=no
14372 rm -f conftest.err conftest.
$ac_objext \
14373 conftest
$ac_exeext conftest.
$ac_ext
14374 LIBS
=$ac_check_lib_save_LIBS
14376 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14377 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14378 if test $ac_cv_lib_kstat_kstat_open = yes; then
14379 cat >>confdefs.h
<<_ACEOF
14380 #define HAVE_LIBKSTAT 1
14383 LIBS
="-lkstat $LIBS"
14387 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14389 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14390 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14391 # to get the right answer into the cache.
14392 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14393 if test $ac_have_func = no
; then
14394 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14395 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14396 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 ac_check_lib_save_LIBS
=$LIBS
14401 cat >conftest.
$ac_ext <<_ACEOF
14404 cat confdefs.h
>>conftest.
$ac_ext
14405 cat >>conftest.
$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14408 /* Override any gcc2 internal prototype to avoid an error. */
14412 /* We use char because int might match the return type of a gcc2
14413 builtin and then its argument prototype would still apply. */
14423 rm -f conftest.
$ac_objext conftest
$ac_exeext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>conftest.er1
14427 grep -v '^ *+' conftest.er1
>conftest.err
14429 cat conftest.err
>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try
='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try
='test -s conftest$ac_exeext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 ac_cv_lib_elf_elf_begin
=yes
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.
$ac_ext >&5
14450 ac_cv_lib_elf_elf_begin
=no
14452 rm -f conftest.err conftest.
$ac_objext \
14453 conftest
$ac_exeext conftest.
$ac_ext
14454 LIBS
=$ac_check_lib_save_LIBS
14456 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14457 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14458 if test $ac_cv_lib_elf_elf_begin = yes; then
14463 if test $ac_have_func = no
; then
14464 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14465 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14466 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 ac_check_lib_save_LIBS
=$LIBS
14471 cat >conftest.
$ac_ext <<_ACEOF
14474 cat confdefs.h
>>conftest.
$ac_ext
14475 cat >>conftest.
$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14478 /* Override any gcc2 internal prototype to avoid an error. */
14482 /* We use char because int might match the return type of a gcc2
14483 builtin and then its argument prototype would still apply. */
14493 rm -f conftest.
$ac_objext conftest
$ac_exeext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14495 (eval $ac_link) 2>conftest.er1
14497 grep -v '^ *+' conftest.er1
>conftest.err
14499 cat conftest.err
>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
14502 { ac_try
='test -z "$ac_c_werror_flag"
14503 || test ! -s conftest.err'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; } &&
14509 { ac_try
='test -s conftest$ac_exeext'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; }; then
14515 ac_cv_lib_kvm_kvm_open
=yes
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.
$ac_ext >&5
14520 ac_cv_lib_kvm_kvm_open
=no
14522 rm -f conftest.err conftest.
$ac_objext \
14523 conftest
$ac_exeext conftest.
$ac_ext
14524 LIBS
=$ac_check_lib_save_LIBS
14526 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14527 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14528 if test $ac_cv_lib_kvm_kvm_open = yes; then
14532 # Check for the 4.4BSD definition of getloadavg.
14533 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14534 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14535 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 ac_check_lib_save_LIBS
=$LIBS
14539 LIBS
="-lutil $LIBS"
14540 cat >conftest.
$ac_ext <<_ACEOF
14543 cat confdefs.h
>>conftest.
$ac_ext
14544 cat >>conftest.
$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14547 /* Override any gcc2 internal prototype to avoid an error. */
14551 /* We use char because int might match the return type of a gcc2
14552 builtin and then its argument prototype would still apply. */
14553 char getloadavg ();
14562 rm -f conftest.
$ac_objext conftest
$ac_exeext
14563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14564 (eval $ac_link) 2>conftest.er1
14566 grep -v '^ *+' conftest.er1
>conftest.err
14568 cat conftest.err
>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try
='test -z "$ac_c_werror_flag"
14572 || test ! -s conftest.err'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; } &&
14578 { ac_try
='test -s conftest$ac_exeext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 ac_cv_lib_util_getloadavg
=yes
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.
$ac_ext >&5
14589 ac_cv_lib_util_getloadavg
=no
14591 rm -f conftest.err conftest.
$ac_objext \
14592 conftest
$ac_exeext conftest.
$ac_ext
14593 LIBS
=$ac_check_lib_save_LIBS
14595 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14596 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14597 if test $ac_cv_lib_util_getloadavg = yes; then
14598 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14603 if test $ac_have_func = no
; then
14604 # There is a commonly available library for RS/6000 AIX.
14605 # Since it is not a standard part of AIX, it might be installed locally.
14606 ac_getloadavg_LIBS
=$LIBS
14607 LIBS
="-L/usr/local/lib $LIBS"
14608 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14609 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14610 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 ac_check_lib_save_LIBS
=$LIBS
14614 LIBS
="-lgetloadavg $LIBS"
14615 cat >conftest.
$ac_ext <<_ACEOF
14618 cat confdefs.h
>>conftest.
$ac_ext
14619 cat >>conftest.
$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14622 /* Override any gcc2 internal prototype to avoid an error. */
14626 /* We use char because int might match the return type of a gcc2
14627 builtin and then its argument prototype would still apply. */
14628 char getloadavg ();
14637 rm -f conftest.
$ac_objext conftest
$ac_exeext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14639 (eval $ac_link) 2>conftest.er1
14641 grep -v '^ *+' conftest.er1
>conftest.err
14643 cat conftest.err
>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
14646 { ac_try
='test -z "$ac_c_werror_flag"
14647 || test ! -s conftest.err'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try
='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_lib_getloadavg_getloadavg
=yes
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.
$ac_ext >&5
14664 ac_cv_lib_getloadavg_getloadavg
=no
14666 rm -f conftest.err conftest.
$ac_objext \
14667 conftest
$ac_exeext conftest.
$ac_ext
14668 LIBS
=$ac_check_lib_save_LIBS
14670 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14671 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14672 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14673 LIBS
="-lgetloadavg $LIBS"
14675 LIBS
=$ac_getloadavg_LIBS
14680 # Make sure it is really in the library, if we think we found it,
14681 # otherwise set up the replacement function.
14683 for ac_func
in getloadavg
14685 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14686 echo "$as_me:$LINENO: checking for $ac_func" >&5
14687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14688 if eval "test \"\${$as_ac_var+set}\" = set"; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 cat >conftest.
$ac_ext <<_ACEOF
14694 cat confdefs.h
>>conftest.
$ac_ext
14695 cat >>conftest.
$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14699 #define $ac_func innocuous_$ac_func
14701 /* System header to define __stub macros and hopefully few prototypes,
14702 which can conflict with char $ac_func (); below.
14703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14704 <limits.h> exists even on freestanding compilers. */
14707 # include <limits.h>
14709 # include <assert.h>
14714 /* Override any gcc2 internal prototype to avoid an error. */
14719 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14722 /* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14728 char (*f) () = $ac_func;
14737 return f != $ac_func;
14742 rm -f conftest.
$ac_objext conftest
$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1
>conftest.err
14748 cat conftest.err
>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try
='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try
='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 eval "$as_ac_var=yes"
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.
$ac_ext >&5
14769 eval "$as_ac_var=no"
14771 rm -f conftest.err conftest.
$ac_objext \
14772 conftest
$ac_exeext conftest.
$ac_ext
14774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777 cat >>confdefs.h
<<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14783 "getloadavg.$ac_objext" | \
14784 *" getloadavg.$ac_objext" | \
14785 "getloadavg.$ac_objext "* | \
14786 *" getloadavg.$ac_objext "* ) ;;
14787 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
14791 cat >>confdefs.h
<<\_ACEOF
14792 #define C_GETLOADAVG 1
14795 # Figure out what our getloadavg.c needs.
14797 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14798 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14799 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14800 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14804 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14806 # Is the header compilable?
14807 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14808 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14809 cat >conftest.
$ac_ext <<_ACEOF
14812 cat confdefs.h
>>conftest.
$ac_ext
14813 cat >>conftest.
$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 $ac_includes_default
14816 #include <sys/dg_sys_info.h>
14818 rm -f conftest.
$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>conftest.er1
14822 grep -v '^ *+' conftest.er1
>conftest.err
14824 cat conftest.err
>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try
='test -z "$ac_c_werror_flag"
14828 || test ! -s conftest.err'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try
='test -s conftest.$ac_objext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_header_compiler
=yes
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.
$ac_ext >&5
14845 ac_header_compiler
=no
14847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14849 echo "${ECHO_T}$ac_header_compiler" >&6
14851 # Is the header present?
14852 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14853 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14854 cat >conftest.
$ac_ext <<_ACEOF
14857 cat confdefs.h
>>conftest.
$ac_ext
14858 cat >>conftest.
$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 #include <sys/dg_sys_info.h>
14862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14863 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14865 grep -v '^ *+' conftest.er1
>conftest.err
14867 cat conftest.err
>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } >/dev
/null
; then
14870 if test -s conftest.err
; then
14871 ac_cpp_err
=$ac_c_preproc_warn_flag
14872 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14879 if test -z "$ac_cpp_err"; then
14880 ac_header_preproc
=yes
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.
$ac_ext >&5
14885 ac_header_preproc
=no
14887 rm -f conftest.err conftest.
$ac_ext
14888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14889 echo "${ECHO_T}$ac_header_preproc" >&6
14891 # So? What about this header?
14892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14894 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14895 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14897 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14898 ac_header_preproc
=yes
14901 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14902 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14904 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14906 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14908 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14910 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14912 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14915 ## ------------------------------------------ ##
14916 ## Report this to the AC_PACKAGE_NAME lists. ##
14917 ## ------------------------------------------ ##
14920 sed "s/^/$as_me: WARNING: /" >&2
14923 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14924 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14925 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14930 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14931 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14934 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14937 cat >>confdefs.h
<<\_ACEOF
14942 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14943 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14944 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 ac_check_lib_save_LIBS
=$LIBS
14949 cat >conftest.
$ac_ext <<_ACEOF
14952 cat confdefs.h
>>conftest.
$ac_ext
14953 cat >>conftest.
$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14956 /* Override any gcc2 internal prototype to avoid an error. */
14960 /* We use char because int might match the return type of a gcc2
14961 builtin and then its argument prototype would still apply. */
14962 char dg_sys_info ();
14971 rm -f conftest.
$ac_objext conftest
$ac_exeext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14973 (eval $ac_link) 2>conftest.er1
14975 grep -v '^ *+' conftest.er1
>conftest.err
14977 cat conftest.err
>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try
='test -z "$ac_c_werror_flag"
14981 || test ! -s conftest.err'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; } &&
14987 { ac_try
='test -s conftest$ac_exeext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 ac_cv_lib_dgc_dg_sys_info
=yes
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.
$ac_ext >&5
14998 ac_cv_lib_dgc_dg_sys_info
=no
15000 rm -f conftest.err conftest.
$ac_objext \
15001 conftest
$ac_exeext conftest.
$ac_ext
15002 LIBS
=$ac_check_lib_save_LIBS
15004 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15005 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15006 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15007 cat >>confdefs.h
<<_ACEOF
15008 #define HAVE_LIBDGC 1
15019 if test "${ac_cv_header_locale_h+set}" = set; then
15020 echo "$as_me:$LINENO: checking for locale.h" >&5
15021 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15022 if test "${ac_cv_header_locale_h+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15026 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15028 # Is the header compilable?
15029 echo "$as_me:$LINENO: checking locale.h usability" >&5
15030 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15031 cat >conftest.
$ac_ext <<_ACEOF
15034 cat confdefs.h
>>conftest.
$ac_ext
15035 cat >>conftest.
$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15038 #include <locale.h>
15040 rm -f conftest.
$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15044 grep -v '^ *+' conftest.er1
>conftest.err
15046 cat conftest.err
>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try
='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try
='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_header_compiler
=yes
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.
$ac_ext >&5
15067 ac_header_compiler
=no
15069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6
15073 # Is the header present?
15074 echo "$as_me:$LINENO: checking locale.h presence" >&5
15075 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15076 cat >conftest.
$ac_ext <<_ACEOF
15079 cat confdefs.h
>>conftest.
$ac_ext
15080 cat >>conftest.
$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <locale.h>
15084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15087 grep -v '^ *+' conftest.er1
>conftest.err
15089 cat conftest.err
>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } >/dev
/null
; then
15092 if test -s conftest.err
; then
15093 ac_cpp_err
=$ac_c_preproc_warn_flag
15094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15101 if test -z "$ac_cpp_err"; then
15102 ac_header_preproc
=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.
$ac_ext >&5
15107 ac_header_preproc
=no
15109 rm -f conftest.err conftest.
$ac_ext
15110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15116 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15117 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15119 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15120 ac_header_preproc
=yes
15123 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15124 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15126 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15128 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15130 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15134 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15137 ## ------------------------------------------ ##
15138 ## Report this to the AC_PACKAGE_NAME lists. ##
15139 ## ------------------------------------------ ##
15142 sed "s/^/$as_me: WARNING: /" >&2
15145 echo "$as_me:$LINENO: checking for locale.h" >&5
15146 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15147 if test "${ac_cv_header_locale_h+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 ac_cv_header_locale_h
=$ac_header_preproc
15152 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15153 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15159 for ac_func
in setlocale
15161 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15162 echo "$as_me:$LINENO: checking for $ac_func" >&5
15163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15164 if eval "test \"\${$as_ac_var+set}\" = set"; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 cat >conftest.
$ac_ext <<_ACEOF
15170 cat confdefs.h
>>conftest.
$ac_ext
15171 cat >>conftest.
$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15175 #define $ac_func innocuous_$ac_func
15177 /* System header to define __stub macros and hopefully few prototypes,
15178 which can conflict with char $ac_func (); below.
15179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15180 <limits.h> exists even on freestanding compilers. */
15183 # include <limits.h>
15185 # include <assert.h>
15190 /* Override any gcc2 internal prototype to avoid an error. */
15195 /* We use char because int might match the return type of a gcc2
15196 builtin and then its argument prototype would still apply. */
15198 /* The GNU C library defines this for functions which it implements
15199 to always fail with ENOSYS. Some functions are actually named
15200 something starting with __ and the normal name is an alias. */
15201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15204 char (*f) () = $ac_func;
15213 return f != $ac_func;
15218 rm -f conftest.
$ac_objext conftest
$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>conftest.er1
15222 grep -v '^ *+' conftest.er1
>conftest.err
15224 cat conftest.err
>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try
='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try
='test -s conftest$ac_exeext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 eval "$as_ac_var=yes"
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.
$ac_ext >&5
15245 eval "$as_ac_var=no"
15247 rm -f conftest.err conftest.
$ac_objext \
15248 conftest
$ac_exeext conftest.
$ac_ext
15250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15252 if test `eval echo '${'$as_ac_var'}'` = yes; then
15253 cat >>confdefs.h
<<_ACEOF
15254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15261 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15262 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15263 # Irix 4.0.5F has the header but not the library.
15264 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15267 cat >>confdefs.h
<<\_ACEOF
15273 if test $ac_have_func = no
; then
15274 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15275 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15276 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15277 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15281 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15283 # Is the header compilable?
15284 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15285 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15286 cat >conftest.
$ac_ext <<_ACEOF
15289 cat confdefs.h
>>conftest.
$ac_ext
15290 cat >>conftest.
$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 $ac_includes_default
15293 #include <inq_stats/cpustats.h>
15295 rm -f conftest.
$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>conftest.er1
15299 grep -v '^ *+' conftest.er1
>conftest.err
15301 cat conftest.err
>&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try
='test -z "$ac_c_werror_flag"
15305 || test ! -s conftest.err'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } &&
15311 { ac_try
='test -s conftest.$ac_objext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_header_compiler
=yes
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.
$ac_ext >&5
15322 ac_header_compiler
=no
15324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15326 echo "${ECHO_T}$ac_header_compiler" >&6
15328 # Is the header present?
15329 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15330 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15331 cat >conftest.
$ac_ext <<_ACEOF
15334 cat confdefs.h
>>conftest.
$ac_ext
15335 cat >>conftest.
$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 #include <inq_stats/cpustats.h>
15339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15340 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15342 grep -v '^ *+' conftest.er1
>conftest.err
15344 cat conftest.err
>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } >/dev
/null
; then
15347 if test -s conftest.err
; then
15348 ac_cpp_err
=$ac_c_preproc_warn_flag
15349 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15356 if test -z "$ac_cpp_err"; then
15357 ac_header_preproc
=yes
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.
$ac_ext >&5
15362 ac_header_preproc
=no
15364 rm -f conftest.err conftest.
$ac_ext
15365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15366 echo "${ECHO_T}$ac_header_preproc" >&6
15368 # So? What about this header?
15369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15371 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15372 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15374 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15375 ac_header_preproc
=yes
15378 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15379 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15380 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15381 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15383 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15385 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15387 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15389 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15392 ## ------------------------------------------ ##
15393 ## Report this to the AC_PACKAGE_NAME lists. ##
15394 ## ------------------------------------------ ##
15397 sed "s/^/$as_me: WARNING: /" >&2
15400 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15401 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15402 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15407 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15408 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15411 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15414 cat >>confdefs.h
<<\_ACEOF
15419 cat >>confdefs.h
<<\_ACEOF
15428 if test $ac_have_func = no
; then
15429 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15430 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15431 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15432 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15436 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15438 # Is the header compilable?
15439 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15440 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15441 cat >conftest.
$ac_ext <<_ACEOF
15444 cat confdefs.h
>>conftest.
$ac_ext
15445 cat >>conftest.
$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 $ac_includes_default
15448 #include <sys/cpustats.h>
15450 rm -f conftest.
$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452 (eval $ac_compile) 2>conftest.er1
15454 grep -v '^ *+' conftest.er1
>conftest.err
15456 cat conftest.err
>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try
='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try
='test -s conftest.$ac_objext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_header_compiler
=yes
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.
$ac_ext >&5
15477 ac_header_compiler
=no
15479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15481 echo "${ECHO_T}$ac_header_compiler" >&6
15483 # Is the header present?
15484 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15485 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15486 cat >conftest.
$ac_ext <<_ACEOF
15489 cat confdefs.h
>>conftest.
$ac_ext
15490 cat >>conftest.
$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 #include <sys/cpustats.h>
15494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15495 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15497 grep -v '^ *+' conftest.er1
>conftest.err
15499 cat conftest.err
>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } >/dev
/null
; then
15502 if test -s conftest.err
; then
15503 ac_cpp_err
=$ac_c_preproc_warn_flag
15504 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15511 if test -z "$ac_cpp_err"; then
15512 ac_header_preproc
=yes
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.
$ac_ext >&5
15517 ac_header_preproc
=no
15519 rm -f conftest.err conftest.
$ac_ext
15520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15521 echo "${ECHO_T}$ac_header_preproc" >&6
15523 # So? What about this header?
15524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15526 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15527 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15529 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15530 ac_header_preproc
=yes
15533 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15534 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15536 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15538 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15540 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15542 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15543 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15544 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15547 ## ------------------------------------------ ##
15548 ## Report this to the AC_PACKAGE_NAME lists. ##
15549 ## ------------------------------------------ ##
15552 sed "s/^/$as_me: WARNING: /" >&2
15555 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15556 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15557 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
15562 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15563 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15566 if test $ac_cv_header_sys_cpustats_h = yes; then
15567 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
15576 if test $ac_have_func = no
; then
15578 for ac_header
in mach
/mach.h
15580 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15582 echo "$as_me:$LINENO: checking for $ac_header" >&5
15583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15590 # Is the header compilable?
15591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15593 cat >conftest.
$ac_ext <<_ACEOF
15596 cat confdefs.h
>>conftest.
$ac_ext
15597 cat >>conftest.
$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 $ac_includes_default
15600 #include <$ac_header>
15602 rm -f conftest.
$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>conftest.er1
15606 grep -v '^ *+' conftest.er1
>conftest.err
15608 cat conftest.err
>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try
='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try
='test -s conftest.$ac_objext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_header_compiler
=yes
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.
$ac_ext >&5
15629 ac_header_compiler
=no
15631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15633 echo "${ECHO_T}$ac_header_compiler" >&6
15635 # Is the header present?
15636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15638 cat >conftest.
$ac_ext <<_ACEOF
15641 cat confdefs.h
>>conftest.
$ac_ext
15642 cat >>conftest.
$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <$ac_header>
15646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15647 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15649 grep -v '^ *+' conftest.er1
>conftest.err
15651 cat conftest.err
>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } >/dev
/null
; then
15654 if test -s conftest.err
; then
15655 ac_cpp_err
=$ac_c_preproc_warn_flag
15656 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15663 if test -z "$ac_cpp_err"; then
15664 ac_header_preproc
=yes
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.
$ac_ext >&5
15669 ac_header_preproc
=no
15671 rm -f conftest.err conftest.
$ac_ext
15672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673 echo "${ECHO_T}$ac_header_preproc" >&6
15675 # So? What about this header?
15676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682 ac_header_preproc
=yes
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15699 ## ------------------------------------------ ##
15700 ## Report this to the AC_PACKAGE_NAME lists. ##
15701 ## ------------------------------------------ ##
15704 sed "s/^/$as_me: WARNING: /" >&2
15707 echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 eval "$as_ac_Header=\$ac_header_preproc"
15714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719 cat >>confdefs.h
<<_ACEOF
15720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15730 for ac_header
in nlist.h
15732 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15734 echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15742 # Is the header compilable?
15743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15745 cat >conftest.
$ac_ext <<_ACEOF
15748 cat confdefs.h
>>conftest.
$ac_ext
15749 cat >>conftest.
$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 $ac_includes_default
15752 #include <$ac_header>
15754 rm -f conftest.
$ac_objext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756 (eval $ac_compile) 2>conftest.er1
15758 grep -v '^ *+' conftest.er1
>conftest.err
15760 cat conftest.err
>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try
='test -z "$ac_c_werror_flag"
15764 || test ! -s conftest.err'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; } &&
15770 { ac_try
='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_header_compiler
=yes
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.
$ac_ext >&5
15781 ac_header_compiler
=no
15783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15785 echo "${ECHO_T}$ac_header_compiler" >&6
15787 # Is the header present?
15788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15790 cat >conftest.
$ac_ext <<_ACEOF
15793 cat confdefs.h
>>conftest.
$ac_ext
15794 cat >>conftest.
$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15796 #include <$ac_header>
15798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15799 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15801 grep -v '^ *+' conftest.er1
>conftest.err
15803 cat conftest.err
>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } >/dev
/null
; then
15806 if test -s conftest.err
; then
15807 ac_cpp_err
=$ac_c_preproc_warn_flag
15808 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15815 if test -z "$ac_cpp_err"; then
15816 ac_header_preproc
=yes
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.
$ac_ext >&5
15821 ac_header_preproc
=no
15823 rm -f conftest.err conftest.
$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc
=yes
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15851 ## ------------------------------------------ ##
15852 ## Report this to the AC_PACKAGE_NAME lists. ##
15853 ## ------------------------------------------ ##
15856 sed "s/^/$as_me: WARNING: /" >&2
15859 echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 eval "$as_ac_Header=\$ac_header_preproc"
15866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15871 cat >>confdefs.h
<<_ACEOF
15872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15874 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15875 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15876 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 cat >conftest.
$ac_ext <<_ACEOF
15882 cat confdefs.h
>>conftest.
$ac_ext
15883 cat >>conftest.
$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15890 static struct nlist ac_aggr;
15891 if (ac_aggr.n_un.n_name)
15897 rm -f conftest.
$ac_objext
15898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15899 (eval $ac_compile) 2>conftest.er1
15901 grep -v '^ *+' conftest.er1
>conftest.err
15903 cat conftest.err
>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try
='test -z "$ac_c_werror_flag"
15907 || test ! -s conftest.err'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; } &&
15913 { ac_try
='test -s conftest.$ac_objext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_cv_member_struct_nlist_n_un_n_name
=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.
$ac_ext >&5
15924 cat >conftest.
$ac_ext <<_ACEOF
15927 cat confdefs.h
>>conftest.
$ac_ext
15928 cat >>conftest.
$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15935 static struct nlist ac_aggr;
15936 if (sizeof ac_aggr.n_un.n_name)
15942 rm -f conftest.
$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>conftest.er1
15946 grep -v '^ *+' conftest.er1
>conftest.err
15948 cat conftest.err
>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try
='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try
='test -s conftest.$ac_objext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_cv_member_struct_nlist_n_un_n_name
=yes
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.
$ac_ext >&5
15969 ac_cv_member_struct_nlist_n_un_n_name
=no
15971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15975 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15976 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15977 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15979 cat >>confdefs.h
<<_ACEOF
15980 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15984 cat >>confdefs.h
<<\_ACEOF
15985 #define NLIST_NAME_UNION 1
15999 # Some definitions of getloadavg require that the program be installed setgid.
16000 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16001 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16002 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 cat >conftest.
$ac_ext <<_ACEOF
16008 cat confdefs.h
>>conftest.
$ac_ext
16009 cat >>conftest.
$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16012 #ifdef LDAV_PRIVILEGED
16013 Yowza Am I SETGID yet
16016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16017 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16018 ac_cv_func_getloadavg_setgid
=yes
16020 ac_cv_func_getloadavg_setgid
=no
16025 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16026 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16027 if test $ac_cv_func_getloadavg_setgid = yes; then
16030 cat >>confdefs.h
<<\_ACEOF
16031 #define GETLOADAVG_PRIVILEGED 1
16038 if test $ac_cv_func_getloadavg_setgid = yes; then
16039 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16040 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16041 if test "${ac_cv_group_kmem+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16045 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16046 # If we got an error (system does not support symlinks), try without -L.
16047 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16048 ac_cv_group_kmem
=`echo $ac_ls_output \
16049 | sed -ne 's/[ ][ ]*/ /g;
16050 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16054 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16055 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16056 KMEM_GROUP
=$ac_cv_group_kmem
16058 if test "x$ac_save_LIBS" = x
; then
16059 GETLOADAVG_LIBS
=$LIBS
16061 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16067 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16068 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16069 if test "${ac_cv_sys_largefile_source+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 ac_cv_sys_largefile_source
=no
16074 cat >conftest.
$ac_ext <<_ACEOF
16077 cat confdefs.h
>>conftest.
$ac_ext
16078 cat >>conftest.
$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16089 rm -f conftest.
$ac_objext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16091 (eval $ac_compile) 2>conftest.er1
16093 grep -v '^ *+' conftest.er1
>conftest.err
16095 cat conftest.err
>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try
='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try
='test -s conftest.$ac_objext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.
$ac_ext >&5
16117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16118 cat >conftest.
$ac_ext <<_ACEOF
16121 cat confdefs.h
>>conftest.
$ac_ext
16122 cat >>conftest.
$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16124 #define _LARGEFILE_SOURCE 1
16134 rm -f conftest.
$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16138 grep -v '^ *+' conftest.er1
>conftest.err
16140 cat conftest.err
>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try
='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try
='test -s conftest.$ac_objext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_cv_sys_largefile_source
=1; break
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.
$ac_ext >&5
16162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16167 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16168 if test "$ac_cv_sys_largefile_source" != no
; then
16170 cat >>confdefs.h
<<_ACEOF
16171 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16177 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16178 # in glibc 2.1.3, but that breaks too many other things.
16179 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16180 echo "$as_me:$LINENO: checking for fseeko" >&5
16181 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16182 if test "${ac_cv_func_fseeko+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 cat >conftest.
$ac_ext <<_ACEOF
16188 cat confdefs.h
>>conftest.
$ac_ext
16189 cat >>conftest.
$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16195 return fseeko && fseeko (stdin, 0, 0);
16200 rm -f conftest.
$ac_objext conftest
$ac_exeext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16202 (eval $ac_link) 2>conftest.er1
16204 grep -v '^ *+' conftest.er1
>conftest.err
16206 cat conftest.err
>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try
='test -z "$ac_c_werror_flag"
16210 || test ! -s conftest.err'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try
='test -s conftest$ac_exeext'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ac_cv_func_fseeko
=yes
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.
$ac_ext >&5
16227 ac_cv_func_fseeko
=no
16229 rm -f conftest.err conftest.
$ac_objext \
16230 conftest
$ac_exeext conftest.
$ac_ext
16232 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16233 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16234 if test $ac_cv_func_fseeko = yes; then
16236 cat >>confdefs.h
<<\_ACEOF
16237 #define HAVE_FSEEKO 1
16243 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16244 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16245 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 # Use it with a single arg.
16249 cat >conftest.
$ac_ext <<_ACEOF
16252 cat confdefs.h
>>conftest.
$ac_ext
16253 cat >>conftest.
$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16264 rm -f conftest.
$ac_objext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16266 (eval $ac_compile) 2>conftest.er1
16268 grep -v '^ *+' conftest.er1
>conftest.err
16270 cat conftest.err
>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try
='test -z "$ac_c_werror_flag"
16274 || test ! -s conftest.err'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try
='test -s conftest.$ac_objext'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_func_getpgrp_void
=no
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.
$ac_ext >&5
16291 ac_cv_func_getpgrp_void
=yes
16293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16296 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16297 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16298 if test $ac_cv_func_getpgrp_void = yes; then
16300 cat >>confdefs.h
<<\_ACEOF
16301 #define GETPGRP_VOID 1
16308 for ac_func
in strftime
16310 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16311 echo "$as_me:$LINENO: checking for $ac_func" >&5
16312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16313 if eval "test \"\${$as_ac_var+set}\" = set"; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 cat >conftest.
$ac_ext <<_ACEOF
16319 cat confdefs.h
>>conftest.
$ac_ext
16320 cat >>conftest.
$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16324 #define $ac_func innocuous_$ac_func
16326 /* System header to define __stub macros and hopefully few prototypes,
16327 which can conflict with char $ac_func (); below.
16328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16329 <limits.h> exists even on freestanding compilers. */
16332 # include <limits.h>
16334 # include <assert.h>
16339 /* Override any gcc2 internal prototype to avoid an error. */
16344 /* We use char because int might match the return type of a gcc2
16345 builtin and then its argument prototype would still apply. */
16347 /* The GNU C library defines this for functions which it implements
16348 to always fail with ENOSYS. Some functions are actually named
16349 something starting with __ and the normal name is an alias. */
16350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16353 char (*f) () = $ac_func;
16362 return f != $ac_func;
16367 rm -f conftest.
$ac_objext conftest
$ac_exeext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16369 (eval $ac_link) 2>conftest.er1
16371 grep -v '^ *+' conftest.er1
>conftest.err
16373 cat conftest.err
>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try
='test -z "$ac_c_werror_flag"
16377 || test ! -s conftest.err'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try
='test -s conftest$ac_exeext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 eval "$as_ac_var=yes"
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.
$ac_ext >&5
16394 eval "$as_ac_var=no"
16396 rm -f conftest.err conftest.
$ac_objext \
16397 conftest
$ac_exeext conftest.
$ac_ext
16399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16401 if test `eval echo '${'$as_ac_var'}'` = yes; then
16402 cat >>confdefs.h
<<_ACEOF
16403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16407 # strftime is in -lintl on SCO UNIX.
16408 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16409 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16410 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16413 ac_check_lib_save_LIBS
=$LIBS
16414 LIBS
="-lintl $LIBS"
16415 cat >conftest.
$ac_ext <<_ACEOF
16418 cat confdefs.h
>>conftest.
$ac_ext
16419 cat >>conftest.
$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16422 /* Override any gcc2 internal prototype to avoid an error. */
16426 /* We use char because int might match the return type of a gcc2
16427 builtin and then its argument prototype would still apply. */
16437 rm -f conftest.
$ac_objext conftest
$ac_exeext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16439 (eval $ac_link) 2>conftest.er1
16441 grep -v '^ *+' conftest.er1
>conftest.err
16443 cat conftest.err
>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try
='test -z "$ac_c_werror_flag"
16447 || test ! -s conftest.err'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try
='test -s conftest$ac_exeext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_cv_lib_intl_strftime
=yes
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.
$ac_ext >&5
16464 ac_cv_lib_intl_strftime
=no
16466 rm -f conftest.err conftest.
$ac_objext \
16467 conftest
$ac_exeext conftest.
$ac_ext
16468 LIBS
=$ac_check_lib_save_LIBS
16470 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16471 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16472 if test $ac_cv_lib_intl_strftime = yes; then
16473 cat >>confdefs.h
<<\_ACEOF
16474 #define HAVE_STRFTIME 1
16477 LIBS
="-lintl $LIBS"
16486 for ac_func
in grantpt
16488 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16489 echo "$as_me:$LINENO: checking for $ac_func" >&5
16490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16491 if eval "test \"\${$as_ac_var+set}\" = set"; then
16492 echo $ECHO_N "(cached) $ECHO_C" >&6
16494 cat >conftest.
$ac_ext <<_ACEOF
16497 cat confdefs.h
>>conftest.
$ac_ext
16498 cat >>conftest.
$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16502 #define $ac_func innocuous_$ac_func
16504 /* System header to define __stub macros and hopefully few prototypes,
16505 which can conflict with char $ac_func (); below.
16506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16507 <limits.h> exists even on freestanding compilers. */
16510 # include <limits.h>
16512 # include <assert.h>
16517 /* Override any gcc2 internal prototype to avoid an error. */
16522 /* We use char because int might match the return type of a gcc2
16523 builtin and then its argument prototype would still apply. */
16525 /* The GNU C library defines this for functions which it implements
16526 to always fail with ENOSYS. Some functions are actually named
16527 something starting with __ and the normal name is an alias. */
16528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16531 char (*f) () = $ac_func;
16540 return f != $ac_func;
16545 rm -f conftest.
$ac_objext conftest
$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>conftest.er1
16549 grep -v '^ *+' conftest.er1
>conftest.err
16551 cat conftest.err
>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try
='test -z "$ac_c_werror_flag"
16555 || test ! -s conftest.err'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try
='test -s conftest$ac_exeext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 eval "$as_ac_var=yes"
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.
$ac_ext >&5
16572 eval "$as_ac_var=no"
16574 rm -f conftest.err conftest.
$ac_objext \
16575 conftest
$ac_exeext conftest.
$ac_ext
16577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16579 if test `eval echo '${'$as_ac_var'}'` = yes; then
16580 cat >>confdefs.h
<<_ACEOF
16581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16588 # PTY-related GNU extensions.
16590 for ac_func
in getpt
16592 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16593 echo "$as_me:$LINENO: checking for $ac_func" >&5
16594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16595 if eval "test \"\${$as_ac_var+set}\" = set"; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 cat >conftest.
$ac_ext <<_ACEOF
16601 cat confdefs.h
>>conftest.
$ac_ext
16602 cat >>conftest.
$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16606 #define $ac_func innocuous_$ac_func
16608 /* System header to define __stub macros and hopefully few prototypes,
16609 which can conflict with char $ac_func (); below.
16610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16611 <limits.h> exists even on freestanding compilers. */
16614 # include <limits.h>
16616 # include <assert.h>
16621 /* Override any gcc2 internal prototype to avoid an error. */
16626 /* We use char because int might match the return type of a gcc2
16627 builtin and then its argument prototype would still apply. */
16629 /* The GNU C library defines this for functions which it implements
16630 to always fail with ENOSYS. Some functions are actually named
16631 something starting with __ and the normal name is an alias. */
16632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16635 char (*f) () = $ac_func;
16644 return f != $ac_func;
16649 rm -f conftest.
$ac_objext conftest
$ac_exeext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16651 (eval $ac_link) 2>conftest.er1
16653 grep -v '^ *+' conftest.er1
>conftest.err
16655 cat conftest.err
>&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
16658 { ac_try
='test -z "$ac_c_werror_flag"
16659 || test ! -s conftest.err'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try
='test -s conftest$ac_exeext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 eval "$as_ac_var=yes"
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.
$ac_ext >&5
16676 eval "$as_ac_var=no"
16678 rm -f conftest.err conftest.
$ac_objext \
16679 conftest
$ac_exeext conftest.
$ac_ext
16681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16683 if test `eval echo '${'$as_ac_var'}'` = yes; then
16684 cat >>confdefs.h
<<_ACEOF
16685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16692 # Check this now, so that we will NOT find the above functions in ncurses.
16693 # That is because we have not set up to link ncurses in lib-src.
16694 # It's better to believe a function is not available
16695 # than to expect to find it in ncurses.
16697 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16698 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16699 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 ac_check_lib_save_LIBS
=$LIBS
16703 LIBS
="-lncurses $LIBS"
16704 cat >conftest.
$ac_ext <<_ACEOF
16707 cat confdefs.h
>>conftest.
$ac_ext
16708 cat >>conftest.
$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16711 /* Override any gcc2 internal prototype to avoid an error. */
16715 /* We use char because int might match the return type of a gcc2
16716 builtin and then its argument prototype would still apply. */
16726 rm -f conftest.
$ac_objext conftest
$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>conftest.er1
16730 grep -v '^ *+' conftest.er1
>conftest.err
16732 cat conftest.err
>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try
='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try
='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_lib_ncurses_tparm
=yes
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.
$ac_ext >&5
16753 ac_cv_lib_ncurses_tparm
=no
16755 rm -f conftest.err conftest.
$ac_objext \
16756 conftest
$ac_exeext conftest.
$ac_ext
16757 LIBS
=$ac_check_lib_save_LIBS
16759 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16760 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16761 if test $ac_cv_lib_ncurses_tparm = yes; then
16762 cat >>confdefs.h
<<_ACEOF
16763 #define HAVE_LIBNCURSES 1
16766 LIBS
="-lncurses $LIBS"
16771 # Do we need the Hesiod library to provide the support routines?
16772 if test "$with_hesiod" = yes ; then
16773 # Don't set $LIBS here -- see comments above.
16775 echo "$as_me:$LINENO: checking for res_send" >&5
16776 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16777 if test "${ac_cv_func_res_send+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 cat >conftest.
$ac_ext <<_ACEOF
16783 cat confdefs.h
>>conftest.
$ac_ext
16784 cat >>conftest.
$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16788 #define res_send innocuous_res_send
16790 /* System header to define __stub macros and hopefully few prototypes,
16791 which can conflict with char res_send (); below.
16792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16793 <limits.h> exists even on freestanding compilers. */
16796 # include <limits.h>
16798 # include <assert.h>
16803 /* Override any gcc2 internal prototype to avoid an error. */
16808 /* We use char because int might match the return type of a gcc2
16809 builtin and then its argument prototype would still apply. */
16811 /* The GNU C library defines this for functions which it implements
16812 to always fail with ENOSYS. Some functions are actually named
16813 something starting with __ and the normal name is an alias. */
16814 #if defined (__stub_res_send) || defined (__stub___res_send)
16817 char (*f) () = res_send;
16826 return f != res_send;
16831 rm -f conftest.
$ac_objext conftest
$ac_exeext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16833 (eval $ac_link) 2>conftest.er1
16835 grep -v '^ *+' conftest.er1
>conftest.err
16837 cat conftest.err
>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try
='test -z "$ac_c_werror_flag"
16841 || test ! -s conftest.err'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try
='test -s conftest$ac_exeext'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_cv_func_res_send
=yes
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.
$ac_ext >&5
16858 ac_cv_func_res_send
=no
16860 rm -f conftest.err conftest.
$ac_objext \
16861 conftest
$ac_exeext conftest.
$ac_ext
16863 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16864 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16865 if test $ac_cv_func_res_send = yes; then
16868 echo "$as_me:$LINENO: checking for __res_send" >&5
16869 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16870 if test "${ac_cv_func___res_send+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 cat >conftest.
$ac_ext <<_ACEOF
16876 cat confdefs.h
>>conftest.
$ac_ext
16877 cat >>conftest.
$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16881 #define __res_send innocuous___res_send
16883 /* System header to define __stub macros and hopefully few prototypes,
16884 which can conflict with char __res_send (); below.
16885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16886 <limits.h> exists even on freestanding compilers. */
16889 # include <limits.h>
16891 # include <assert.h>
16896 /* Override any gcc2 internal prototype to avoid an error. */
16901 /* We use char because int might match the return type of a gcc2
16902 builtin and then its argument prototype would still apply. */
16903 char __res_send ();
16904 /* The GNU C library defines this for functions which it implements
16905 to always fail with ENOSYS. Some functions are actually named
16906 something starting with __ and the normal name is an alias. */
16907 #if defined (__stub___res_send) || defined (__stub_____res_send)
16910 char (*f) () = __res_send;
16919 return f != __res_send;
16924 rm -f conftest.
$ac_objext conftest
$ac_exeext
16925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16926 (eval $ac_link) 2>conftest.er1
16928 grep -v '^ *+' conftest.er1
>conftest.err
16930 cat conftest.err
>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try
='test -z "$ac_c_werror_flag"
16934 || test ! -s conftest.err'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try
='test -s conftest$ac_exeext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 ac_cv_func___res_send
=yes
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.
$ac_ext >&5
16951 ac_cv_func___res_send
=no
16953 rm -f conftest.err conftest.
$ac_objext \
16954 conftest
$ac_exeext conftest.
$ac_ext
16956 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16957 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16958 if test $ac_cv_func___res_send = yes; then
16961 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16962 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16963 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 ac_check_lib_save_LIBS
=$LIBS
16967 LIBS
="-lresolv $LIBS"
16968 cat >conftest.
$ac_ext <<_ACEOF
16971 cat confdefs.h
>>conftest.
$ac_ext
16972 cat >>conftest.
$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16975 /* Override any gcc2 internal prototype to avoid an error. */
16979 /* We use char because int might match the return type of a gcc2
16980 builtin and then its argument prototype would still apply. */
16990 rm -f conftest.
$ac_objext conftest
$ac_exeext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16992 (eval $ac_link) 2>conftest.er1
16994 grep -v '^ *+' conftest.er1
>conftest.err
16996 cat conftest.err
>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try
='test -z "$ac_c_werror_flag"
17000 || test ! -s conftest.err'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try
='test -s conftest$ac_exeext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_cv_lib_resolv_res_send
=yes
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.
$ac_ext >&5
17017 ac_cv_lib_resolv_res_send
=no
17019 rm -f conftest.err conftest.
$ac_objext \
17020 conftest
$ac_exeext conftest.
$ac_ext
17021 LIBS
=$ac_check_lib_save_LIBS
17023 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17024 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17025 if test $ac_cv_lib_resolv_res_send = yes; then
17028 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17029 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17030 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 ac_check_lib_save_LIBS
=$LIBS
17034 LIBS
="-lresolv $LIBS"
17035 cat >conftest.
$ac_ext <<_ACEOF
17038 cat confdefs.h
>>conftest.
$ac_ext
17039 cat >>conftest.
$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17042 /* Override any gcc2 internal prototype to avoid an error. */
17046 /* We use char because int might match the return type of a gcc2
17047 builtin and then its argument prototype would still apply. */
17048 char __res_send ();
17057 rm -f conftest.
$ac_objext conftest
$ac_exeext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17059 (eval $ac_link) 2>conftest.er1
17061 grep -v '^ *+' conftest.er1
>conftest.err
17063 cat conftest.err
>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try
='test -z "$ac_c_werror_flag"
17067 || test ! -s conftest.err'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try
='test -s conftest$ac_exeext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_cv_lib_resolv___res_send
=yes
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.
$ac_ext >&5
17084 ac_cv_lib_resolv___res_send
=no
17086 rm -f conftest.err conftest.
$ac_objext \
17087 conftest
$ac_exeext conftest.
$ac_ext
17088 LIBS
=$ac_check_lib_save_LIBS
17090 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17091 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17092 if test $ac_cv_lib_resolv___res_send = yes; then
17102 if test "$resolv" = yes ; then
17105 cat >>confdefs.h
<<\_ACEOF
17106 #define HAVE_LIBRESOLV 1
17112 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17113 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17114 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 cat >conftest.
$ac_ext <<_ACEOF
17120 cat confdefs.h
>>conftest.
$ac_ext
17121 cat >>conftest.
$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17125 #define hes_getmailhost innocuous_hes_getmailhost
17127 /* System header to define __stub macros and hopefully few prototypes,
17128 which can conflict with char hes_getmailhost (); below.
17129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17130 <limits.h> exists even on freestanding compilers. */
17133 # include <limits.h>
17135 # include <assert.h>
17138 #undef hes_getmailhost
17140 /* Override any gcc2 internal prototype to avoid an error. */
17145 /* We use char because int might match the return type of a gcc2
17146 builtin and then its argument prototype would still apply. */
17147 char hes_getmailhost ();
17148 /* The GNU C library defines this for functions which it implements
17149 to always fail with ENOSYS. Some functions are actually named
17150 something starting with __ and the normal name is an alias. */
17151 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17154 char (*f) () = hes_getmailhost;
17163 return f != hes_getmailhost;
17168 rm -f conftest.
$ac_objext conftest
$ac_exeext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17170 (eval $ac_link) 2>conftest.er1
17172 grep -v '^ *+' conftest.er1
>conftest.err
17174 cat conftest.err
>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try
='test -z "$ac_c_werror_flag"
17178 || test ! -s conftest.err'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try
='test -s conftest$ac_exeext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_func_hes_getmailhost
=yes
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.
$ac_ext >&5
17195 ac_cv_func_hes_getmailhost
=no
17197 rm -f conftest.err conftest.
$ac_objext \
17198 conftest
$ac_exeext conftest.
$ac_ext
17200 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17201 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17202 if test $ac_cv_func_hes_getmailhost = yes; then
17205 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17206 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17207 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 ac_check_lib_save_LIBS
=$LIBS
17211 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17212 cat >conftest.
$ac_ext <<_ACEOF
17215 cat confdefs.h
>>conftest.
$ac_ext
17216 cat >>conftest.
$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17219 /* Override any gcc2 internal prototype to avoid an error. */
17223 /* We use char because int might match the return type of a gcc2
17224 builtin and then its argument prototype would still apply. */
17225 char hes_getmailhost ();
17229 hes_getmailhost ();
17234 rm -f conftest.
$ac_objext conftest
$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>conftest.er1
17238 grep -v '^ *+' conftest.er1
>conftest.err
17240 cat conftest.err
>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try
='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try
='test -s conftest$ac_exeext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_cv_lib_hesiod_hes_getmailhost
=yes
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.
$ac_ext >&5
17261 ac_cv_lib_hesiod_hes_getmailhost
=no
17263 rm -f conftest.err conftest.
$ac_objext \
17264 conftest
$ac_exeext conftest.
$ac_ext
17265 LIBS
=$ac_check_lib_save_LIBS
17267 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17268 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17269 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17271 cat >>confdefs.h
<<\_ACEOF
17272 #define HAVE_LIBHESIOD 1
17283 # These tell us which Kerberos-related libraries to use.
17284 if test "${with_kerberos+set}" = set; then
17286 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17287 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17288 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 ac_check_lib_save_LIBS
=$LIBS
17292 LIBS
="-lcom_err $LIBS"
17293 cat >conftest.
$ac_ext <<_ACEOF
17296 cat confdefs.h
>>conftest.
$ac_ext
17297 cat >>conftest.
$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17300 /* Override any gcc2 internal prototype to avoid an error. */
17304 /* We use char because int might match the return type of a gcc2
17305 builtin and then its argument prototype would still apply. */
17315 rm -f conftest.
$ac_objext conftest
$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317 (eval $ac_link) 2>conftest.er1
17319 grep -v '^ *+' conftest.er1
>conftest.err
17321 cat conftest.err
>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try
='test -z "$ac_c_werror_flag"
17325 || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try
='test -s conftest$ac_exeext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_lib_com_err_com_err
=yes
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.
$ac_ext >&5
17342 ac_cv_lib_com_err_com_err
=no
17344 rm -f conftest.err conftest.
$ac_objext \
17345 conftest
$ac_exeext conftest.
$ac_ext
17346 LIBS
=$ac_check_lib_save_LIBS
17348 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17349 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17350 if test $ac_cv_lib_com_err_com_err = yes; then
17351 cat >>confdefs.h
<<_ACEOF
17352 #define HAVE_LIBCOM_ERR 1
17355 LIBS
="-lcom_err $LIBS"
17360 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17361 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17362 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 ac_check_lib_save_LIBS
=$LIBS
17366 LIBS
="-lk5crypto $LIBS"
17367 cat >conftest.
$ac_ext <<_ACEOF
17370 cat confdefs.h
>>conftest.
$ac_ext
17371 cat >>conftest.
$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17374 /* Override any gcc2 internal prototype to avoid an error. */
17378 /* We use char because int might match the return type of a gcc2
17379 builtin and then its argument prototype would still apply. */
17380 char mit_des_cbc_encrypt ();
17384 mit_des_cbc_encrypt ();
17389 rm -f conftest.
$ac_objext conftest
$ac_exeext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>conftest.er1
17393 grep -v '^ *+' conftest.er1
>conftest.err
17395 cat conftest.err
>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try
='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try
='test -s conftest$ac_exeext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.
$ac_ext >&5
17416 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17418 rm -f conftest.err conftest.
$ac_objext \
17419 conftest
$ac_exeext conftest.
$ac_ext
17420 LIBS
=$ac_check_lib_save_LIBS
17422 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17423 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17424 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17425 cat >>confdefs.h
<<_ACEOF
17426 #define HAVE_LIBK5CRYPTO 1
17429 LIBS
="-lk5crypto $LIBS"
17434 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17435 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17436 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 ac_check_lib_save_LIBS
=$LIBS
17440 LIBS
="-lcrypto $LIBS"
17441 cat >conftest.
$ac_ext <<_ACEOF
17444 cat confdefs.h
>>conftest.
$ac_ext
17445 cat >>conftest.
$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17448 /* Override any gcc2 internal prototype to avoid an error. */
17452 /* We use char because int might match the return type of a gcc2
17453 builtin and then its argument prototype would still apply. */
17454 char mit_des_cbc_encrypt ();
17458 mit_des_cbc_encrypt ();
17463 rm -f conftest.
$ac_objext conftest
$ac_exeext
17464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17465 (eval $ac_link) 2>conftest.er1
17467 grep -v '^ *+' conftest.er1
>conftest.err
17469 cat conftest.err
>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try
='test -z "$ac_c_werror_flag"
17473 || test ! -s conftest.err'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try
='test -s conftest$ac_exeext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.
$ac_ext >&5
17490 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17492 rm -f conftest.err conftest.
$ac_objext \
17493 conftest
$ac_exeext conftest.
$ac_ext
17494 LIBS
=$ac_check_lib_save_LIBS
17496 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17497 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17498 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17499 cat >>confdefs.h
<<_ACEOF
17500 #define HAVE_LIBCRYPTO 1
17503 LIBS
="-lcrypto $LIBS"
17508 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17509 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17510 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 ac_check_lib_save_LIBS
=$LIBS
17514 LIBS
="-lkrb5 $LIBS"
17515 cat >conftest.
$ac_ext <<_ACEOF
17518 cat confdefs.h
>>conftest.
$ac_ext
17519 cat >>conftest.
$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17522 /* Override any gcc2 internal prototype to avoid an error. */
17526 /* We use char because int might match the return type of a gcc2
17527 builtin and then its argument prototype would still apply. */
17528 char krb5_init_context ();
17532 krb5_init_context ();
17537 rm -f conftest.
$ac_objext conftest
$ac_exeext
17538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17539 (eval $ac_link) 2>conftest.er1
17541 grep -v '^ *+' conftest.er1
>conftest.err
17543 cat conftest.err
>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try
='test -z "$ac_c_werror_flag"
17547 || test ! -s conftest.err'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try
='test -s conftest$ac_exeext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_lib_krb5_krb5_init_context
=yes
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.
$ac_ext >&5
17564 ac_cv_lib_krb5_krb5_init_context
=no
17566 rm -f conftest.err conftest.
$ac_objext \
17567 conftest
$ac_exeext conftest.
$ac_ext
17568 LIBS
=$ac_check_lib_save_LIBS
17570 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17571 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17572 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17573 cat >>confdefs.h
<<_ACEOF
17574 #define HAVE_LIBKRB5 1
17577 LIBS
="-lkrb5 $LIBS"
17581 if test "${with_kerberos5+set}" != set; then
17583 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17584 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17585 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 ac_check_lib_save_LIBS
=$LIBS
17589 LIBS
="-ldes425 $LIBS"
17590 cat >conftest.
$ac_ext <<_ACEOF
17593 cat confdefs.h
>>conftest.
$ac_ext
17594 cat >>conftest.
$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17597 /* Override any gcc2 internal prototype to avoid an error. */
17601 /* We use char because int might match the return type of a gcc2
17602 builtin and then its argument prototype would still apply. */
17603 char des_cbc_encrypt ();
17607 des_cbc_encrypt ();
17612 rm -f conftest.
$ac_objext conftest
$ac_exeext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>conftest.er1
17616 grep -v '^ *+' conftest.er1
>conftest.err
17618 cat conftest.err
>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try
='test -z "$ac_c_werror_flag"
17622 || test ! -s conftest.err'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try
='test -s conftest$ac_exeext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_lib_des425_des_cbc_encrypt
=yes
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.
$ac_ext >&5
17639 ac_cv_lib_des425_des_cbc_encrypt
=no
17641 rm -f conftest.err conftest.
$ac_objext \
17642 conftest
$ac_exeext conftest.
$ac_ext
17643 LIBS
=$ac_check_lib_save_LIBS
17645 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17646 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17647 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17648 cat >>confdefs.h
<<_ACEOF
17649 #define HAVE_LIBDES425 1
17652 LIBS
="-ldes425 $LIBS"
17656 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17657 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17658 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 ac_check_lib_save_LIBS
=$LIBS
17663 cat >conftest.
$ac_ext <<_ACEOF
17666 cat confdefs.h
>>conftest.
$ac_ext
17667 cat >>conftest.
$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17670 /* Override any gcc2 internal prototype to avoid an error. */
17674 /* We use char because int might match the return type of a gcc2
17675 builtin and then its argument prototype would still apply. */
17676 char des_cbc_encrypt ();
17680 des_cbc_encrypt ();
17685 rm -f conftest.
$ac_objext conftest
$ac_exeext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687 (eval $ac_link) 2>conftest.er1
17689 grep -v '^ *+' conftest.er1
>conftest.err
17691 cat conftest.err
>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try
='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try
='test -s conftest$ac_exeext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_lib_des_des_cbc_encrypt
=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.
$ac_ext >&5
17712 ac_cv_lib_des_des_cbc_encrypt
=no
17714 rm -f conftest.err conftest.
$ac_objext \
17715 conftest
$ac_exeext conftest.
$ac_ext
17716 LIBS
=$ac_check_lib_save_LIBS
17718 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17719 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17720 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17721 cat >>confdefs.h
<<_ACEOF
17722 #define HAVE_LIBDES 1
17732 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17733 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17734 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 ac_check_lib_save_LIBS
=$LIBS
17738 LIBS
="-lkrb4 $LIBS"
17739 cat >conftest.
$ac_ext <<_ACEOF
17742 cat confdefs.h
>>conftest.
$ac_ext
17743 cat >>conftest.
$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17746 /* Override any gcc2 internal prototype to avoid an error. */
17750 /* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17752 char krb_get_cred ();
17761 rm -f conftest.
$ac_objext conftest
$ac_exeext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>conftest.er1
17765 grep -v '^ *+' conftest.er1
>conftest.err
17767 cat conftest.err
>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try
='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try
='test -s conftest$ac_exeext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_lib_krb4_krb_get_cred
=yes
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.
$ac_ext >&5
17788 ac_cv_lib_krb4_krb_get_cred
=no
17790 rm -f conftest.err conftest.
$ac_objext \
17791 conftest
$ac_exeext conftest.
$ac_ext
17792 LIBS
=$ac_check_lib_save_LIBS
17794 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17795 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17796 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17797 cat >>confdefs.h
<<_ACEOF
17798 #define HAVE_LIBKRB4 1
17801 LIBS
="-lkrb4 $LIBS"
17805 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17806 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17807 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17810 ac_check_lib_save_LIBS
=$LIBS
17812 cat >conftest.
$ac_ext <<_ACEOF
17815 cat confdefs.h
>>conftest.
$ac_ext
17816 cat >>conftest.
$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17819 /* Override any gcc2 internal prototype to avoid an error. */
17823 /* We use char because int might match the return type of a gcc2
17824 builtin and then its argument prototype would still apply. */
17825 char krb_get_cred ();
17834 rm -f conftest.
$ac_objext conftest
$ac_exeext
17835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836 (eval $ac_link) 2>conftest.er1
17838 grep -v '^ *+' conftest.er1
>conftest.err
17840 cat conftest.err
>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
17843 { ac_try
='test -z "$ac_c_werror_flag"
17844 || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try
='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 ac_cv_lib_krb_krb_get_cred
=yes
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.
$ac_ext >&5
17861 ac_cv_lib_krb_krb_get_cred
=no
17863 rm -f conftest.err conftest.
$ac_objext \
17864 conftest
$ac_exeext conftest.
$ac_ext
17865 LIBS
=$ac_check_lib_save_LIBS
17867 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17868 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17869 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17870 cat >>confdefs.h
<<_ACEOF
17871 #define HAVE_LIBKRB 1
17882 if test "${with_kerberos5+set}" = set; then
17884 for ac_header
in krb5.h
17886 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17888 echo "$as_me:$LINENO: checking for $ac_header" >&5
17889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17896 # Is the header compilable?
17897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17899 cat >conftest.
$ac_ext <<_ACEOF
17902 cat confdefs.h
>>conftest.
$ac_ext
17903 cat >>conftest.
$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 $ac_includes_default
17906 #include <$ac_header>
17908 rm -f conftest.
$ac_objext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17910 (eval $ac_compile) 2>conftest.er1
17912 grep -v '^ *+' conftest.er1
>conftest.err
17914 cat conftest.err
>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try
='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try
='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_header_compiler
=yes
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.
$ac_ext >&5
17935 ac_header_compiler
=no
17937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17939 echo "${ECHO_T}$ac_header_compiler" >&6
17941 # Is the header present?
17942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17944 cat >conftest.
$ac_ext <<_ACEOF
17947 cat confdefs.h
>>conftest.
$ac_ext
17948 cat >>conftest.
$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 #include <$ac_header>
17952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17955 grep -v '^ *+' conftest.er1
>conftest.err
17957 cat conftest.err
>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } >/dev
/null
; then
17960 if test -s conftest.err
; then
17961 ac_cpp_err
=$ac_c_preproc_warn_flag
17962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17969 if test -z "$ac_cpp_err"; then
17970 ac_header_preproc
=yes
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.
$ac_ext >&5
17975 ac_header_preproc
=no
17977 rm -f conftest.err conftest.
$ac_ext
17978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17979 echo "${ECHO_T}$ac_header_preproc" >&6
17981 # So? What about this header?
17982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17988 ac_header_preproc
=yes
17991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18005 ## ------------------------------------------ ##
18006 ## Report this to the AC_PACKAGE_NAME lists. ##
18007 ## ------------------------------------------ ##
18010 sed "s/^/$as_me: WARNING: /" >&2
18013 echo "$as_me:$LINENO: checking for $ac_header" >&5
18014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18018 eval "$as_ac_Header=\$ac_header_preproc"
18020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18025 cat >>confdefs.h
<<_ACEOF
18026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18035 for ac_header
in des.h
18037 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18039 echo "$as_me:$LINENO: checking for $ac_header" >&5
18040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18047 # Is the header compilable?
18048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18050 cat >conftest.
$ac_ext <<_ACEOF
18053 cat confdefs.h
>>conftest.
$ac_ext
18054 cat >>conftest.
$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 $ac_includes_default
18057 #include <$ac_header>
18059 rm -f conftest.
$ac_objext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18061 (eval $ac_compile) 2>conftest.er1
18063 grep -v '^ *+' conftest.er1
>conftest.err
18065 cat conftest.err
>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try
='test -z "$ac_c_werror_flag"
18069 || test ! -s conftest.err'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try
='test -s conftest.$ac_objext'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 ac_header_compiler
=yes
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.
$ac_ext >&5
18086 ac_header_compiler
=no
18088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18090 echo "${ECHO_T}$ac_header_compiler" >&6
18092 # Is the header present?
18093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18095 cat >conftest.
$ac_ext <<_ACEOF
18098 cat confdefs.h
>>conftest.
$ac_ext
18099 cat >>conftest.
$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 #include <$ac_header>
18103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18106 grep -v '^ *+' conftest.er1
>conftest.err
18108 cat conftest.err
>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } >/dev
/null
; then
18111 if test -s conftest.err
; then
18112 ac_cpp_err
=$ac_c_preproc_warn_flag
18113 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18120 if test -z "$ac_cpp_err"; then
18121 ac_header_preproc
=yes
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.
$ac_ext >&5
18126 ac_header_preproc
=no
18128 rm -f conftest.err conftest.
$ac_ext
18129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18130 echo "${ECHO_T}$ac_header_preproc" >&6
18132 # So? What about this header?
18133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18139 ac_header_preproc
=yes
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18156 ## ------------------------------------------ ##
18157 ## Report this to the AC_PACKAGE_NAME lists. ##
18158 ## ------------------------------------------ ##
18161 sed "s/^/$as_me: WARNING: /" >&2
18164 echo "$as_me:$LINENO: checking for $ac_header" >&5
18165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 eval "$as_ac_Header=\$ac_header_preproc"
18171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18176 cat >>confdefs.h
<<_ACEOF
18177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18182 for ac_header
in kerberosIV
/des.h
18184 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18186 echo "$as_me:$LINENO: checking for $ac_header" >&5
18187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18194 # Is the header compilable?
18195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18197 cat >conftest.
$ac_ext <<_ACEOF
18200 cat confdefs.h
>>conftest.
$ac_ext
18201 cat >>conftest.
$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 $ac_includes_default
18204 #include <$ac_header>
18206 rm -f conftest.
$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208 (eval $ac_compile) 2>conftest.er1
18210 grep -v '^ *+' conftest.er1
>conftest.err
18212 cat conftest.err
>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
18215 { ac_try
='test -z "$ac_c_werror_flag"
18216 || test ! -s conftest.err'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try
='test -s conftest.$ac_objext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_header_compiler
=yes
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.
$ac_ext >&5
18233 ac_header_compiler
=no
18235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18237 echo "${ECHO_T}$ac_header_compiler" >&6
18239 # Is the header present?
18240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18242 cat >conftest.
$ac_ext <<_ACEOF
18245 cat confdefs.h
>>conftest.
$ac_ext
18246 cat >>conftest.
$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 #include <$ac_header>
18250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18251 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18253 grep -v '^ *+' conftest.er1
>conftest.err
18255 cat conftest.err
>&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } >/dev
/null
; then
18258 if test -s conftest.err
; then
18259 ac_cpp_err
=$ac_c_preproc_warn_flag
18260 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18267 if test -z "$ac_cpp_err"; then
18268 ac_header_preproc
=yes
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.
$ac_ext >&5
18273 ac_header_preproc
=no
18275 rm -f conftest.err conftest.
$ac_ext
18276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18277 echo "${ECHO_T}$ac_header_preproc" >&6
18279 # So? What about this header?
18280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18286 ac_header_preproc
=yes
18289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18303 ## ------------------------------------------ ##
18304 ## Report this to the AC_PACKAGE_NAME lists. ##
18305 ## ------------------------------------------ ##
18308 sed "s/^/$as_me: WARNING: /" >&2
18311 echo "$as_me:$LINENO: checking for $ac_header" >&5
18312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 eval "$as_ac_Header=\$ac_header_preproc"
18318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18323 cat >>confdefs.h
<<_ACEOF
18324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18329 for ac_header
in kerberos
/des.h
18331 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18333 echo "$as_me:$LINENO: checking for $ac_header" >&5
18334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18341 # Is the header compilable?
18342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18344 cat >conftest.
$ac_ext <<_ACEOF
18347 cat confdefs.h
>>conftest.
$ac_ext
18348 cat >>conftest.
$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18350 $ac_includes_default
18351 #include <$ac_header>
18353 rm -f conftest.
$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18357 grep -v '^ *+' conftest.er1
>conftest.err
18359 cat conftest.err
>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try
='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try
='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18375 ac_header_compiler
=yes
18377 echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.
$ac_ext >&5
18380 ac_header_compiler
=no
18382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18384 echo "${ECHO_T}$ac_header_compiler" >&6
18386 # Is the header present?
18387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18389 cat >conftest.
$ac_ext <<_ACEOF
18392 cat confdefs.h
>>conftest.
$ac_ext
18393 cat >>conftest.
$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395 #include <$ac_header>
18397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18398 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18400 grep -v '^ *+' conftest.er1
>conftest.err
18402 cat conftest.err
>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } >/dev
/null
; then
18405 if test -s conftest.err
; then
18406 ac_cpp_err
=$ac_c_preproc_warn_flag
18407 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18414 if test -z "$ac_cpp_err"; then
18415 ac_header_preproc
=yes
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.
$ac_ext >&5
18420 ac_header_preproc
=no
18422 rm -f conftest.err conftest.
$ac_ext
18423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18424 echo "${ECHO_T}$ac_header_preproc" >&6
18426 # So? What about this header?
18427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18433 ac_header_preproc
=yes
18436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18450 ## ------------------------------------------ ##
18451 ## Report this to the AC_PACKAGE_NAME lists. ##
18452 ## ------------------------------------------ ##
18455 sed "s/^/$as_me: WARNING: /" >&2
18458 echo "$as_me:$LINENO: checking for $ac_header" >&5
18459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 eval "$as_ac_Header=\$ac_header_preproc"
18465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18470 cat >>confdefs.h
<<_ACEOF
18471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18487 for ac_header
in krb.h
18489 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18491 echo "$as_me:$LINENO: checking for $ac_header" >&5
18492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18499 # Is the header compilable?
18500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18502 cat >conftest.
$ac_ext <<_ACEOF
18505 cat confdefs.h
>>conftest.
$ac_ext
18506 cat >>conftest.
$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 $ac_includes_default
18509 #include <$ac_header>
18511 rm -f conftest.
$ac_objext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18513 (eval $ac_compile) 2>conftest.er1
18515 grep -v '^ *+' conftest.er1
>conftest.err
18517 cat conftest.err
>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try
='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try
='test -s conftest.$ac_objext'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_header_compiler
=yes
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.
$ac_ext >&5
18538 ac_header_compiler
=no
18540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18542 echo "${ECHO_T}$ac_header_compiler" >&6
18544 # Is the header present?
18545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18547 cat >conftest.
$ac_ext <<_ACEOF
18550 cat confdefs.h
>>conftest.
$ac_ext
18551 cat >>conftest.
$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18553 #include <$ac_header>
18555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18556 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18558 grep -v '^ *+' conftest.er1
>conftest.err
18560 cat conftest.err
>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } >/dev
/null
; then
18563 if test -s conftest.err
; then
18564 ac_cpp_err
=$ac_c_preproc_warn_flag
18565 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18572 if test -z "$ac_cpp_err"; then
18573 ac_header_preproc
=yes
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.
$ac_ext >&5
18578 ac_header_preproc
=no
18580 rm -f conftest.err conftest.
$ac_ext
18581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18582 echo "${ECHO_T}$ac_header_preproc" >&6
18584 # So? What about this header?
18585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18591 ac_header_preproc
=yes
18594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18608 ## ------------------------------------------ ##
18609 ## Report this to the AC_PACKAGE_NAME lists. ##
18610 ## ------------------------------------------ ##
18613 sed "s/^/$as_me: WARNING: /" >&2
18616 echo "$as_me:$LINENO: checking for $ac_header" >&5
18617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18621 eval "$as_ac_Header=\$ac_header_preproc"
18623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18628 cat >>confdefs.h
<<_ACEOF
18629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18634 for ac_header
in kerberosIV
/krb.h
18636 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18638 echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18646 # Is the header compilable?
18647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18649 cat >conftest.
$ac_ext <<_ACEOF
18652 cat confdefs.h
>>conftest.
$ac_ext
18653 cat >>conftest.
$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18655 $ac_includes_default
18656 #include <$ac_header>
18658 rm -f conftest.
$ac_objext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18660 (eval $ac_compile) 2>conftest.er1
18662 grep -v '^ *+' conftest.er1
>conftest.err
18664 cat conftest.err
>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try
='test -z "$ac_c_werror_flag"
18668 || test ! -s conftest.err'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try
='test -s conftest.$ac_objext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_header_compiler
=yes
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.
$ac_ext >&5
18685 ac_header_compiler
=no
18687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18689 echo "${ECHO_T}$ac_header_compiler" >&6
18691 # Is the header present?
18692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18694 cat >conftest.
$ac_ext <<_ACEOF
18697 cat confdefs.h
>>conftest.
$ac_ext
18698 cat >>conftest.
$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 #include <$ac_header>
18702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18703 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18705 grep -v '^ *+' conftest.er1
>conftest.err
18707 cat conftest.err
>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } >/dev
/null
; then
18710 if test -s conftest.err
; then
18711 ac_cpp_err
=$ac_c_preproc_warn_flag
18712 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18719 if test -z "$ac_cpp_err"; then
18720 ac_header_preproc
=yes
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.
$ac_ext >&5
18725 ac_header_preproc
=no
18727 rm -f conftest.err conftest.
$ac_ext
18728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18729 echo "${ECHO_T}$ac_header_preproc" >&6
18731 # So? What about this header?
18732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18738 ac_header_preproc
=yes
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18755 ## ------------------------------------------ ##
18756 ## Report this to the AC_PACKAGE_NAME lists. ##
18757 ## ------------------------------------------ ##
18760 sed "s/^/$as_me: WARNING: /" >&2
18763 echo "$as_me:$LINENO: checking for $ac_header" >&5
18764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 eval "$as_ac_Header=\$ac_header_preproc"
18770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18775 cat >>confdefs.h
<<_ACEOF
18776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18781 for ac_header
in kerberos
/krb.h
18783 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18785 echo "$as_me:$LINENO: checking for $ac_header" >&5
18786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18793 # Is the header compilable?
18794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18796 cat >conftest.
$ac_ext <<_ACEOF
18799 cat confdefs.h
>>conftest.
$ac_ext
18800 cat >>conftest.
$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 $ac_includes_default
18803 #include <$ac_header>
18805 rm -f conftest.
$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807 (eval $ac_compile) 2>conftest.er1
18809 grep -v '^ *+' conftest.er1
>conftest.err
18811 cat conftest.err
>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try
='test -z "$ac_c_werror_flag"
18815 || test ! -s conftest.err'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try
='test -s conftest.$ac_objext'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18827 ac_header_compiler
=yes
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.
$ac_ext >&5
18832 ac_header_compiler
=no
18834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18836 echo "${ECHO_T}$ac_header_compiler" >&6
18838 # Is the header present?
18839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18841 cat >conftest.
$ac_ext <<_ACEOF
18844 cat confdefs.h
>>conftest.
$ac_ext
18845 cat >>conftest.
$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18847 #include <$ac_header>
18849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18850 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18852 grep -v '^ *+' conftest.er1
>conftest.err
18854 cat conftest.err
>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } >/dev
/null
; then
18857 if test -s conftest.err
; then
18858 ac_cpp_err
=$ac_c_preproc_warn_flag
18859 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18866 if test -z "$ac_cpp_err"; then
18867 ac_header_preproc
=yes
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.
$ac_ext >&5
18872 ac_header_preproc
=no
18874 rm -f conftest.err conftest.
$ac_ext
18875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18876 echo "${ECHO_T}$ac_header_preproc" >&6
18878 # So? What about this header?
18879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18885 ac_header_preproc
=yes
18888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18902 ## ------------------------------------------ ##
18903 ## Report this to the AC_PACKAGE_NAME lists. ##
18904 ## ------------------------------------------ ##
18907 sed "s/^/$as_me: WARNING: /" >&2
18910 echo "$as_me:$LINENO: checking for $ac_header" >&5
18911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 eval "$as_ac_Header=\$ac_header_preproc"
18917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18922 cat >>confdefs.h
<<_ACEOF
18923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18940 for ac_header
in com_err.h
18942 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18944 echo "$as_me:$LINENO: checking for $ac_header" >&5
18945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18952 # Is the header compilable?
18953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18955 cat >conftest.
$ac_ext <<_ACEOF
18958 cat confdefs.h
>>conftest.
$ac_ext
18959 cat >>conftest.
$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18962 #include <$ac_header>
18964 rm -f conftest.
$ac_objext
18965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18966 (eval $ac_compile) 2>conftest.er1
18968 grep -v '^ *+' conftest.er1
>conftest.err
18970 cat conftest.err
>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try
='test -z "$ac_c_werror_flag"
18974 || test ! -s conftest.err'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try
='test -s conftest.$ac_objext'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_header_compiler
=yes
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.
$ac_ext >&5
18991 ac_header_compiler
=no
18993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18995 echo "${ECHO_T}$ac_header_compiler" >&6
18997 # Is the header present?
18998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19000 cat >conftest.
$ac_ext <<_ACEOF
19003 cat confdefs.h
>>conftest.
$ac_ext
19004 cat >>conftest.
$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 #include <$ac_header>
19008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19009 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19011 grep -v '^ *+' conftest.er1
>conftest.err
19013 cat conftest.err
>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } >/dev
/null
; then
19016 if test -s conftest.err
; then
19017 ac_cpp_err
=$ac_c_preproc_warn_flag
19018 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19025 if test -z "$ac_cpp_err"; then
19026 ac_header_preproc
=yes
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.
$ac_ext >&5
19031 ac_header_preproc
=no
19033 rm -f conftest.err conftest.
$ac_ext
19034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19035 echo "${ECHO_T}$ac_header_preproc" >&6
19037 # So? What about this header?
19038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19044 ac_header_preproc
=yes
19047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19061 ## ------------------------------------------ ##
19062 ## Report this to the AC_PACKAGE_NAME lists. ##
19063 ## ------------------------------------------ ##
19066 sed "s/^/$as_me: WARNING: /" >&2
19069 echo "$as_me:$LINENO: checking for $ac_header" >&5
19070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 eval "$as_ac_Header=\$ac_header_preproc"
19076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19081 cat >>confdefs.h
<<_ACEOF
19082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19091 # Solaris requires -lintl if you want strerror (which calls dgettext)
19092 # to return localized messages.
19094 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19095 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19096 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 ac_check_lib_save_LIBS
=$LIBS
19100 LIBS
="-lintl $LIBS"
19101 cat >conftest.
$ac_ext <<_ACEOF
19104 cat confdefs.h
>>conftest.
$ac_ext
19105 cat >>conftest.
$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19108 /* Override any gcc2 internal prototype to avoid an error. */
19112 /* We use char because int might match the return type of a gcc2
19113 builtin and then its argument prototype would still apply. */
19123 rm -f conftest.
$ac_objext conftest
$ac_exeext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19125 (eval $ac_link) 2>conftest.er1
19127 grep -v '^ *+' conftest.er1
>conftest.err
19129 cat conftest.err
>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try
='test -z "$ac_c_werror_flag"
19133 || test ! -s conftest.err'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try
='test -s conftest$ac_exeext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_cv_lib_intl_dgettext
=yes
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.
$ac_ext >&5
19150 ac_cv_lib_intl_dgettext
=no
19152 rm -f conftest.err conftest.
$ac_objext \
19153 conftest
$ac_exeext conftest.
$ac_ext
19154 LIBS
=$ac_check_lib_save_LIBS
19156 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19157 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19158 if test $ac_cv_lib_intl_dgettext = yes; then
19159 cat >>confdefs.h
<<_ACEOF
19160 #define HAVE_LIBINTL 1
19163 LIBS
="-lintl $LIBS"
19168 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19169 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19170 if test "${emacs_cv_localtime_cache+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 if test x
$ac_cv_func_tzset = xyes
; then
19174 if test "$cross_compiling" = yes; then
19175 # If we have tzset, assume the worst when cross-compiling.
19176 emacs_cv_localtime_cache
=yes
19178 cat >conftest.
$ac_ext <<_ACEOF
19181 cat confdefs.h
>>conftest.
$ac_ext
19182 cat >>conftest.
$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19185 extern char **environ;
19189 for (to = from = environ; (*to = *from); from++)
19190 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19193 char TZ_GMT0[] = "TZ=GMT0";
19194 char TZ_PST8[] = "TZ=PST8";
19197 time_t now = time ((time_t *) 0);
19198 int hour_GMT0, hour_unset;
19199 if (putenv (TZ_GMT0) != 0)
19201 hour_GMT0 = localtime (&now)->tm_hour;
19203 hour_unset = localtime (&now)->tm_hour;
19204 if (putenv (TZ_PST8) != 0)
19206 if (localtime (&now)->tm_hour == hour_GMT0)
19209 if (localtime (&now)->tm_hour != hour_unset)
19214 rm -f conftest
$ac_exeext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19216 (eval $ac_link) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 emacs_cv_localtime_cache
=no
19227 echo "$as_me: program exited with status $ac_status" >&5
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.
$ac_ext >&5
19231 ( exit $ac_status )
19232 emacs_cv_localtime_cache
=yes
19234 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19237 # If we lack tzset, report that localtime does not cache TZ,
19238 # since we can't invalidate the cache if we don't have tzset.
19239 emacs_cv_localtime_cache
=no
19242 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19243 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19244 if test $emacs_cv_localtime_cache = yes; then
19246 cat >>confdefs.h
<<\_ACEOF
19247 #define LOCALTIME_CACHE 1
19252 if test "x$HAVE_TIMEVAL" = xyes
; then
19254 for ac_func
in gettimeofday
19256 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19257 echo "$as_me:$LINENO: checking for $ac_func" >&5
19258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19259 if eval "test \"\${$as_ac_var+set}\" = set"; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 cat >conftest.
$ac_ext <<_ACEOF
19265 cat confdefs.h
>>conftest.
$ac_ext
19266 cat >>conftest.
$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19270 #define $ac_func innocuous_$ac_func
19272 /* System header to define __stub macros and hopefully few prototypes,
19273 which can conflict with char $ac_func (); below.
19274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19275 <limits.h> exists even on freestanding compilers. */
19278 # include <limits.h>
19280 # include <assert.h>
19285 /* Override any gcc2 internal prototype to avoid an error. */
19290 /* We use char because int might match the return type of a gcc2
19291 builtin and then its argument prototype would still apply. */
19293 /* The GNU C library defines this for functions which it implements
19294 to always fail with ENOSYS. Some functions are actually named
19295 something starting with __ and the normal name is an alias. */
19296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19299 char (*f) () = $ac_func;
19308 return f != $ac_func;
19313 rm -f conftest.
$ac_objext conftest
$ac_exeext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>conftest.er1
19317 grep -v '^ *+' conftest.er1
>conftest.err
19319 cat conftest.err
>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try
='test -z "$ac_c_werror_flag"
19323 || test ! -s conftest.err'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try
='test -s conftest$ac_exeext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 eval "$as_ac_var=yes"
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.
$ac_ext >&5
19340 eval "$as_ac_var=no"
19342 rm -f conftest.err conftest.
$ac_objext \
19343 conftest
$ac_exeext conftest.
$ac_ext
19345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19347 if test `eval echo '${'$as_ac_var'}'` = yes; then
19348 cat >>confdefs.h
<<_ACEOF
19349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19355 if test $ac_cv_func_gettimeofday = yes; then
19356 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19357 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19358 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 cat >conftest.
$ac_ext <<_ACEOF
19364 cat confdefs.h
>>conftest.
$ac_ext
19365 cat >>conftest.
$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19368 #ifdef TIME_WITH_SYS_TIME
19369 #include <sys/time.h>
19372 #ifdef HAVE_SYS_TIME_H
19373 #include <sys/time.h>
19381 struct timeval time;
19382 gettimeofday (&time, 0);
19387 rm -f conftest.
$ac_objext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19389 (eval $ac_compile) 2>conftest.er1
19391 grep -v '^ *+' conftest.er1
>conftest.err
19393 cat conftest.err
>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try
='test -z "$ac_c_werror_flag"
19397 || test ! -s conftest.err'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try
='test -s conftest.$ac_objext'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 emacs_cv_gettimeofday_two_arguments
=yes
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.
$ac_ext >&5
19414 emacs_cv_gettimeofday_two_arguments
=no
19416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19418 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19419 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19420 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19422 cat >>confdefs.h
<<\_ACEOF
19423 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19430 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19431 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19432 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19433 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 cat >conftest.
$ac_ext <<_ACEOF
19439 cat confdefs.h
>>conftest.
$ac_ext
19440 cat >>conftest.
$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 #include <sys/types.h>
19443 #include <$ac_cv_struct_tm>
19449 static struct tm ac_aggr;
19450 if (ac_aggr.tm_zone)
19456 rm -f conftest.
$ac_objext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458 (eval $ac_compile) 2>conftest.er1
19460 grep -v '^ *+' conftest.er1
>conftest.err
19462 cat conftest.err
>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try
='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try
='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_member_struct_tm_tm_zone
=yes
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.
$ac_ext >&5
19483 cat >conftest.
$ac_ext <<_ACEOF
19486 cat confdefs.h
>>conftest.
$ac_ext
19487 cat >>conftest.
$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 #include <sys/types.h>
19490 #include <$ac_cv_struct_tm>
19496 static struct tm ac_aggr;
19497 if (sizeof ac_aggr.tm_zone)
19503 rm -f conftest.
$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>conftest.er1
19507 grep -v '^ *+' conftest.er1
>conftest.err
19509 cat conftest.err
>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try
='test -z "$ac_c_werror_flag"
19513 || test ! -s conftest.err'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try
='test -s conftest.$ac_objext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_member_struct_tm_tm_zone
=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.
$ac_ext >&5
19530 ac_cv_member_struct_tm_tm_zone
=no
19532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19537 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19538 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19540 cat >>confdefs.h
<<_ACEOF
19541 #define HAVE_STRUCT_TM_TM_ZONE 1
19547 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19549 cat >>confdefs.h
<<\_ACEOF
19550 #define HAVE_TM_ZONE 1
19554 echo "$as_me:$LINENO: checking for tzname" >&5
19555 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19556 if test "${ac_cv_var_tzname+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 cat >conftest.
$ac_ext <<_ACEOF
19562 cat confdefs.h
>>conftest.
$ac_ext
19563 cat >>conftest.
$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 #ifndef tzname /* For SGI. */
19567 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19578 rm -f conftest.
$ac_objext conftest
$ac_exeext
19579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>conftest.er1
19582 grep -v '^ *+' conftest.er1
>conftest.err
19584 cat conftest.err
>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try
='test -z "$ac_c_werror_flag"
19588 || test ! -s conftest.err'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try
='test -s conftest$ac_exeext'
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 ac_cv_var_tzname
=yes
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.
$ac_ext >&5
19605 ac_cv_var_tzname
=no
19607 rm -f conftest.err conftest.
$ac_objext \
19608 conftest
$ac_exeext conftest.
$ac_ext
19610 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19611 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19612 if test $ac_cv_var_tzname = yes; then
19614 cat >>confdefs.h
<<\_ACEOF
19615 #define HAVE_TZNAME 1
19622 if test "$ac_cv_func_gettimeofday" = yes; then
19623 echo "$as_me:$LINENO: checking for struct timezone" >&5
19624 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19625 if test "${emacs_cv_struct_timezone+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 cat >conftest.
$ac_ext <<_ACEOF
19631 cat confdefs.h
>>conftest.
$ac_ext
19632 cat >>conftest.
$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #include <sys/time.h>
19638 struct timezone tz;
19643 rm -f conftest.
$ac_objext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19647 grep -v '^ *+' conftest.er1
>conftest.err
19649 cat conftest.err
>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try
='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try
='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 if test "$cross_compiling" = yes; then
19666 emacs_cv_struct_timezone
=yes
19668 cat >conftest.
$ac_ext <<_ACEOF
19671 cat confdefs.h
>>conftest.
$ac_ext
19672 cat >>conftest.
$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19675 #ifdef TIME_WITH_SYS_TIME
19676 #include <sys/time.h>
19679 #ifdef HAVE_SYS_TIME_H
19680 #include <sys/time.h>
19686 struct timeval time;
19687 struct timezone dummy;
19688 exit (gettimeofday (&time, &dummy));
19691 rm -f conftest
$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 emacs_cv_struct_timezone
=yes
19704 echo "$as_me: program exited with status $ac_status" >&5
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.
$ac_ext >&5
19708 ( exit $ac_status )
19709 emacs_cv_struct_timezone
=no
19711 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.
$ac_ext >&5
19717 emacs_cv_struct_timezone
=no
19719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19721 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19722 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19726 echo "$as_me:$LINENO: checking for socket" >&5
19727 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19728 if test "${ac_cv_func_socket+set}" = set; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 cat >conftest.
$ac_ext <<_ACEOF
19734 cat confdefs.h
>>conftest.
$ac_ext
19735 cat >>conftest.
$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19739 #define socket innocuous_socket
19741 /* System header to define __stub macros and hopefully few prototypes,
19742 which can conflict with char socket (); below.
19743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744 <limits.h> exists even on freestanding compilers. */
19747 # include <limits.h>
19749 # include <assert.h>
19754 /* Override any gcc2 internal prototype to avoid an error. */
19759 /* We use char because int might match the return type of a gcc2
19760 builtin and then its argument prototype would still apply. */
19762 /* The GNU C library defines this for functions which it implements
19763 to always fail with ENOSYS. Some functions are actually named
19764 something starting with __ and the normal name is an alias. */
19765 #if defined (__stub_socket) || defined (__stub___socket)
19768 char (*f) () = socket;
19777 return f != socket;
19782 rm -f conftest.
$ac_objext conftest
$ac_exeext
19783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19784 (eval $ac_link) 2>conftest.er1
19786 grep -v '^ *+' conftest.er1
>conftest.err
19788 cat conftest.err
>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try
='test -z "$ac_c_werror_flag"
19792 || test ! -s conftest.err'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try
='test -s conftest$ac_exeext'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804 ac_cv_func_socket
=yes
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.
$ac_ext >&5
19809 ac_cv_func_socket
=no
19811 rm -f conftest.err conftest.
$ac_objext \
19812 conftest
$ac_exeext conftest.
$ac_ext
19814 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19815 echo "${ECHO_T}$ac_cv_func_socket" >&6
19816 if test $ac_cv_func_socket = yes; then
19822 if test $ok_so_far = yes; then
19823 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19824 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19825 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19826 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19830 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19832 # Is the header compilable?
19833 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19834 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19835 cat >conftest.
$ac_ext <<_ACEOF
19838 cat confdefs.h
>>conftest.
$ac_ext
19839 cat >>conftest.
$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 $ac_includes_default
19842 #include <netinet/in.h>
19844 rm -f conftest.
$ac_objext
19845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19846 (eval $ac_compile) 2>conftest.er1
19848 grep -v '^ *+' conftest.er1
>conftest.err
19850 cat conftest.err
>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
19853 { ac_try
='test -z "$ac_c_werror_flag"
19854 || test ! -s conftest.err'
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; } &&
19860 { ac_try
='test -s conftest.$ac_objext'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
19866 ac_header_compiler
=yes
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.
$ac_ext >&5
19871 ac_header_compiler
=no
19873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19875 echo "${ECHO_T}$ac_header_compiler" >&6
19877 # Is the header present?
19878 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19879 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19880 cat >conftest.
$ac_ext <<_ACEOF
19883 cat confdefs.h
>>conftest.
$ac_ext
19884 cat >>conftest.
$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <netinet/in.h>
19888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19891 grep -v '^ *+' conftest.er1
>conftest.err
19893 cat conftest.err
>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } >/dev
/null
; then
19896 if test -s conftest.err
; then
19897 ac_cpp_err
=$ac_c_preproc_warn_flag
19898 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19905 if test -z "$ac_cpp_err"; then
19906 ac_header_preproc
=yes
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.
$ac_ext >&5
19911 ac_header_preproc
=no
19913 rm -f conftest.err conftest.
$ac_ext
19914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915 echo "${ECHO_T}$ac_header_preproc" >&6
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19920 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19921 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19923 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19924 ac_header_preproc
=yes
19927 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19928 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19930 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19932 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19934 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19936 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19938 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19941 ## ------------------------------------------ ##
19942 ## Report this to the AC_PACKAGE_NAME lists. ##
19943 ## ------------------------------------------ ##
19946 sed "s/^/$as_me: WARNING: /" >&2
19949 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19950 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19951 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 ac_cv_header_netinet_in_h
=$ac_header_preproc
19956 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19957 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19960 if test $ac_cv_header_netinet_in_h = yes; then
19968 if test $ok_so_far = yes; then
19969 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19970 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19971 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19972 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19976 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19978 # Is the header compilable?
19979 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19980 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19981 cat >conftest.
$ac_ext <<_ACEOF
19984 cat confdefs.h
>>conftest.
$ac_ext
19985 cat >>conftest.
$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 $ac_includes_default
19988 #include <arpa/inet.h>
19990 rm -f conftest.
$ac_objext
19991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19992 (eval $ac_compile) 2>conftest.er1
19994 grep -v '^ *+' conftest.er1
>conftest.err
19996 cat conftest.err
>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
19999 { ac_try
='test -z "$ac_c_werror_flag"
20000 || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try
='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler
=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.
$ac_ext >&5
20017 ac_header_compiler
=no
20019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6
20023 # Is the header present?
20024 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20025 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20026 cat >conftest.
$ac_ext <<_ACEOF
20029 cat confdefs.h
>>conftest.
$ac_ext
20030 cat >>conftest.
$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <arpa/inet.h>
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20037 grep -v '^ *+' conftest.er1
>conftest.err
20039 cat conftest.err
>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev
/null
; then
20042 if test -s conftest.err
; then
20043 ac_cpp_err
=$ac_c_preproc_warn_flag
20044 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20051 if test -z "$ac_cpp_err"; then
20052 ac_header_preproc
=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.
$ac_ext >&5
20057 ac_header_preproc
=no
20059 rm -f conftest.err conftest.
$ac_ext
20060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc
=yes
20073 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20087 ## ------------------------------------------ ##
20088 ## Report this to the AC_PACKAGE_NAME lists. ##
20089 ## ------------------------------------------ ##
20092 sed "s/^/$as_me: WARNING: /" >&2
20095 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20096 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20097 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20102 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20103 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20106 if test $ac_cv_header_arpa_inet_h = yes; then
20114 if test $ok_so_far = yes; then
20116 cat >>confdefs.h
<<\_ACEOF
20117 #define HAVE_INET_SOCKETS 1
20123 for ac_header
in sys
/ioctl.h
20125 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20127 echo "$as_me:$LINENO: checking for $ac_header" >&5
20128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20135 # Is the header compilable?
20136 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20138 cat >conftest.
$ac_ext <<_ACEOF
20141 cat confdefs.h
>>conftest.
$ac_ext
20142 cat >>conftest.
$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 $ac_includes_default
20145 #include <$ac_header>
20147 rm -f conftest.
$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20151 grep -v '^ *+' conftest.er1
>conftest.err
20153 cat conftest.err
>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try
='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } &&
20163 { ac_try
='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 ac_header_compiler
=yes
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.
$ac_ext >&5
20174 ac_header_compiler
=no
20176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20178 echo "${ECHO_T}$ac_header_compiler" >&6
20180 # Is the header present?
20181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20183 cat >conftest.
$ac_ext <<_ACEOF
20186 cat confdefs.h
>>conftest.
$ac_ext
20187 cat >>conftest.
$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 #include <$ac_header>
20191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20192 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20194 grep -v '^ *+' conftest.er1
>conftest.err
20196 cat conftest.err
>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } >/dev
/null
; then
20199 if test -s conftest.err
; then
20200 ac_cpp_err
=$ac_c_preproc_warn_flag
20201 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20208 if test -z "$ac_cpp_err"; then
20209 ac_header_preproc
=yes
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.
$ac_ext >&5
20214 ac_header_preproc
=no
20216 rm -f conftest.err conftest.
$ac_ext
20217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20218 echo "${ECHO_T}$ac_header_preproc" >&6
20220 # So? What about this header?
20221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20227 ac_header_preproc
=yes
20230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20244 ## ------------------------------------------ ##
20245 ## Report this to the AC_PACKAGE_NAME lists. ##
20246 ## ------------------------------------------ ##
20249 sed "s/^/$as_me: WARNING: /" >&2
20252 echo "$as_me:$LINENO: checking for $ac_header" >&5
20253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 eval "$as_ac_Header=\$ac_header_preproc"
20259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20264 cat >>confdefs.h
<<_ACEOF
20265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20273 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20275 cat >>confdefs.h
<<\_ACEOF
20276 #define HAVE_AIX_SMT_EXP 1
20281 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20282 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20283 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20284 echo "$as_me:$LINENO: result: yes" >&5
20285 echo "${ECHO_T}yes" >&6
20287 cat >>confdefs.h
<<\_ACEOF
20288 #define HAVE_DEV_PTMX 1
20292 echo "$as_me:$LINENO: result: no" >&5
20293 echo "${ECHO_T}no" >&6
20296 echo "$as_me:$LINENO: checking for pid_t" >&5
20297 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20298 if test "${ac_cv_type_pid_t+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 cat >conftest.
$ac_ext <<_ACEOF
20304 cat confdefs.h
>>conftest.
$ac_ext
20305 cat >>conftest.
$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 $ac_includes_default
20313 if (sizeof (pid_t))
20319 rm -f conftest.
$ac_objext
20320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20321 (eval $ac_compile) 2>conftest.er1
20323 grep -v '^ *+' conftest.er1
>conftest.err
20325 cat conftest.err
>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } &&
20328 { ac_try
='test -z "$ac_c_werror_flag"
20329 || test ! -s conftest.err'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try
='test -s conftest.$ac_objext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_type_pid_t
=yes
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.
$ac_ext >&5
20346 ac_cv_type_pid_t
=no
20348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20350 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20351 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20352 if test $ac_cv_type_pid_t = yes; then
20356 cat >>confdefs.h
<<_ACEOF
20364 for ac_header
in unistd.h vfork.h
20366 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20368 echo "$as_me:$LINENO: checking for $ac_header" >&5
20369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20376 # Is the header compilable?
20377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20379 cat >conftest.
$ac_ext <<_ACEOF
20382 cat confdefs.h
>>conftest.
$ac_ext
20383 cat >>conftest.
$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20385 $ac_includes_default
20386 #include <$ac_header>
20388 rm -f conftest.
$ac_objext
20389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20390 (eval $ac_compile) 2>conftest.er1
20392 grep -v '^ *+' conftest.er1
>conftest.err
20394 cat conftest.err
>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
20397 { ac_try
='test -z "$ac_c_werror_flag"
20398 || test ! -s conftest.err'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try
='test -s conftest.$ac_objext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_header_compiler
=yes
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.
$ac_ext >&5
20415 ac_header_compiler
=no
20417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20419 echo "${ECHO_T}$ac_header_compiler" >&6
20421 # Is the header present?
20422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20424 cat >conftest.
$ac_ext <<_ACEOF
20427 cat confdefs.h
>>conftest.
$ac_ext
20428 cat >>conftest.
$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430 #include <$ac_header>
20432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20433 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20435 grep -v '^ *+' conftest.er1
>conftest.err
20437 cat conftest.err
>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } >/dev
/null
; then
20440 if test -s conftest.err
; then
20441 ac_cpp_err
=$ac_c_preproc_warn_flag
20442 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20449 if test -z "$ac_cpp_err"; then
20450 ac_header_preproc
=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.
$ac_ext >&5
20455 ac_header_preproc
=no
20457 rm -f conftest.err conftest.
$ac_ext
20458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20459 echo "${ECHO_T}$ac_header_preproc" >&6
20461 # So? What about this header?
20462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20468 ac_header_preproc
=yes
20471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20485 ## ------------------------------------------ ##
20486 ## Report this to the AC_PACKAGE_NAME lists. ##
20487 ## ------------------------------------------ ##
20490 sed "s/^/$as_me: WARNING: /" >&2
20493 echo "$as_me:$LINENO: checking for $ac_header" >&5
20494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 eval "$as_ac_Header=\$ac_header_preproc"
20500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20505 cat >>confdefs.h
<<_ACEOF
20506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20515 for ac_func
in fork vfork
20517 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518 echo "$as_me:$LINENO: checking for $ac_func" >&5
20519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20520 if eval "test \"\${$as_ac_var+set}\" = set"; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 cat >conftest.
$ac_ext <<_ACEOF
20526 cat confdefs.h
>>conftest.
$ac_ext
20527 cat >>conftest.
$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20531 #define $ac_func innocuous_$ac_func
20533 /* System header to define __stub macros and hopefully few prototypes,
20534 which can conflict with char $ac_func (); below.
20535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536 <limits.h> exists even on freestanding compilers. */
20539 # include <limits.h>
20541 # include <assert.h>
20546 /* Override any gcc2 internal prototype to avoid an error. */
20551 /* We use char because int might match the return type of a gcc2
20552 builtin and then its argument prototype would still apply. */
20554 /* The GNU C library defines this for functions which it implements
20555 to always fail with ENOSYS. Some functions are actually named
20556 something starting with __ and the normal name is an alias. */
20557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20560 char (*f) () = $ac_func;
20569 return f != $ac_func;
20574 rm -f conftest.
$ac_objext conftest
$ac_exeext
20575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20576 (eval $ac_link) 2>conftest.er1
20578 grep -v '^ *+' conftest.er1
>conftest.err
20580 cat conftest.err
>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } &&
20583 { ac_try
='test -z "$ac_c_werror_flag"
20584 || test ! -s conftest.err'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; } &&
20590 { ac_try
='test -s conftest$ac_exeext'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 eval "$as_ac_var=yes"
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.
$ac_ext >&5
20601 eval "$as_ac_var=no"
20603 rm -f conftest.err conftest.
$ac_objext \
20604 conftest
$ac_exeext conftest.
$ac_ext
20606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20608 if test `eval echo '${'$as_ac_var'}'` = yes; then
20609 cat >>confdefs.h
<<_ACEOF
20610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20616 if test "x$ac_cv_func_fork" = xyes
; then
20617 echo "$as_me:$LINENO: checking for working fork" >&5
20618 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20619 if test "${ac_cv_func_fork_works+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 if test "$cross_compiling" = yes; then
20623 ac_cv_func_fork_works
=cross
20625 cat >conftest.
$ac_ext <<_ACEOF
20626 /* By Ruediger Kuhlmann. */
20627 #include <sys/types.h>
20629 # include <unistd.h>
20631 /* Some systems only have a dummy stub for fork() */
20639 rm -f conftest
$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 ac_cv_func_fork_works
=yes
20652 echo "$as_me: program exited with status $ac_status" >&5
20653 echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.
$ac_ext >&5
20656 ( exit $ac_status )
20657 ac_cv_func_fork_works
=no
20659 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20662 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20663 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20666 ac_cv_func_fork_works
=$ac_cv_func_fork
20668 if test "x$ac_cv_func_fork_works" = xcross
; then
20670 *-*-amigaos* |
*-*-msdosdjgpp*)
20671 # Override, as these systems have only a dummy fork() stub
20672 ac_cv_func_fork_works
=no
20675 ac_cv_func_fork_works
=yes
20678 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20679 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20681 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20682 if test "x$ac_cv_func_vfork" = xyes
; then
20683 echo "$as_me:$LINENO: checking for working vfork" >&5
20684 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20685 if test "${ac_cv_func_vfork_works+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 if test "$cross_compiling" = yes; then
20689 ac_cv_func_vfork_works
=cross
20691 cat >conftest.
$ac_ext <<_ACEOF
20694 cat confdefs.h
>>conftest.
$ac_ext
20695 cat >>conftest.
$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20697 /* Thanks to Paul Eggert for this test. */
20699 #include <stdlib.h>
20700 #include <sys/types.h>
20701 #include <sys/stat.h>
20702 #include <sys/wait.h>
20704 # include <unistd.h>
20707 # include <vfork.h>
20709 /* On some sparc systems, changes by the child to local and incoming
20710 argument registers are propagated back to the parent. The compiler
20711 is told about this with #include <vfork.h>, but some compilers
20712 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20713 static variable whose address is put into a register that is
20714 clobbered by the vfork. */
20717 sparc_address_test (int arg)
20719 sparc_address_test (arg) int arg;
20722 static pid_t child;
20740 pid_t parent = getpid ();
20743 sparc_address_test (0);
20748 /* Here is another test for sparc vfork register problems. This
20749 test uses lots of local variables, at least as many local
20750 variables as main has allocated so far including compiler
20751 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20752 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20753 reuse the register of parent for one of the local variables,
20754 since it will think that parent can't possibly be used any more
20755 in this routine. Assigning to the local variable will thus
20756 munge parent in the parent process. */
20758 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20759 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20760 /* Convince the compiler that p..p7 are live; otherwise, it might
20761 use the same hardware register for all 8 local variables. */
20762 if (p != p1 || p != p2 || p != p3 || p != p4
20763 || p != p5 || p != p6 || p != p7)
20766 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20767 from child file descriptors. If the child closes a descriptor
20768 before it execs or exits, this munges the parent's descriptor
20769 as well. Test for this by closing stdout in the child. */
20770 _exit(close(fileno(stdout)) != 0);
20775 while (wait(&status) != child)
20778 /* Was there some problem with vforking? */
20781 /* Did the child fail? (This shouldn't happen.) */
20784 /* Did the vfork/compiler bug occur? */
20785 || parent != getpid()
20787 /* Did the file descriptor bug occur? */
20788 || fstat(fileno(stdout), &st) != 0
20793 rm -f conftest
$ac_exeext
20794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20795 (eval $ac_link) 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 ac_cv_func_vfork_works
=yes
20806 echo "$as_me: program exited with status $ac_status" >&5
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.
$ac_ext >&5
20810 ( exit $ac_status )
20811 ac_cv_func_vfork_works
=no
20813 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20816 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20817 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20820 if test "x$ac_cv_func_fork_works" = xcross
; then
20821 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20822 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20823 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20826 if test "x$ac_cv_func_vfork_works" = xyes
; then
20828 cat >>confdefs.h
<<\_ACEOF
20829 #define HAVE_WORKING_VFORK 1
20834 cat >>confdefs.h
<<\_ACEOF
20839 if test "x$ac_cv_func_fork_works" = xyes
; then
20841 cat >>confdefs.h
<<\_ACEOF
20842 #define HAVE_WORKING_FORK 1
20848 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20849 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20850 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 cat >conftest.
$ac_ext <<_ACEOF
20856 cat confdefs.h
>>conftest.
$ac_ext
20857 cat >>conftest.
$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <langinfo.h>
20863 char* cs = nl_langinfo(CODESET);
20868 rm -f conftest.
$ac_objext conftest
$ac_exeext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>conftest.er1
20872 grep -v '^ *+' conftest.er1
>conftest.err
20874 cat conftest.err
>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
20877 { ac_try
='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try
='test -s conftest$ac_exeext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 emacs_cv_langinfo_codeset
=yes
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.
$ac_ext >&5
20895 emacs_cv_langinfo_codeset
=no
20897 rm -f conftest.err conftest.
$ac_objext \
20898 conftest
$ac_exeext conftest.
$ac_ext
20901 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20902 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20903 if test $emacs_cv_langinfo_codeset = yes; then
20905 cat >>confdefs.h
<<\_ACEOF
20906 #define HAVE_LANGINFO_CODESET 1
20911 echo "$as_me:$LINENO: checking for size_t" >&5
20912 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20913 if test "${ac_cv_type_size_t+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 cat >conftest.
$ac_ext <<_ACEOF
20919 cat confdefs.h
>>conftest.
$ac_ext
20920 cat >>conftest.
$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20922 $ac_includes_default
20928 if (sizeof (size_t))
20934 rm -f conftest.
$ac_objext
20935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20936 (eval $ac_compile) 2>conftest.er1
20938 grep -v '^ *+' conftest.er1
>conftest.err
20940 cat conftest.err
>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } &&
20943 { ac_try
='test -z "$ac_c_werror_flag"
20944 || test ! -s conftest.err'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; } &&
20950 { ac_try
='test -s conftest.$ac_objext'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }; then
20956 ac_cv_type_size_t
=yes
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.
$ac_ext >&5
20961 ac_cv_type_size_t
=no
20963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20965 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20966 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20967 if test $ac_cv_type_size_t = yes; then
20969 cat >>confdefs.h
<<_ACEOF
20970 #define HAVE_SIZE_T 1
20977 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20978 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20979 if test "${ac_cv_type_mbstate_t+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 cat >conftest.
$ac_ext <<_ACEOF
20985 cat confdefs.h
>>conftest.
$ac_ext
20986 cat >>conftest.
$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 $ac_includes_default
20989 # include <wchar.h>
20993 mbstate_t x; return sizeof x;
20998 rm -f conftest.
$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>conftest.er1
21002 grep -v '^ *+' conftest.er1
>conftest.err
21004 cat conftest.err
>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try
='test -z "$ac_c_werror_flag"
21008 || test ! -s conftest.err'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try
='test -s conftest.$ac_objext'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21020 ac_cv_type_mbstate_t
=yes
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.
$ac_ext >&5
21025 ac_cv_type_mbstate_t
=no
21027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21029 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21030 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21031 if test $ac_cv_type_mbstate_t = yes; then
21033 cat >>confdefs.h
<<\_ACEOF
21034 #define HAVE_MBSTATE_T 1
21039 cat >>confdefs.h
<<\_ACEOF
21040 #define mbstate_t int
21045 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21046 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21047 if test "${emacs_cv_c_restrict+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 cat >conftest.
$ac_ext <<_ACEOF
21053 cat confdefs.h
>>conftest.
$ac_ext
21054 cat >>conftest.
$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 void fred (int *restrict x);
21065 rm -f conftest.
$ac_objext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067 (eval $ac_compile) 2>conftest.er1
21069 grep -v '^ *+' conftest.er1
>conftest.err
21071 cat conftest.err
>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try
='test -z "$ac_c_werror_flag"
21075 || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try
='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 emacs_cv_c_restrict
=yes
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.
$ac_ext >&5
21092 cat >conftest.
$ac_ext <<_ACEOF
21095 cat confdefs.h
>>conftest.
$ac_ext
21096 cat >>conftest.
$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 void fred (int *__restrict x);
21107 rm -f conftest.
$ac_objext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21109 (eval $ac_compile) 2>conftest.er1
21111 grep -v '^ *+' conftest.er1
>conftest.err
21113 cat conftest.err
>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
21116 { ac_try
='test -z "$ac_c_werror_flag"
21117 || test ! -s conftest.err'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try
='test -s conftest.$ac_objext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 emacs_cv_c_restrict
=__restrict
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.
$ac_ext >&5
21134 emacs_cv_c_restrict
=no
21136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21138 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21140 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21141 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21142 case "$emacs_cv_c_restrict" in
21143 yes) emacs_restrict
=restrict
;;
21144 no
) emacs_restrict
="";;
21145 *) emacs_restrict
="$emacs_cv_c_restrict";;
21147 if test "$emacs_restrict" != __restrict
; then
21149 cat >>confdefs.h
<<_ACEOF
21150 #define __restrict $emacs_restrict
21155 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21156 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21157 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 cat >conftest.
$ac_ext <<_ACEOF
21163 cat confdefs.h
>>conftest.
$ac_ext
21164 cat >>conftest.
$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 void fred (int x[__restrict]);
21175 rm -f conftest.
$ac_objext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177 (eval $ac_compile) 2>conftest.er1
21179 grep -v '^ *+' conftest.er1
>conftest.err
21181 cat conftest.err
>&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try
='test -z "$ac_c_werror_flag"
21185 || test ! -s conftest.err'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try
='test -s conftest.$ac_objext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 emacs_cv_c_restrict_arr
=yes
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.
$ac_ext >&5
21202 emacs_cv_c_restrict_arr
=no
21204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21206 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21207 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21208 if test "$emacs_cv_c_restrict_arr" = yes; then
21210 cat >>confdefs.h
<<\_ACEOF
21211 #define __restrict_arr __restrict
21218 # Set up the CFLAGS for real compilation, so we can substitute it.
21219 CFLAGS
="$REAL_CFLAGS"
21220 CPPFLAGS
="$REAL_CPPFLAGS"
21222 #### Find out which version of Emacs this is.
21223 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21224 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21225 if test x
"${version}" = x
; then
21226 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21227 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21228 { (exit 1); exit 1; }; }
21231 ### Specify what sort of things we'll be editing into Makefile and config.h.
21232 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21268 cat >>confdefs.h
<<_ACEOF
21269 #define EMACS_CONFIGURATION "${canonical}"
21273 cat >>confdefs.h
<<_ACEOF
21274 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21278 cat >>confdefs.h
<<_ACEOF
21279 #define config_machfile "${machfile}"
21283 cat >>confdefs.h
<<_ACEOF
21284 #define config_opsysfile "${opsysfile}"
21288 cat >>confdefs.h
<<_ACEOF
21289 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21293 cat >>confdefs.h
<<_ACEOF
21294 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21298 cat >>confdefs.h
<<_ACEOF
21299 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21303 cat >>confdefs.h
<<_ACEOF
21304 #define UNEXEC_SRC ${UNEXEC_SRC}
21308 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21310 cat >>confdefs.h
<<\_ACEOF
21311 #define HAVE_X_WINDOWS 1
21315 if test "${USE_X_TOOLKIT}" != "none" ; then
21317 cat >>confdefs.h
<<\_ACEOF
21318 #define USE_X_TOOLKIT 1
21322 if test "${HAVE_X11}" = "yes" ; then
21324 cat >>confdefs.h
<<\_ACEOF
21329 if test "${HAVE_XFREE386}" = "yes" ; then
21331 cat >>confdefs.h
<<\_ACEOF
21332 #define HAVE_XFREE386 1
21336 if test "${HAVE_MENUS}" = "yes" ; then
21338 cat >>confdefs.h
<<\_ACEOF
21339 #define HAVE_MENUS 1
21343 if test "${GNU_MALLOC}" = "yes" ; then
21345 cat >>confdefs.h
<<\_ACEOF
21346 #define GNU_MALLOC 1
21350 if test "${REL_ALLOC}" = "yes" ; then
21352 cat >>confdefs.h
<<\_ACEOF
21353 #define REL_ALLOC 1
21362 #### Report on what we decided to do.
21363 #### Report GTK as a toolkit, even if it doesn't use Xt.
21364 #### It makes printing result more understandable as using GTK sets
21365 #### toolkit_scroll_bars to yes by default.
21366 if test "${HAVE_GTK}" = "yes"; then
21371 Configured for \`${canonical}'.
21373 Where should the build process find the source code? ${srcdir}
21374 What operating system and machine description files should Emacs use?
21375 \`${opsysfile}' and \`${machfile}'
21376 What compiler should emacs be built with? ${CC} ${CFLAGS}
21377 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21378 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21379 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21380 What window system should Emacs use? ${window_system}
21381 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21383 if test -n "${x_includes}"; then
21384 echo " Where do we find X Windows header files? ${x_includes}"
21386 echo " Where do we find X Windows header files? Standard dirs"
21388 if test -n "${x_libraries}"; then
21389 echo " Where do we find X Windows libraries? ${x_libraries}"
21391 echo " Where do we find X Windows libraries? Standard dirs"
21394 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21395 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21396 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21397 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21398 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21399 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21400 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21403 # Remove any trailing slashes in these variables.
21404 test "${prefix}" != NONE
&&
21405 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21406 test "${exec_prefix}" != NONE
&&
21407 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21409 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21410 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21411 ## from Makefile.c can correctly provide the arg `-traditional' to the
21414 cat >conftest.
$ac_ext <<_ACEOF
21417 cat confdefs.h
>>conftest.
$ac_ext
21418 cat >>conftest.
$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21423 $EGREP "yes..yes" >/dev
/null
2>&1; then
21424 CPP_NEED_TRADITIONAL
=no
21426 CPP_NEED_TRADITIONAL
=yes
21431 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"
21432 ac_config_commands
="$ac_config_commands default"
21433 cat >confcache
<<\_ACEOF
21434 # This file is a shell script that caches the results of configure
21435 # tests run on this system so they can be shared between configure
21436 # scripts and configure runs, see configure's option --config-cache.
21437 # It is not useful on other systems. If it contains results you don't
21438 # want to keep, you may remove or edit it.
21440 # config.status only pays attention to the cache file if you give it
21441 # the --recheck option to rerun configure.
21443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21445 # following values.
21449 # The following way of writing the cache mishandles newlines in values,
21450 # but we know of no workaround that is simple, portable, and efficient.
21451 # So, don't put newlines in cache variables' values.
21452 # Ultrix sh set writes to stderr and can't be redirected directly,
21453 # and sets the high bit in the cache file unless we assign to the vars.
21456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21458 # `set' does not quote correctly, so add quotes (double-quote
21459 # substitution turns \\\\ into \\, and sed turns \\ into \).
21462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21465 # `set' quotes correctly as required by POSIX, so do not add quotes.
21467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21478 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21479 if test -w $cache_file; then
21480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21481 cat confcache
>$cache_file
21483 echo "not updating unwritable cache $cache_file"
21488 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21489 # Let make expand exec_prefix.
21490 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21494 # trailing colons and then remove the whole line if VPATH becomes empty
21495 # (actually we leave an empty line to preserve line numbers).
21496 if test "x$srcdir" = x.
; then
21497 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21498 s/:*\$(srcdir):*/:/;
21499 s/:*\${srcdir}:*/:/;
21501 s/^\([^=]*=[ ]*\):*/\1/;
21507 DEFS
=-DHAVE_CONFIG_H
21511 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21512 # 1. Remove the extension, and $U if already installed.
21513 ac_i
=`echo "$ac_i" |
21514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21516 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21517 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21519 LIBOBJS
=$ac_libobjs
21521 LTLIBOBJS
=$ac_ltlibobjs
21525 : ${CONFIG_STATUS=./config.status}
21526 ac_clean_files_save
=$ac_clean_files
21527 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21530 cat >$CONFIG_STATUS <<_ACEOF
21532 # Generated by $as_me.
21533 # Run this file to recreate the current configuration.
21534 # Compiler output produced by configure, useful for debugging
21535 # configure, is in config.log if it exists.
21538 ac_cs_recheck=false
21540 SHELL=\${CONFIG_SHELL-$SHELL}
21543 cat >>$CONFIG_STATUS <<\_ACEOF
21544 ## --------------------- ##
21545 ## M4sh Initialization. ##
21546 ## --------------------- ##
21548 # Be Bourne compatible
21549 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21553 # is contrary to our usage. Disable this feature.
21554 alias -g '${1+"$@"}'='"$@"'
21555 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21558 DUALCASE
=1; export DUALCASE
# for MKS sh
21560 # Support unset when possible.
21561 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21568 # Work around bugs in pre-3.0 UWIN ksh.
21569 $as_unset ENV MAIL MAILPATH
21576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21578 LC_TELEPHONE LC_TIME
21580 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21581 eval $as_var=C
; export $as_var
21587 # Required to use basename.
21588 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21594 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21595 as_basename
=basename
21601 # Name of the executable.
21602 as_me
=`$as_basename "$0" ||
21603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21604 X"$0" : 'X\(//\)$' \| \
21605 X"$0" : 'X\(/\)$' \| \
21606 . : '\(.\)' 2>/dev/null ||
21608 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21609 /^X\/\(\/\/\)$/{ s//\1/; q; }
21610 /^X\/\(\/\).*/{ s//\1/; q; }
21614 # PATH needs CR, and LINENO needs CR and PATH.
21615 # Avoid depending upon Character Ranges.
21616 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21617 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21618 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21619 as_cr_digits
='0123456789'
21620 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21622 # The user is always right.
21623 if test "${PATH_SEPARATOR+set}" != set; then
21624 echo "#! /bin/sh" >conf$$.sh
21625 echo "exit 0" >>conf$$.sh
21627 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21636 as_lineno_1
=$LINENO
21637 as_lineno_2
=$LINENO
21638 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21639 test "x$as_lineno_1" != "x$as_lineno_2" &&
21640 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21641 # Find who we are. Look in the path if we contain no path at all
21644 *[\\/]* ) as_myself
=$0 ;;
21645 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21646 for as_dir
in $PATH
21649 test -z "$as_dir" && as_dir
=.
21650 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21655 # We did not find ourselves, most probably we were run as `sh COMMAND'
21656 # in which case we are not to be found in the path.
21657 if test "x$as_myself" = x
; then
21660 if test ! -f "$as_myself"; then
21661 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21662 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21663 { (exit 1); exit 1; }; }
21665 case $CONFIG_SHELL in
21667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21668 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21671 test -z "$as_dir" && as_dir
=.
21672 for as_base
in sh bash ksh sh5
; do
21675 if ("$as_dir/$as_base" -c '
21676 as_lineno_1=$LINENO
21677 as_lineno_2=$LINENO
21678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21679 test "x$as_lineno_1" != "x$as_lineno_2" &&
21680 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21681 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21682 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21683 CONFIG_SHELL
=$as_dir/$as_base
21684 export CONFIG_SHELL
21685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21694 # uniformly replaced by the line number. The first 'sed' inserts a
21695 # line-number line before each line; the second 'sed' does the real
21696 # work. The second script uses 'N' to pair each line-number line
21697 # with the numbered line, and appends trailing '-' during
21698 # substitution so that $LINENO is not a special case at line end.
21699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21701 sed '=' <$as_myself |
21706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21709 s,^['$as_cr_digits']*\n,,
21710 ' >$as_me.lineno
&&
21711 chmod +x
$as_me.lineno ||
21712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21714 { (exit 1); exit 1; }; }
21716 # Don't try to exec as it changes $[0], causing all sort of problems
21717 # (the dirname of $[0] is not the place where we might find the
21718 # original and so on. Autoconf is especially sensible to this).
21720 # Exit status is that of the last command.
21725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21726 *c
*,-n*) ECHO_N
= ECHO_C
='
21728 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21729 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21732 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21738 rm -f conf$$ conf$$.exe conf$$.
file
21740 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21741 # We could just check for DJGPP; but this test a) works b) is more generic
21742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21743 if test -f conf$$.exe
; then
21744 # Don't use ln at all; we don't have any links
21749 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21754 rm -f conf$$ conf$$.exe conf$$.
file
21756 if mkdir
-p .
2>/dev
/null
; then
21759 test -d .
/-p && rmdir .
/-p
21763 as_executable_p
="test -f"
21765 # Sed expression to map a string onto a valid CPP name.
21766 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21768 # Sed expression to map a string onto a valid variable name.
21769 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21773 # We need space, tab and new line, in precisely that order.
21783 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21784 # report actual input values of CONFIG_FILES etc. instead of their
21785 # values after options handling. Logging --version etc. is OK.
21789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21790 ## Running $as_me. ##
21795 This file was extended by $as_me, which was
21796 generated by GNU Autoconf 2.59. Invocation command line was
21798 CONFIG_FILES = $CONFIG_FILES
21799 CONFIG_HEADERS = $CONFIG_HEADERS
21800 CONFIG_LINKS = $CONFIG_LINKS
21801 CONFIG_COMMANDS = $CONFIG_COMMANDS
21805 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21809 # Files that config.status was made for.
21810 if test -n "$ac_config_files"; then
21811 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21814 if test -n "$ac_config_headers"; then
21815 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21818 if test -n "$ac_config_links"; then
21819 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21822 if test -n "$ac_config_commands"; then
21823 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21826 cat >>$CONFIG_STATUS <<\_ACEOF
21829 \`$as_me' instantiates files from templates according to the
21830 current configuration.
21832 Usage: $0 [OPTIONS] [FILE]...
21834 -h, --help print this help, then exit
21835 -V, --version print version number, then exit
21836 -q, --quiet do not print progress messages
21837 -d, --debug don't remove temporary files
21838 --recheck update $as_me by reconfiguring in the same conditions
21839 --file=FILE[:TEMPLATE]
21840 instantiate the configuration file FILE
21841 --header=FILE[:TEMPLATE]
21842 instantiate the configuration header FILE
21844 Configuration files:
21847 Configuration headers:
21850 Configuration commands:
21853 Report bugs to <bug-autoconf@gnu.org>."
21856 cat >>$CONFIG_STATUS <<_ACEOF
21859 configured by $0, generated by GNU Autoconf 2.59,
21860 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21862 Copyright (C) 2003 Free Software Foundation, Inc.
21863 This config.status script is free software; the Free Software Foundation
21864 gives unlimited permission to copy, distribute and modify it."
21869 cat >>$CONFIG_STATUS <<\_ACEOF
21870 # If no file are specified by the user, then we need to provide default
21871 # value. By we need to know if files were specified by the user.
21877 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21878 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21886 *) # This is not an option, so the user has probably given explicit
21889 ac_need_defaults
=false
;;
21893 # Handling of the options.
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21898 --version |
--vers* |
-V )
21899 echo "$ac_cs_version"; exit 0 ;;
21901 # Conflict between --help and --header
21902 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21903 Try \`$0 --help' for more information." >&5
21904 echo "$as_me: error: ambiguous option: $1
21905 Try \`$0 --help' for more information." >&2;}
21906 { (exit 1); exit 1; }; };;
21907 --help |
--hel |
-h )
21908 echo "$ac_cs_usage"; exit 0 ;;
21909 --debug |
--d* |
-d )
21911 --file |
--fil |
--fi |
--f )
21913 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21914 ac_need_defaults
=false
;;
21915 --header |
--heade |
--head |
--hea )
21917 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21918 ac_need_defaults
=false
;;
21919 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21920 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21923 # This is an error.
21924 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21925 Try \`$0 --help' for more information." >&5
21926 echo "$as_me: error: unrecognized option: $1
21927 Try \`$0 --help' for more information." >&2;}
21928 { (exit 1); exit 1; }; } ;;
21930 *) ac_config_targets
="$ac_config_targets $1" ;;
21936 ac_configure_extra_args
=
21938 if $ac_cs_silent; then
21940 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21944 cat >>$CONFIG_STATUS <<_ACEOF
21945 if \$ac_cs_recheck; then
21946 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21947 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21952 cat >>$CONFIG_STATUS <<_ACEOF
21954 # INIT-COMMANDS section.
21957 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21963 cat >>$CONFIG_STATUS <<\_ACEOF
21964 for ac_config_target
in $ac_config_targets
21966 case "$ac_config_target" in
21967 # Handling of arguments.
21968 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21969 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21970 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
21971 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
21972 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
21973 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21974 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
21975 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
21976 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
21977 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
21978 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21979 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21980 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21981 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21982 { (exit 1); exit 1; }; };;
21986 # If the user did not use the arguments to specify the items to instantiate,
21987 # then the envvar interface is used. Set only those that are not.
21988 # We use the long form for the default assignment because of an extremely
21989 # bizarre bug on SunOS 4.1.3.
21990 if $ac_need_defaults; then
21991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21996 # Have a temporary directory for convenience. Make it in the build tree
21997 # simply because there is no reason to put it here, and in addition,
21998 # creating and moving files from /tmp can sometimes cause problems.
21999 # Create a temporary directory, and hook for its removal unless debugging.
22002 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22003 trap '{ (exit 1); exit 1; }' 1 2 13 15
22006 # Create a (secure) tmp directory for tmp files.
22009 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22010 test -n "$tmp" && test -d "$tmp"
22013 tmp
=.
/confstat$$
-$RANDOM
22014 (umask 077 && mkdir
$tmp)
22017 echo "$me: cannot create a temporary directory in ." >&2
22018 { (exit 1); exit 1; }
22023 cat >>$CONFIG_STATUS <<_ACEOF
22026 # CONFIG_FILES section.
22029 # No need to generate the scripts if there are no CONFIG_FILES.
22030 # This happens for instance when ./config.status config.h
22031 if test -n "\$CONFIG_FILES"; then
22032 # Protect against being on the right side of a sed subst in config.status.
22033 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22034 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22035 s,@SHELL@,$SHELL,;t t
22036 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22037 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22038 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22039 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22040 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22041 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22042 s,@exec_prefix@,$exec_prefix,;t t
22043 s,@prefix@,$prefix,;t t
22044 s,@program_transform_name@,$program_transform_name,;t t
22045 s,@bindir@,$bindir,;t t
22046 s,@sbindir@,$sbindir,;t t
22047 s,@libexecdir@,$libexecdir,;t t
22048 s,@datadir@,$datadir,;t t
22049 s,@sysconfdir@,$sysconfdir,;t t
22050 s,@sharedstatedir@,$sharedstatedir,;t t
22051 s,@localstatedir@,$localstatedir,;t t
22052 s,@libdir@,$libdir,;t t
22053 s,@includedir@,$includedir,;t t
22054 s,@oldincludedir@,$oldincludedir,;t t
22055 s,@infodir@,$infodir,;t t
22056 s,@mandir@,$mandir,;t t
22057 s,@build_alias@,$build_alias,;t t
22058 s,@host_alias@,$host_alias,;t t
22059 s,@target_alias@,$target_alias,;t t
22060 s,@DEFS@,$DEFS,;t t
22061 s,@ECHO_C@,$ECHO_C,;t t
22062 s,@ECHO_N@,$ECHO_N,;t t
22063 s,@ECHO_T@,$ECHO_T,;t t
22064 s,@LIBS@,$LIBS,;t t
22065 s,@MAINT@,$MAINT,;t t
22066 s,@build@,$build,;t t
22067 s,@build_cpu@,$build_cpu,;t t
22068 s,@build_vendor@,$build_vendor,;t t
22069 s,@build_os@,$build_os,;t t
22070 s,@host@,$host,;t t
22071 s,@host_cpu@,$host_cpu,;t t
22072 s,@host_vendor@,$host_vendor,;t t
22073 s,@host_os@,$host_os,;t t
22075 s,@CFLAGS@,$CFLAGS,;t t
22076 s,@LDFLAGS@,$LDFLAGS,;t t
22077 s,@CPPFLAGS@,$CPPFLAGS,;t t
22078 s,@ac_ct_CC@,$ac_ct_CC,;t t
22079 s,@EXEEXT@,$EXEEXT,;t t
22080 s,@OBJEXT@,$OBJEXT,;t t
22081 s,@LN_S@,$LN_S,;t t
22083 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22084 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22085 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22086 s,@RANLIB@,$RANLIB,;t t
22087 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22088 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22089 s,@EGREP@,$EGREP,;t t
22090 s,@SETARCH@,$SETARCH,;t t
22091 s,@LIBSOUND@,$LIBSOUND,;t t
22092 s,@SET_MAKE@,$SET_MAKE,;t t
22093 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22094 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22095 s,@GTK_LIBS@,$GTK_LIBS,;t t
22096 s,@ALLOCA@,$ALLOCA,;t t
22097 s,@liblockfile@,$liblockfile,;t t
22098 s,@LIBOBJS@,$LIBOBJS,;t t
22099 s,@NEED_SETGID@,$NEED_SETGID,;t t
22100 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22101 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22102 s,@version@,$version,;t t
22103 s,@configuration@,$configuration,;t t
22104 s,@canonical@,$canonical,;t t
22105 s,@srcdir@,$srcdir,;t t
22106 s,@lispdir@,$lispdir,;t t
22107 s,@locallisppath@,$locallisppath,;t t
22108 s,@lisppath@,$lisppath,;t t
22109 s,@x_default_search_path@,$x_default_search_path,;t t
22110 s,@etcdir@,$etcdir,;t t
22111 s,@archlibdir@,$archlibdir,;t t
22112 s,@docdir@,$docdir,;t t
22113 s,@bitmapdir@,$bitmapdir,;t t
22114 s,@gamedir@,$gamedir,;t t
22115 s,@gameuser@,$gameuser,;t t
22116 s,@c_switch_system@,$c_switch_system,;t t
22117 s,@c_switch_machine@,$c_switch_machine,;t t
22118 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22119 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22120 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22121 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22122 s,@machfile@,$machfile,;t t
22123 s,@opsysfile@,$opsysfile,;t t
22124 s,@carbon_appdir@,$carbon_appdir,;t t
22125 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22130 cat >>$CONFIG_STATUS <<\_ACEOF
22131 # Split the substitutions into bite-sized pieces for seds with
22132 # small command number limits, like on Digital OSF/1 and HP-UX.
22133 ac_max_sed_lines
=48
22134 ac_sed_frag
=1 # Number of current file.
22135 ac_beg
=1 # First line for current file.
22136 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22139 while $ac_more_lines; do
22140 if test $ac_beg -gt 1; then
22141 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22143 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22145 if test ! -s $tmp/subs.frag
; then
22146 ac_more_lines
=false
22148 # The purpose of the label and of the branching condition is to
22149 # speed up the sed processing (if there are no `@' at all, there
22150 # is no need to browse any of the substitutions).
22151 # These are the two extra sed commands mentioned above.
22153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22154 if test -z "$ac_sed_cmds"; then
22155 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22157 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22159 ac_sed_frag
=`expr $ac_sed_frag + 1`
22161 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22164 if test -z "$ac_sed_cmds"; then
22167 fi # test -n "$CONFIG_FILES"
22170 cat >>$CONFIG_STATUS <<\_ACEOF
22171 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22174 - |
*:- |
*:-:* ) # input from stdin
22176 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22177 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22178 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22179 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22180 * ) ac_file_in
=$ac_file.
in ;;
22183 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22184 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22186 X"$ac_file" : 'X\(//\)[^/]' \| \
22187 X"$ac_file" : 'X\(//\)$' \| \
22188 X"$ac_file" : 'X\(/\)' \| \
22189 . : '\(.\)' 2>/dev/null ||
22191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22193 /^X\(\/\/\)$/{ s//\1/; q; }
22194 /^X\(\/\).*/{ s//\1/; q; }
22196 { if $as_mkdir_p; then
22201 while test ! -d "$as_dir"; do
22202 as_dirs
="$as_dir $as_dirs"
22203 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22205 X"$as_dir" : 'X\(//\)[^/]' \| \
22206 X"$as_dir" : 'X\(//\)$' \| \
22207 X"$as_dir" : 'X\(/\)' \| \
22208 . : '\(.\)' 2>/dev/null ||
22210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22212 /^X\(\/\/\)$/{ s//\1/; q; }
22213 /^X\(\/\).*/{ s//\1/; q; }
22216 test ! -n "$as_dirs" || mkdir
$as_dirs
22217 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22219 { (exit 1); exit 1; }; }; }
22223 if test "$ac_dir" != .
; then
22224 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22225 # A "../" for each directory in $ac_dir_suffix.
22226 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22228 ac_dir_suffix
= ac_top_builddir
=
22232 .
) # No --srcdir option. We are building in place.
22234 if test -z "$ac_top_builddir"; then
22237 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22239 [\\/]* | ?
:[\\/]* ) # Absolute path.
22240 ac_srcdir
=$srcdir$ac_dir_suffix;
22241 ac_top_srcdir
=$srcdir ;;
22242 *) # Relative path.
22243 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22244 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22247 # Do not use `cd foo && pwd` to compute absolute paths, because
22248 # the directories may not exist.
22250 .
) ac_abs_builddir
="$ac_dir";;
22253 .
) ac_abs_builddir
=`pwd`;;
22254 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22255 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22258 case $ac_abs_builddir in
22259 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22261 case ${ac_top_builddir}.
in
22262 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22263 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22264 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22267 case $ac_abs_builddir in
22268 .
) ac_abs_srcdir
=$ac_srcdir;;
22271 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22272 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22273 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22276 case $ac_abs_builddir in
22277 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22279 case $ac_top_srcdir in
22280 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22281 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22282 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22288 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22289 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22292 if test x
"$ac_file" != x-
; then
22293 { echo "$as_me:$LINENO: creating $ac_file" >&5
22294 echo "$as_me: creating $ac_file" >&6;}
22297 # Let's still pretend it is `configure' which instantiates (i.e., don't
22298 # use $as_me), people would be surprised to read:
22299 # /* config.h. Generated by config.status. */
22300 if test x
"$ac_file" = x-
; then
22303 configure_input
="$ac_file. "
22305 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22306 sed 's,.*/,,'` by configure."
22308 # First look for the input files in the build tree, otherwise in the
22310 ac_file_inputs
=`IFS=:
22311 for f in $ac_file_in; do
22313 -) echo $tmp/stdin ;;
22315 # Absolute (can't be DOS-style, as IFS=:)
22316 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22317 echo "$as_me: error: cannot find input file: $f" >&2;}
22318 { (exit 1); exit 1; }; }
22321 if test -f "$f"; then
22324 elif test -f "$srcdir/$f"; then
22329 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22330 echo "$as_me: error: cannot find input file: $f" >&2;}
22331 { (exit 1); exit 1; }; }
22334 done` ||
{ (exit 1); exit 1; }
22336 cat >>$CONFIG_STATUS <<_ACEOF
22340 cat >>$CONFIG_STATUS <<\_ACEOF
22342 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22343 s
,@configure_input@
,$configure_input,;t t
22344 s
,@srcdir@
,$ac_srcdir,;t t
22345 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22346 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22347 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22348 s
,@builddir@
,$ac_builddir,;t t
22349 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22350 s
,@top_builddir@
,$ac_top_builddir,;t t
22351 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22352 s
,@INSTALL@
,$ac_INSTALL,;t t
22353 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22355 if test x"$ac_file" != x-; then
22356 mv $tmp/out $ac_file
22364 cat >>$CONFIG_STATUS <<\_ACEOF
22367 # CONFIG_HEADER section.
22370 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22371 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22373 # ac_d sets the value in "#define NAME VALUE" lines.
22374 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22375 ac_dB
='[ ].*$,\1#\2'
22378 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22379 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22380 ac_uB
='$,\1#\2define\3'
22384 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22387 - |
*:- |
*:-:* ) # input from stdin
22389 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22390 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22391 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22392 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22393 * ) ac_file_in
=$ac_file.
in ;;
22396 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22397 echo "$as_me: creating $ac_file" >&6;}
22399 # First look for the input files in the build tree, otherwise in the
22401 ac_file_inputs
=`IFS=:
22402 for f in $ac_file_in; do
22404 -) echo $tmp/stdin ;;
22406 # Absolute (can't be DOS-style, as IFS=:)
22407 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22408 echo "$as_me: error: cannot find input file: $f" >&2;}
22409 { (exit 1); exit 1; }; }
22410 # Do quote $f, to prevent DOS paths from being IFS'd.
22413 if test -f "$f"; then
22416 elif test -f "$srcdir/$f"; then
22421 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22422 echo "$as_me: error: cannot find input file: $f" >&2;}
22423 { (exit 1); exit 1; }; }
22426 done` ||
{ (exit 1); exit 1; }
22427 # Remove the trailing spaces.
22428 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22432 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22433 # `conftest.undefs', that substitutes the proper values into
22434 # config.h.in to produce config.h. The first handles `#define'
22435 # templates, and the second `#undef' templates.
22436 # And first: Protect against being on the right side of a sed subst in
22437 # config.status. Protect against being in an unquoted here document
22438 # in config.status.
22439 rm -f conftest.defines conftest.undefs
22440 # Using a here document instead of a string reduces the quoting nightmare.
22441 # Putting comments in sed scripts is not portable.
22443 # `end' is used to avoid that the second main sed command (meant for
22444 # 0-ary CPP macros) applies to n-ary macro definitions.
22445 # See the Autoconf documentation for `clear'.
22446 cat >confdef2sed.
sed <<\_ACEOF
22451 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22453 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22456 # If some macros were called several times there might be several times
22457 # the same #defines, which is useless. Nevertheless, we may not want to
22458 # sort them, since we want the *last* AC-DEFINE to be honored.
22459 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22460 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22461 rm -f confdef2sed.sed
22463 # This sed command replaces #undef with comments. This is necessary, for
22464 # example, in the case of _POSIX_SOURCE, which is predefined and required
22465 # on some systems where configure will not decide to define it.
22466 cat >>conftest.undefs <<\_ACEOF
22467 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22470 # Break up conftest.defines because some shells have a limit on the size
22471 # of here documents, and old seds have small limits too (100 cmds).
22472 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22473 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22474 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22475 echo ' :' >>$CONFIG_STATUS
22476 rm -f conftest.tail
22477 while grep . conftest.defines >/dev/null
22479 # Write a limited-size here document to $tmp/defines.sed.
22480 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22481 # Speed up: don't consider the non `#define' lines.
22482 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22483 # Work around the forget-to-reset-the-flag bug.
22484 echo 't clr' >>$CONFIG_STATUS
22485 echo ': clr' >>$CONFIG_STATUS
22486 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22488 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22490 mv $tmp/out $tmp/in
22492 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22493 rm -f conftest.defines
22494 mv conftest.
tail conftest.defines
22496 rm -f conftest.defines
22497 echo ' fi # grep' >>$CONFIG_STATUS
22498 echo >>$CONFIG_STATUS
22500 # Break up conftest.undefs because some shells have a limit on the size
22501 # of here documents, and old seds have small limits too (100 cmds).
22502 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22503 rm -f conftest.
tail
22504 while grep . conftest.undefs
>/dev
/null
22506 # Write a limited-size here document to $tmp/undefs.sed.
22507 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22508 # Speed up: don't consider the non
`#undef'
22509 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22510 # Work around the forget-to-reset-the-flag bug.
22511 echo 't clr' >>$CONFIG_STATUS
22512 echo ': clr' >>$CONFIG_STATUS
22513 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22515 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22517 mv $tmp/out $tmp/in
22519 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22520 rm -f conftest.undefs
22521 mv conftest.tail conftest.undefs
22523 rm -f conftest.undefs
22525 cat >>$CONFIG_STATUS <<\_ACEOF
22526 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22527 # use $as_me), people would be surprised to read:
22528 # /* config.h. Generated by config.status. */
22529 if test x
"$ac_file" = x-
; then
22530 echo "/* Generated by configure. */" >$tmp/config.h
22532 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22534 cat $tmp/in >>$tmp/config.h
22536 if test x
"$ac_file" != x-
; then
22537 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22538 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22539 echo "$as_me: $ac_file is unchanged" >&6;}
22541 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543 X"$ac_file" : 'X\(//\)[^/]' \| \
22544 X"$ac_file" : 'X\(//\)$' \| \
22545 X"$ac_file" : 'X\(/\)' \| \
22546 . : '\(.\)' 2>/dev/null ||
22548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22550 /^X\(\/\/\)$/{ s//\1/; q; }
22551 /^X\(\/\).*/{ s//\1/; q; }
22553 { if $as_mkdir_p; then
22558 while test ! -d "$as_dir"; do
22559 as_dirs
="$as_dir $as_dirs"
22560 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22562 X"$as_dir" : 'X\(//\)[^/]' \| \
22563 X"$as_dir" : 'X\(//\)$' \| \
22564 X"$as_dir" : 'X\(/\)' \| \
22565 . : '\(.\)' 2>/dev/null ||
22567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22569 /^X\(\/\/\)$/{ s//\1/; q; }
22570 /^X\(\/\).*/{ s//\1/; q; }
22573 test ! -n "$as_dirs" || mkdir
$as_dirs
22574 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22576 { (exit 1); exit 1; }; }; }
22579 mv $tmp/config.h
$ac_file
22583 rm -f $tmp/config.h
22587 cat >>$CONFIG_STATUS <<\_ACEOF
22590 # CONFIG_COMMANDS section.
22592 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22593 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22594 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22595 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22596 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22597 X"$ac_dest" : 'X\(//\)[^/]' \| \
22598 X"$ac_dest" : 'X\(//\)$' \| \
22599 X"$ac_dest" : 'X\(/\)' \| \
22600 . : '\(.\)' 2>/dev/null ||
22602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22604 /^X\(\/\/\)$/{ s//\1/; q; }
22605 /^X\(\/\).*/{ s//\1/; q; }
22607 { if $as_mkdir_p; then
22612 while test ! -d "$as_dir"; do
22613 as_dirs
="$as_dir $as_dirs"
22614 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22616 X"$as_dir" : 'X\(//\)[^/]' \| \
22617 X"$as_dir" : 'X\(//\)$' \| \
22618 X"$as_dir" : 'X\(/\)' \| \
22619 . : '\(.\)' 2>/dev/null ||
22621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22623 /^X\(\/\/\)$/{ s//\1/; q; }
22624 /^X\(\/\).*/{ s//\1/; q; }
22627 test ! -n "$as_dirs" || mkdir
$as_dirs
22628 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22630 { (exit 1); exit 1; }; }; }
22634 if test "$ac_dir" != .
; then
22635 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22636 # A "../" for each directory in $ac_dir_suffix.
22637 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22639 ac_dir_suffix
= ac_top_builddir
=
22643 .
) # No --srcdir option. We are building in place.
22645 if test -z "$ac_top_builddir"; then
22648 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22650 [\\/]* | ?
:[\\/]* ) # Absolute path.
22651 ac_srcdir
=$srcdir$ac_dir_suffix;
22652 ac_top_srcdir
=$srcdir ;;
22653 *) # Relative path.
22654 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22655 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22658 # Do not use `cd foo && pwd` to compute absolute paths, because
22659 # the directories may not exist.
22661 .
) ac_abs_builddir
="$ac_dir";;
22664 .
) ac_abs_builddir
=`pwd`;;
22665 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22666 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22669 case $ac_abs_builddir in
22670 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22672 case ${ac_top_builddir}.
in
22673 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22674 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22675 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22678 case $ac_abs_builddir in
22679 .
) ac_abs_srcdir
=$ac_srcdir;;
22682 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22683 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22684 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22687 case $ac_abs_builddir in
22688 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22690 case $ac_top_srcdir in
22691 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22692 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22693 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22698 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22699 echo "$as_me: executing $ac_dest commands" >&6;}
22703 ### Make the necessary directories, if they don't exist.
22704 for dir
in etc lisp
; do
22705 test -d ${dir} || mkdir
${dir}
22708 # Build src/Makefile from ${srcdir}/src/Makefile.c
22709 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22710 # This must be done after src/config.h is built, since we rely on that file.
22712 # Now get this: Some word that is part of the ${srcdir} directory name
22713 # or the ${configuration} value might, just might, happen to be an
22714 # identifier like `sun4' or `i386' or something, and be predefined by
22715 # the C preprocessor to some helpful value like 1, or maybe the empty
22716 # string. Needless to say consequent macro substitutions are less
22717 # than conducive to the makefile finding the correct directory.
22718 undefs
="`echo $top_srcdir $configuration $canonical |
22719 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22720 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22723 echo creating src
/epaths.h
22724 ${MAKE-make} epaths-force
22726 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22727 # `..' to `. .' unless invoked with -traditional
22729 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
22730 CPPFLAGS
="$CPPFLAGS -traditional"
22733 echo creating lib-src
/Makefile
22735 rm -f junk.c junk1.c junk2.c
22736 sed -e '/start of cpp stuff/q' \
22737 < Makefile.c
> junk1.c
22738 sed -e '1,/start of cpp stuff/d'\
22739 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22740 < Makefile.c
> junk.c
22741 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22742 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22743 cat junk1.c junk2.c
> Makefile.new
22744 rm -f junk.c junk1.c junk2.c
22745 chmod 444 Makefile.new
22746 mv -f Makefile.new Makefile
22749 echo creating src
/Makefile
22751 rm -f junk.c junk1.c junk2.c
22752 sed -e '/start of cpp stuff/q' \
22753 < Makefile.c
> junk1.c
22754 sed -e '1,/start of cpp stuff/d'\
22755 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22756 < Makefile.c
> junk.c
22757 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22758 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22759 cat junk1.c junk2.c
> Makefile.new
22760 rm -f junk.c junk1.c junk2.c
22761 chmod 444 Makefile.new
22762 mv -f Makefile.new Makefile
22765 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22766 echo creating src
/.gdbinit
22767 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22770 # This is how we know whether to re-run configure in certain cases.
22771 touch src
/config.stamp
22778 cat >>$CONFIG_STATUS <<\_ACEOF
22780 { (exit 0); exit 0; }
22782 chmod +x
$CONFIG_STATUS
22783 ac_clean_files
=$ac_clean_files_save
22786 # configure is writing to config.log, and then calls config.status.
22787 # config.status does its own redirection, appending to config.log.
22788 # Unfortunately, on DOS this fails, as config.log is still kept open
22789 # by configure, so config.status won't be able to write to it; its
22790 # output is simply discarded. So we exec the FD to /dev/null,
22791 # effectively closing config.log, so it can be properly (re)opened and
22792 # appended to by config.status. When coming back to configure, we
22793 # need to make the FD available again.
22794 if test "$no_create" != yes; then
22796 ac_config_status_args
=
22797 test "$silent" = yes &&
22798 ac_config_status_args
="$ac_config_status_args --quiet"
22800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22803 # would make configure fail if this is the last instruction.
22804 $ac_cs_success ||
{ (exit 1); exit 1; }