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 LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
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-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath
='${locallisppath}:${lispdir}'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 i
[3456]86-*-freebsd*) machine
=intel386
;;
1727 if test -f /usr
/lib
/crti.o
; then
1729 cat >>confdefs.h
<<\_ACEOF
1735 case "${canonical}" in
1736 alpha
*-*-netbsd*) machine
=alpha
;;
1737 i
[3456]86-*-netbsd*) machine
=intel386
;;
1739 # This is somewhat bogus.
1740 machine
=hp9000s300
;;
1741 powerpc-apple-netbsd
*) machine
=macppc
;;
1742 mips-
*-netbsd*) machine
=pmax
;;
1743 mipsel-
*-netbsd*) machine
=pmax
;;
1744 mipseb-
*-netbsd*) machine
=pmax
;;
1745 ns32k-
*-netbsd*) machine
=ns32000
;;
1746 powerpc-
*-netbsd*) machine
=macppc
;;
1747 sparc
*-*-netbsd*) machine
=sparc
;;
1748 vax-
*-netbsd*) machine
=vax
;;
1749 arm-
*-netbsd*) machine
=arm
;;
1756 case "${canonical}" in
1757 alpha
*-*-openbsd*) machine
=alpha
;;
1758 i386-
*-openbsd*) machine
=intel386
;;
1759 m68k-
*-openbsd*) machine
=hp9000s300
;;
1760 mipsel-
*-openbsd*) machine
=pmax
;;
1761 ns32k-
*-openbsd*) machine
=ns32000
;;
1762 sparc-
*-openbsd*) machine
=sparc
;;
1763 vax-
*-openbsd*) machine
=vax
;;
1768 arm-acorn-riscix1.1
* )
1769 machine
=acorn opsys
=riscix1-1
1771 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1772 ## This name is riscix12 instead of riscix1.2
1773 ## to avoid a file name conflict on MSDOS.
1774 machine
=acorn opsys
=riscix12
1780 case "${canonical}" in
1781 i
[345]86-*-bsdi*) machine
=intel386
;;
1782 sparc-
*-bsdi*) machine
=sparc
;;
1783 powerpc-
*-bsdi*) machine
=macppc
;;
1785 case "${canonical}" in
1786 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1787 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1788 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1789 *-*-bsdi3* ) opsys
=bsdos3
;;
1790 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1795 ## Strictly speaking, we need the version of the alliant operating
1796 ## system to choose the right machine file, but currently the
1797 ## configuration name doesn't tell us enough to choose the right
1798 ## one; we need to give alliants their own operating system name to
1799 ## do this right. When someone cares, they can help us.
1801 machine
=alliant4 opsys
=bsd4-2
1804 machine
=alliant-2800 opsys
=bsd4-3
1807 ## Alpha (DEC) machines.
1809 machine
=alpha opsys
=osf1
1810 # This is needed to find X11R6.1 libraries for certain tests.
1811 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1812 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1813 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1814 # due to non-traditional preprocessing with the current compiler
1815 # defaults. OSF 4 can also have that compiler version, and there
1816 # seems always to have been a usable /usr/bin/cpp.
1817 NON_GNU_CPP
=/usr
/bin
/cpp
1818 case "${canonical}" in
1819 alpha
*-dec-osf[5-9]*)
1824 alpha
*-*-linux-gnu* )
1825 machine
=alpha opsys
=gnu-linux
1829 machine
=arm opsys
=gnu-linux
1834 machine
=altos opsys
=usg5-2
1839 machine
=amdahl opsys
=usg5-2-2
1842 ## Apollo, Domain/OS
1844 machine
=apollo opsys
=bsd4-3
1847 ## AT&T 3b2, 3b5, 3b15, 3b20
1849 machine
=att3b opsys
=usg5-2-2
1852 ## AT&T 3b1 - The Mighty Unix PC!
1854 machine
=7300 opsys
=usg5-2-2
1859 machine
=ibmrs6000 opsys
=aix3-2
1864 machine
=dpx2 opsys
=usg5-3
1869 machine
=sps7 opsys
=usg5-2
1872 ## CCI 5/32, 6/32 -- see "Tahoe".
1875 ## I don't know what configuration name to use for this; config.sub
1876 ## doesn't seem to know anything about it. Hey, Celerity users, get
1877 ## in touch with us!
1878 celerity-celerity-bsd
* )
1879 machine
=celerity opsys
=bsd4-2
1883 ## What operating systems does this chip run that Emacs has been
1887 ## We'll use the catch-all code at the bottom to guess the
1888 ## operating system.
1892 mips-compaq-nonstopux
* )
1893 machine
=nonstopux opsys
=nonstopux
1897 *-convex-bsd* |
*-convex-convexos* )
1898 machine
=convex opsys
=bsd4-3
1899 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1900 NON_GNU_CPP
="cc -E -P"
1904 i
[3456]86-cubix-sysv* )
1905 machine
=intel386 opsys
=usg5-3
1909 cydra
*-cydrome-sysv* )
1910 machine
=cydra5 opsys
=usg5-3
1913 ## Data General AViiON Machines
1914 ## DG changed naming conventions with the release of 5.4.4.10, they
1915 ## dropped the initial 5.4 but left the intervening R. Because of the
1916 ## R this shouldn't conflict with older versions of the OS (which I
1917 ## think were named like dgux4.*). In addition, DG new AViiONs series
1918 ## uses either Motorola M88k or Intel Pentium CPUs.
1919 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1920 machine
=aviion opsys
=dgux4
1922 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1923 ## This name is dgux5-4-3 instead of dgux5-4r3
1924 ## to avoid a file name conflict on MSDOS.
1925 machine
=aviion opsys
=dgux5-4-3
1927 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1928 machine
=aviion opsys
=dgux5-4r2
1931 machine
=aviion opsys
=dgux
1934 ## Data General AViiON Intel (x86) Machines
1935 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1936 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1937 i
[345]86-dg-dguxR4* )
1938 machine
=aviion-intel opsys
=dgux4
1942 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1943 machine
=pmax opsys
=bsd4-2
1945 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1946 machine
=pmax opsys
=bsd4-3
1949 machine
=pmax opsys
=ultrix4-3
1952 machine
=pmax opsys
=osf1
1954 mips-dec-mach_bsd4.3
* )
1955 machine
=pmax opsys
=mach-bsd4-3
1958 ## Motorola Delta machines
1959 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1960 machine
=delta opsys
=usg5-3
1961 if test -z "`type gnucc | grep 'not found'`"
1963 if test -s /etc
/167config
1964 then CC
="gnucc -m68040"
1965 else CC
="gnucc -m68881"
1968 if test -z "`type gcc | grep 'not found'`"
1974 m88k-motorola-sysv4
* )
1975 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1976 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1977 # I hope there are not other 4.0 versions for this machine
1978 # which really need usg5-4 instead.
1979 machine
=delta88k opsys
=usg5-4-2
1981 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1982 machine
=delta88k opsys
=usg5-3
1987 machine
=dual opsys
=usg5-2
1989 m68
*-dual-uniplus* )
1990 machine
=dual opsys
=unipl5-2
1995 machine
=elxsi opsys
=usg5-2
2000 machine
=ns16000 opsys
=umax
2003 ## The GEC 63 - apparently, this port isn't really finished yet.
2004 # I'm sure we finished off the last of the machines, though. -- fx
2006 ## Gould Power Node and NP1
2008 machine
=gould opsys
=bsd4-2
2011 machine
=gould opsys
=bsd4-3
2014 machine
=gould-np1 opsys
=bsd4-3
2017 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2018 ## as far as Emacs is concerned).
2020 # Build needs to be different on 7.0 and later releases
2021 case "`uname -r`" in
2022 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2023 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2025 NON_GNU_CPP
="/lib/cpp"
2027 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2029 machine
=nh3000 opsys
=cxux
2031 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2032 powerpc-harris-powerunix
)
2033 machine
=nh6000 opsys
=powerunix
2034 NON_GNU_CPP
="cc -Xo -E -P"
2036 ## SR2001/SR2201 running HI-UX/MPP
2037 hppa1.1
-hitachi-hiuxmpp* )
2038 machine
=sr2k opsys
=hiuxmpp
2040 hppa1.1
-hitachi-hiuxwe2* )
2041 machine
=sr2k opsys
=hiuxwe2
2044 xps
*-honeywell-sysv* )
2045 machine
=xps100 opsys
=usg5-2
2048 ## HP 9000 series 200 or 300
2050 machine
=hp9000s300 opsys
=bsd4-3
2052 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2058 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2059 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2060 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2061 *) machine
=hp9000s300 opsys
=hpux
;;
2065 ## HP 9000 series 700 and 800, running HP/UX
2067 machine
=hp800 opsys
=hpux
2070 machine
=hp800 opsys
=hpux8
2072 hppa
*-hp-hpux9shr* )
2073 machine
=hp800 opsys
=hpux9shr
2076 machine
=hp800 opsys
=hpux9
2078 hppa
*-hp-hpux10.2
* )
2079 machine
=hp800 opsys
=hpux10-20
2082 machine
=hp800 opsys
=hpux10
2084 hppa
*-hp-hpux1[1-9]* )
2085 machine
=hp800 opsys
=hpux11
2088 hppa
*-*-linux-gnu* )
2089 machine
=hp800 opsys
=gnu-linux
2092 ## HP 9000 series 700 and 800, running HP/UX
2094 ## Cross-compilation? Nah!
2095 case "`uname -r`" in
2096 ## Someone's system reports A.B8.05 for this.
2097 ## I wonder what other possibilities there are.
2098 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2099 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2100 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2101 *) machine
=hp800 opsys
=hpux10
;;
2105 machine
=hp800 opsys
=nextstep
2110 machine
=orion opsys
=bsd4-2
2112 clipper-orion-bsd
* )
2113 machine
=orion105 opsys
=bsd4-2
2117 i
[3456]86-ibm-aix1.1
* )
2118 machine
=ibmps2-aix opsys
=usg5-2-2
2120 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2121 machine
=ibmps2-aix opsys
=usg5-3
2124 machine
=ibm370aix opsys
=usg5-3
2127 machine
=ibms390 opsys
=gnu-linux
2129 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2130 machine
=ibmrs6000 opsys
=aix3-1
2132 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2133 machine
=ibmrs6000 opsys
=aix3-2-5
2135 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2136 machine
=ibmrs6000 opsys
=aix4-1
2138 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2139 machine
=ibmrs6000 opsys
=aix4-2
2141 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2142 machine
=ibmrs6000 opsys
=aix4-2
2144 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2145 machine
=ibmrs6000 opsys
=aix4
2147 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2148 machine
=ibmrs6000 opsys
=aix4-1
2150 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2151 machine
=ibmrs6000 opsys
=aix3-2
2154 machine
=ibmrt opsys
=bsd4-3
2157 machine
=ibmrt opsys
=bsd4-2
2160 machine
=ibmrt opsys
=bsd4-3
2163 machine
=ibmrt opsys
=bsd4-2
2166 machine
=ibmrt opsys
=bsd4-3
2169 machine
=ibmrt opsys
=bsd4-3
2172 machine
=ibmrt-aix opsys
=usg5-2-2
2175 ## Integrated Solutions `Optimum V'
2177 machine
=isi-ov opsys
=bsd4-2
2180 machine
=isi-ov opsys
=bsd4-3
2183 ## Intel 386 machines where we do care about the manufacturer
2184 i
[3456]86-intsys-sysv* )
2185 machine
=is386 opsys
=usg5-2-2
2189 i
[3456]86-prime-sysv* )
2190 machine
=i386 opsys
=usg5-3
2193 ## Sequent Symmetry running Dynix
2194 i
[3456]86-sequent-bsd* )
2195 machine
=symmetry opsys
=bsd4-3
2198 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2199 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2200 machine
=sequent-ptx opsys
=ptx4
2201 NON_GNU_CPP
=/lib
/cpp
2204 ## Sequent Symmetry running DYNIX/ptx
2205 ## Use the old cpp rather than the newer ANSI one.
2206 i
[3456]86-sequent-ptx* )
2207 machine
=sequent-ptx opsys
=ptx
2208 NON_GNU_CPP
="/lib/cpp"
2211 ## ncr machine running svr4.3.
2212 i
[3456]86-ncr-sysv4.3
)
2213 machine
=ncr386 opsys
=usg5-4-3
2216 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2217 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2218 i
[3456]86-ncr-sysv* )
2219 machine
=ncr386 opsys
=usg5-4-2
2222 ## Intel Paragon OSF/1
2224 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2229 machine
=i860 opsys
=usg5-4
2230 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2231 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2234 ## Macintosh PowerPC
2235 powerpc
*-*-linux-gnu* )
2236 machine
=macppc opsys
=gnu-linux
2239 ## Masscomp machines
2240 m68
*-masscomp-rtu* )
2241 machine
=masscomp opsys
=rtu
2244 ## Megatest machines
2245 m68
*-megatest-bsd* )
2246 machine
=mega68 opsys
=bsd4-2
2249 ## Workstations sold by MIPS
2250 ## This is not necessarily all workstations using the MIPS processor -
2251 ## Irises are produced by SGI, and DECstations by DEC.
2253 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2254 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2255 ## it gives for choosing between the alternatives seems to be "Use
2256 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2257 ## the BSD world." I'll assume that these are instructions for
2258 ## handling two odd situations, and that every other situation
2259 ## should use mips.h and usg5-2-2, they being listed first.
2262 ## Fall through to the general code at the bottom to decide on the OS.
2264 mips-mips-riscos4
* )
2265 machine
=mips4 opsys
=bsd4-3
2266 NON_GNU_CC
="cc -systype bsd43"
2267 NON_GNU_CPP
="cc -systype bsd43 -E"
2269 mips-mips-riscos5
* )
2270 machine
=mips4 opsys
=riscos5
2271 NON_GNU_CC
="cc -systype bsd43"
2272 NON_GNU_CPP
="cc -systype bsd43 -E"
2275 machine
=mips opsys
=bsd4-3
2278 machine
=mips opsys
=usg5-2-2
2282 m68
*-next-* | m68k-
*-nextstep* )
2283 machine
=m68k opsys
=nextstep
2286 ## The complete machine from National Semiconductor
2288 machine
=ns32000 opsys
=usg5-2
2292 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2293 machine
=tower32 opsys
=usg5-2-2
2295 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2296 machine
=tower32v3 opsys
=usg5-3
2301 machine
=ews4800 opsys
=ux4800
2304 ## Nixdorf Targon 31
2305 m68
*-nixdorf-sysv* )
2306 machine
=targon31 opsys
=usg5-2-2
2311 machine
=nu opsys
=usg5-2
2316 machine
=plexus opsys
=usg5-2
2320 ## I don't really have any idea what sort of processor the Pyramid has,
2321 ## so I'm assuming it is its own architecture.
2322 pyramid-pyramid-bsd
* )
2323 machine
=pyramid opsys
=bsd4-2
2327 ns32k-sequent-bsd4.2
* )
2328 machine
=sequent opsys
=bsd4-2
2330 ns32k-sequent-bsd4.3
* )
2331 machine
=sequent opsys
=bsd4-3
2335 mips-siemens-sysv
* | mips-sni-sysv
*)
2336 machine
=mips-siemens opsys
=usg5-4
2337 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2338 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2341 ## Silicon Graphics machines
2342 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2344 machine
=irist opsys
=iris3-5
2346 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2347 machine
=irist opsys
=iris3-6
2351 machine
=iris4d opsys
=irix3-3
2354 machine
=iris4d opsys
=irix4-0
2357 machine
=iris4d opsys
=irix6-5
2358 # Without defining _LANGUAGE_C, things get masked out in the headers
2359 # so that, for instance, grepping for `free' in stdlib.h fails and
2360 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2361 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2362 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2365 machine
=iris4d opsys
=irix6-0
2366 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2367 # but presumably it does no harm.
2368 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2369 # -32 probably isn't necessary in later v.6s -- anyone know which?
2370 NON_GCC_TEST_OPTIONS
=-32
2372 mips-sgi-irix5.
[01]* )
2373 machine
=iris4d opsys
=irix5-0
2375 mips-sgi-irix5
* | mips-sgi-irix
* )
2376 machine
=iris4d opsys
=irix5-2
2381 machine
=news opsys
=bsd4-2
2384 machine
=news opsys
=bsd4-3
2386 m68
*-sony-newsos3* | m68
*-sony-news3*)
2387 machine
=news opsys
=bsd4-3
2389 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2390 machine
=news-risc opsys
=bsd4-3
2392 mips-sony-newsos6
* )
2393 machine
=news-r6 opsys
=newsos6
2396 machine
=news-risc opsys
=newsos5
2401 machine
=stride opsys
=usg5-2
2405 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2406 machine
=sparc opsys
=gnu-linux
2409 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2410 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2411 | rs6000-
*-solaris2*)
2412 case "${canonical}" in
2413 m68
*-sunos1* ) machine
=sun1
;;
2414 m68
*-sunos2* ) machine
=sun2
;;
2415 m68
* ) machine
=sun3
;;
2416 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2417 i
[3456]86-*-* ) machine
=intel386
;;
2418 powerpcle
* ) machine
=powerpcle
;;
2419 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2420 sparc
* ) machine
=sparc
;;
2423 case "${canonical}" in
2424 ## The Sun386 didn't get past 4.0.
2425 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2426 *-sunos4.0
* ) opsys
=sunos4-0
;;
2427 *-sunos4.1.
[3-9]*noshare
)
2428 ## This name is sunos413 instead of sunos4-1-3
2429 ## to avoid a file name conflict on MSDOS.
2431 NON_GNU_CPP
=/usr
/lib
/cpp
2432 NON_GCC_TEST_OPTIONS
=-Bstatic
2433 GCC_TEST_OPTIONS
=-static
2435 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2437 NON_GNU_CPP
=/usr
/lib
/cpp
2439 *-sunos4* |
*-sunos )
2441 NON_GCC_TEST_OPTIONS
=-Bstatic
2442 GCC_TEST_OPTIONS
=-static
2444 *-sunos5.3
* |
*-solaris2.3
* )
2446 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2448 *-sunos5.4
* |
*-solaris2.4
* )
2450 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2453 *-sunos5.5
* |
*-solaris2.5
* )
2455 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2458 *-sunos5.6
* |
*-solaris2.6
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2463 *-sunos5* |
*-solaris* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2469 ## Watch out for a compiler that we know will not work.
2470 case "${canonical}" in
2471 *-solaris* |
*-sunos5* )
2472 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2473 ## /usr/ucb/cc doesn't work;
2474 ## we should find some other compiler that does work.
2482 machine
=sparc opsys
=nextstep
2486 m68
*-tadpole-sysv* )
2487 machine
=tad68k opsys
=usg5-3
2491 tahoe-tahoe-bsd4.2
* )
2492 machine
=tahoe opsys
=bsd4-2
2494 tahoe-tahoe-bsd4.3
* )
2495 machine
=tahoe opsys
=bsd4-3
2498 ## Tandem Integrity S2
2500 machine
=tandem-s2 opsys
=usg5-3
2504 m88k-tektronix-sysv3
* )
2505 machine
=tekxd88 opsys
=usg5-3
2508 ## Tektronix 16000 box (6130?)
2509 ns16k-tektronix-bsd
* )
2510 machine
=ns16000 opsys
=bsd4-2
2513 ## src/m/tek4300.h hints that this is a m68k machine.
2514 m68
*-tektronix-bsd* )
2515 machine
=tek4300 opsys
=bsd4-3
2519 ## We seem to have lost the machine-description file titan.h!
2521 machine
=titan opsys
=usg5-3
2524 ## Ustation E30 (SS5E)
2525 m68
*-unisys-uniplus* )
2526 machine
=ustation opsystem
=unipl5-2
2532 case "${canonical}" in
2533 *-bsd4.1
* ) opsys
=bsd4-1
;;
2534 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2535 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2536 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2537 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2538 *-vms* ) opsys
=vms
;;
2544 ns16k-whitechapel-
* )
2546 ## We don't know what sort of OS runs on these; we'll let the
2547 ## operating system guessing code below try.
2552 machine
=wicat opsys
=usg5-2
2557 machine
=ia64 opsys
=gnu-linux
2560 ## Intel 386 machines where we don't care about the manufacturer
2563 case "${canonical}" in
2564 *-cygwin ) opsys
=cygwin
;;
2565 *-darwin ) opsys
=darwin
2566 CPP
="${CC-cc} -E -no-cpp-precomp"
2568 *-lynxos* ) opsys
=lynxos
;;
2569 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2570 *-isc2.2
* ) opsys
=isc2-2
;;
2571 *-isc4.0
* ) opsys
=isc4-0
;;
2572 *-isc4.
* ) opsys
=isc4-1
2573 GCC_TEST_OPTIONS
=-posix
2574 NON_GCC_TEST_OPTIONS
=-Xp
2576 *-isc* ) opsys
=isc3-0
;;
2577 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2578 *-esix* ) opsys
=esix
;;
2579 *-xenix* ) opsys
=xenix
;;
2580 *-linux-gnu* ) opsys
=gnu-linux
;;
2581 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2582 *-sco3.2v5
* ) opsys
=sco5
2583 NON_GNU_CPP
=/lib
/cpp
2584 # Prevent -belf from being passed to $CPP.
2585 # /lib/cpp does not accept it.
2586 OVERRIDE_CPPFLAGS
=" "
2588 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2589 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2590 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2591 *-386bsd* ) opsys
=386bsd
;;
2592 *-nextstep* ) opsys
=nextstep
;;
2593 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2597 ## m68k Linux-based GNU system
2599 machine
=m68k opsys
=gnu-linux
2602 ## Mips Linux-based GNU system
2603 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2604 machine
=mips opsys
=gnu-linux
2608 sparc-fujitsu-sysv4
* )
2609 machine
=sparc opsys
=uxpds
2610 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2615 f301-fujitsu-uxpv4.1
)
2616 machine
=f301 opsys
=uxpv
2619 ## Darwin / Mac OS X
2620 powerpc-apple-darwin
* )
2621 machine
=powermac opsys
=darwin
2622 # Define CPP as follows to make autoconf work correctly.
2623 CPP
="${CC-cc} -E -no-cpp-precomp"
2624 # Use fink packages if available.
2625 if test -d /sw
/include
&& test -d /sw
/lib
; then
2626 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2627 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2628 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2632 ## AMD x86-64 Linux-based GNU system
2633 x86_64-
*-linux-gnu* )
2634 machine
=amdx86-64 opsys
=gnu-linux
2642 ### If the code above didn't choose an operating system, just choose
2643 ### an operating system based on the configuration name. You really
2644 ### only want to use this when you have no idea what the right
2645 ### operating system is; if you know what operating systems a machine
2646 ### runs, it's cleaner to make it explicit in the case statement
2648 if test x
"${opsys}" = x
; then
2649 case "${canonical}" in
2650 *-gnu* ) opsys
=gnu
;;
2651 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2652 *-bsd4.2
) opsys
=bsd4-2
;;
2653 *-bsd4.3
) opsys
=bsd4-3
;;
2654 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2655 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2656 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2657 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2658 *-sysv4.2uw
* ) opsys
=unixware
;;
2659 *-sysv5uw* ) opsys
=unixware
;;
2660 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2661 *-sysv4.1
* |
*-sysvr4.1
* )
2662 NON_GNU_CPP
=/usr
/lib
/cpp
2664 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2665 if [ x
$NON_GNU_CPP = x
]; then
2666 if [ -f /usr
/ccs
/lib
/cpp
]; then
2667 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2669 NON_GNU_CPP
=/lib
/cpp
2673 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2682 if test $unported = yes; then
2683 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2684 Check \`etc/MACHINES' for recognized configuration names." >&5
2685 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2686 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2687 { (exit 1); exit 1; }; }
2690 machfile
="m/${machine}.h"
2691 opsysfile
="s/${opsys}.h"
2694 #### Choose a compiler.
2695 test -n "$CC" && cc_specified
=yes
2697 # Save the value of CFLAGS that the user specified.
2698 SPECIFIED_CFLAGS
="$CFLAGS"
2701 "yes" ) CC
="gcc" GCC
=yes ;;
2702 "no" ) : ${CC=cc} ;;
2706 ac_cpp
='$CPP $CPPFLAGS'
2707 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC
="$CC" # Let the user override the test.
2721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir
=.
2726 for ac_exec_ext
in '' $ac_executable_extensions; do
2727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 if test -n "$CC"; then
2739 echo "$as_me:$LINENO: result: $CC" >&5
2740 echo "${ECHO_T}$CC" >&6
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2747 if test -z "$ac_cv_prog_CC"; then
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc
; ac_word
=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_ac_ct_CC
="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2778 echo "${ECHO_T}$ac_ct_CC" >&6
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2789 if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2792 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2793 echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795 if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC
="$CC" # Let the user override the test.
2801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir
=.
2806 for ac_exec_ext
in '' $ac_executable_extensions; do
2807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CC"; then
2819 echo "$as_me:$LINENO: result: $CC" >&5
2820 echo "${ECHO_T}$CC" >&6
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2827 if test -z "$ac_cv_prog_CC"; then
2829 # Extract the first word of "cc", so it can be a program name with args.
2830 set dummy cc
; ac_word
=$2
2831 echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir
=.
2844 for ac_exec_ext
in '' $ac_executable_extensions; do
2845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_ac_ct_CC
="cc"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2858 echo "${ECHO_T}$ac_ct_CC" >&6
2860 echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6
2870 if test -z "$CC"; then
2871 # Extract the first word of "cc", so it can be a program name with args.
2872 set dummy cc
; ac_word
=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC
="$CC" # Let the user override the test.
2882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir
=.
2887 for ac_exec_ext
in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890 ac_prog_rejected
=yes
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 if test $ac_prog_rejected = yes; then
2901 # We found a bogon in the path, so make sure we never use it.
2902 set dummy
$ac_cv_prog_CC
2904 if test $# != 0; then
2905 # We chose a different compiler from the bogus one.
2906 # However, it has the same basename, so the bogon will be chosen
2907 # first if we set CC to just the basename; use the full file name.
2909 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2915 if test -n "$CC"; then
2916 echo "$as_me:$LINENO: result: $CC" >&5
2917 echo "${ECHO_T}$CC" >&6
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_CC+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC
="$CC" # Let the user override the test.
2938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir
=.
2943 for ac_exec_ext
in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CC"; then
2956 echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2963 test -n "$CC" && break
2966 if test -z "$CC"; then
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy
$ac_prog; ac_word
=$2
2972 echo "$as_me:$LINENO: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 if test -n "$ac_ct_CC"; then
2978 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir
=.
2985 for ac_exec_ext
in '' $ac_executable_extensions; do
2986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_CC
="$ac_prog"
2988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2999 echo "${ECHO_T}$ac_ct_CC" >&6
3001 echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3005 test -n "$ac_ct_CC" && break
3014 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3015 See \`config.log' for more details." >&5
3016 echo "$as_me: error: no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }
3020 # Provide some information about the compiler.
3021 echo "$as_me:$LINENO:" \
3022 "checking for C compiler version" >&5
3023 ac_compiler
=`set X $ac_compile; echo $2`
3024 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3025 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }
3029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3030 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3035 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }
3040 cat >conftest.
$ac_ext <<_ACEOF
3043 cat confdefs.h
>>conftest.
$ac_ext
3044 cat >>conftest.
$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 ac_clean_files_save
=$ac_clean_files
3056 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3057 # Try to create an executable without -o first, disregard a.out.
3058 # It will help us diagnose broken compilers, and finding out an intuition
3060 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3061 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3062 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3064 (eval $ac_link_default) 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; then
3068 # Find the output, starting from the most likely. This scheme is
3069 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3072 # Be careful to initialize this variable, since it used to be cached.
3073 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3075 # b.out is created by i960 compilers.
3076 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3078 test -f "$ac_file" ||
continue
3080 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3083 # This is the source file.
3086 # We found the default executable, but exeext='' is most
3090 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 # FIXME: I believe we export ac_cv_exeext for Libtool,
3092 # but it would be cool to find out if it's true. Does anybody
3093 # maintain Libtool? --akim.
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.
$ac_ext >&5
3104 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C compiler cannot create executables
3107 See \`config.log' for more details." >&2;}
3108 { (exit 77); exit 77; }; }
3111 ac_exeext
=$ac_cv_exeext
3112 echo "$as_me:$LINENO: result: $ac_file" >&5
3113 echo "${ECHO_T}$ac_file" >&6
3115 # Check the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3118 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3119 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3120 # If not cross compiling, check that we can run a simple program.
3121 if test "$cross_compiling" != yes; then
3122 if { ac_try
='./$ac_file'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3130 if test "$cross_compiling" = maybe
; then
3133 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: cannot run C compiled programs.
3137 If you meant to cross compile, use \`--host'.
3138 See \`config.log' for more details." >&2;}
3139 { (exit 1); exit 1; }; }
3143 echo "$as_me:$LINENO: result: yes" >&5
3144 echo "${ECHO_T}yes" >&6
3146 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3147 ac_clean_files
=$ac_clean_files_save
3148 # Check the compiler produces executables we can run. If not, either
3149 # the compiler is broken, or we cross compile.
3150 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3151 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3152 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3153 echo "${ECHO_T}$cross_compiling" >&6
3155 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3156 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3158 (eval $ac_link) 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; then
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3166 for ac_file
in conftest.exe conftest conftest.
*; do
3167 test -f "$ac_file" ||
continue
3169 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3170 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3180 See \`config.log' for more details." >&2;}
3181 { (exit 1); exit 1; }; }
3184 rm -f conftest
$ac_cv_exeext
3185 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3186 echo "${ECHO_T}$ac_cv_exeext" >&6
3188 rm -f conftest.
$ac_ext
3189 EXEEXT
=$ac_cv_exeext
3191 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3192 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3193 if test "${ac_cv_objext+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 cat >conftest.
$ac_ext <<_ACEOF
3199 cat confdefs.h
>>conftest.
$ac_ext
3200 cat >>conftest.
$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3211 rm -f conftest.o conftest.obj
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; then
3217 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3219 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3220 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.
$ac_ext >&5
3228 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }
3235 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3237 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3238 echo "${ECHO_T}$ac_cv_objext" >&6
3239 OBJEXT
=$ac_cv_objext
3241 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3242 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3243 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 cat >conftest.
$ac_ext <<_ACEOF
3249 cat confdefs.h
>>conftest.
$ac_ext
3250 cat >>conftest.
$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3264 rm -f conftest.
$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>conftest.er1
3268 grep -v '^ *+' conftest.er1
>conftest.err
3270 cat conftest.err
>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; } &&
3279 { ac_try
='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.
$ac_ext >&5
3292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3293 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3296 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3297 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3298 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3299 ac_test_CFLAGS
=${CFLAGS+set}
3300 ac_save_CFLAGS
=$CFLAGS
3302 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3303 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3304 if test "${ac_cv_prog_cc_g+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 cat >conftest.
$ac_ext <<_ACEOF
3310 cat confdefs.h
>>conftest.
$ac_ext
3311 cat >>conftest.
$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3322 rm -f conftest.
$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>conftest.er1
3326 grep -v '^ *+' conftest.er1
>conftest.err
3328 cat conftest.err
>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try
='test -s conftest.$ac_objext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.
$ac_ext >&5
3350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3352 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3353 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS
=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3363 if test "$GCC" = yes; then
3369 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3370 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3371 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 ac_cv_prog_cc_stdc
=no
3376 cat >conftest.
$ac_ext <<_ACEOF
3379 cat confdefs.h
>>conftest.
$ac_ext
3380 cat >>conftest.
$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3384 #include <sys/types.h>
3385 #include <sys/stat.h>
3386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3387 struct buf { int x; };
3388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3389 static char *e (p, i)
3395 static char *f (char * (*g) (char **, int), char **p, ...)
3400 s = g (p, va_arg (v,int));
3405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3406 function prototypes and stuff, but not '\xHH' hex character constants.
3407 These don't provoke an error unfortunately, instead are silently treated
3408 as 'x'. The following induces an error, until -std1 is added to get
3409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3410 array size at least. It's necessary to write '\x00'==0 to get something
3411 that's true only with -std1. */
3412 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3414 int test (int i, double x);
3415 struct s1 {int (*f) (int a);};
3416 struct s2 {int (*f) (double a);};
3417 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3423 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3428 # Don't try gcc -ansi; that turns off useful extensions and
3429 # breaks some systems' header files.
3430 # AIX -qlanglvl=ansi
3431 # Ultrix and OSF/1 -std1
3432 # HP-UX 10.20 and later -Ae
3433 # HP-UX older versions -Aa -D_HPUX_SOURCE
3434 # SVR4 -Xc -D__EXTENSIONS__
3435 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3437 CC
="$ac_save_CC $ac_arg"
3438 rm -f conftest.
$ac_objext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>conftest.er1
3442 grep -v '^ *+' conftest.er1
>conftest.err
3444 cat conftest.err
>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } &&
3453 { ac_try
='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 ac_cv_prog_cc_stdc
=$ac_arg
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.
$ac_ext >&5
3466 rm -f conftest.err conftest.
$ac_objext
3468 rm -f conftest.
$ac_ext conftest.
$ac_objext
3473 case "x$ac_cv_prog_cc_stdc" in
3475 echo "$as_me:$LINENO: result: none needed" >&5
3476 echo "${ECHO_T}none needed" >&6 ;;
3478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3479 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3480 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3483 # Some people use a C++ compiler to compile C. Since we use `exit',
3484 # in C++ we need to declare it. In case someone uses the same compiler
3485 # for both compiling C and C++ we need to have the C++ compiler decide
3486 # the declaration of exit, since it's the most demanding environment.
3487 cat >conftest.
$ac_ext <<_ACEOF
3492 rm -f conftest.
$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3496 grep -v '^ *+' conftest.er1
>conftest.err
3498 cat conftest.err
>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try
='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 for ac_declaration
in \
3515 'extern "C" void std::exit (int) throw (); using std::exit;' \
3516 'extern "C" void std::exit (int); using std::exit;' \
3517 'extern "C" void exit (int) throw ();' \
3518 'extern "C" void exit (int);' \
3521 cat >conftest.
$ac_ext <<_ACEOF
3524 cat confdefs.h
>>conftest.
$ac_ext
3525 cat >>conftest.
$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3537 rm -f conftest.
$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1
>conftest.err
3543 cat conftest.err
>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try
='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.
$ac_ext >&5
3565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3566 cat >conftest.
$ac_ext <<_ACEOF
3569 cat confdefs.h
>>conftest.
$ac_ext
3570 cat >>conftest.
$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3581 rm -f conftest.
$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1
>conftest.err
3587 cat conftest.err
>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try
='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
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
3611 if test -n "$ac_declaration"; then
3612 echo '#ifdef __cplusplus' >>confdefs.h
3613 echo $ac_declaration >>confdefs.h
3614 echo '#endif' >>confdefs.h
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.
$ac_ext >&5
3622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3624 ac_cpp
='$CPP $CPPFLAGS'
3625 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3630 # On Suns, sometimes $CPP names a directory.
3631 if test -n "$CPP" && test -d "$CPP"; then
3635 #### Some systems specify a CPP to use unless we are using GCC.
3636 #### Now that we know whether we are using GCC, we can decide whether
3637 #### to use that one.
3638 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3643 #### Some systems specify a CC to use unless we are using GCC.
3644 #### Now that we know whether we are using GCC, we can decide whether
3645 #### to use that one.
3646 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3647 test x
$cc_specified != xyes
3652 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3654 CC
="$CC $GCC_TEST_OPTIONS"
3657 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3659 CC
="$CC $NON_GCC_TEST_OPTIONS"
3662 #### Some other nice autoconf tests.
3664 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3665 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3667 if test "$LN_S" = "ln -s"; then
3668 echo "$as_me:$LINENO: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6
3671 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3672 echo "${ECHO_T}no, using $LN_S" >&6
3676 ac_cpp
='$CPP $CPPFLAGS'
3677 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3680 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3681 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3682 # On Suns, sometimes $CPP names a directory.
3683 if test -n "$CPP" && test -d "$CPP"; then
3686 if test -z "$CPP"; then
3687 if test "${ac_cv_prog_CPP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 # Double quotes because CPP needs to be expanded
3691 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3694 for ac_c_preproc_warn_flag
in '' yes
3696 # Use a header file that comes with gcc, so configuring glibc
3697 # with a fresh cross-compiler works.
3698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 # <limits.h> exists even on freestanding compilers.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp. "Syntax error" is here to catch this case.
3702 cat >conftest.
$ac_ext <<_ACEOF
3705 cat confdefs.h
>>conftest.
$ac_ext
3706 cat >>conftest.
$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3709 # include <limits.h>
3711 # include <assert.h>
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3718 grep -v '^ *+' conftest.er1
>conftest.err
3720 cat conftest.err
>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev
/null
; then
3723 if test -s conftest.err
; then
3724 ac_cpp_err
=$ac_c_preproc_warn_flag
3725 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3732 if test -z "$ac_cpp_err"; then
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.
$ac_ext >&5
3738 # Broken: fails on valid input.
3741 rm -f conftest.err conftest.
$ac_ext
3743 # OK, works on sane cases. Now check whether non-existent headers
3744 # can be detected and how.
3745 cat >conftest.
$ac_ext <<_ACEOF
3748 cat confdefs.h
>>conftest.
$ac_ext
3749 cat >>conftest.
$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 #include <ac_nonexistent.h>
3753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3756 grep -v '^ *+' conftest.er1
>conftest.err
3758 cat conftest.err
>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } >/dev
/null
; then
3761 if test -s conftest.err
; then
3762 ac_cpp_err
=$ac_c_preproc_warn_flag
3763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3770 if test -z "$ac_cpp_err"; then
3771 # Broken: success on invalid input.
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.
$ac_ext >&5
3777 # Passes both tests.
3781 rm -f conftest.err conftest.
$ac_ext
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.err conftest.
$ac_ext
3786 if $ac_preproc_ok; then
3798 echo "$as_me:$LINENO: result: $CPP" >&5
3799 echo "${ECHO_T}$CPP" >&6
3801 for ac_c_preproc_warn_flag
in '' yes
3803 # Use a header file that comes with gcc, so configuring glibc
3804 # with a fresh cross-compiler works.
3805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806 # <limits.h> exists even on freestanding compilers.
3807 # On the NeXT, cc -E runs the code through the compiler's parser,
3808 # not just through cpp. "Syntax error" is here to catch this case.
3809 cat >conftest.
$ac_ext <<_ACEOF
3812 cat confdefs.h
>>conftest.
$ac_ext
3813 cat >>conftest.
$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3816 # include <limits.h>
3818 # include <assert.h>
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3825 grep -v '^ *+' conftest.er1
>conftest.err
3827 cat conftest.err
>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev
/null
; then
3830 if test -s conftest.err
; then
3831 ac_cpp_err
=$ac_c_preproc_warn_flag
3832 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3839 if test -z "$ac_cpp_err"; then
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.
$ac_ext >&5
3845 # Broken: fails on valid input.
3848 rm -f conftest.err conftest.
$ac_ext
3850 # OK, works on sane cases. Now check whether non-existent headers
3851 # can be detected and how.
3852 cat >conftest.
$ac_ext <<_ACEOF
3855 cat confdefs.h
>>conftest.
$ac_ext
3856 cat >>conftest.
$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <ac_nonexistent.h>
3860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3861 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1
>conftest.err
3865 cat conftest.err
>&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } >/dev
/null
; then
3868 if test -s conftest.err
; then
3869 ac_cpp_err
=$ac_c_preproc_warn_flag
3870 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3877 if test -z "$ac_cpp_err"; then
3878 # Broken: success on invalid input.
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.
$ac_ext >&5
3884 # Passes both tests.
3888 rm -f conftest.err conftest.
$ac_ext
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.err conftest.
$ac_ext
3893 if $ac_preproc_ok; then
3896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3897 See \`config.log' for more details." >&5
3898 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details." >&2;}
3900 { (exit 1); exit 1; }; }
3904 ac_cpp
='$CPP $CPPFLAGS'
3905 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3909 # Find a good install program. We prefer a C program (faster),
3910 # so one script is as good as another. But avoid the broken or
3911 # incompatible versions:
3912 # SysV /etc/install, /usr/sbin/install
3913 # SunOS /usr/etc/install
3914 # IRIX /sbin/install
3916 # AmigaOS /C/install, which installs bootblocks on floppy discs
3917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3920 # OS/2's system install, which has a completely different semantic
3921 # ./install, which can be erroneously created by make from ./install.sh.
3922 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3923 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3924 if test -z "$INSTALL"; then
3925 if test "${ac_cv_path_install+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir
=.
3933 # Account for people who put trailing slashes in PATH elements.
3935 .
/ | .
// |
/cC
/* | \
3936 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3937 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3940 # OSF1 and SCO ODT 3.0 have their own names for install.
3941 # Don't use installbsd from OSF since it installs stuff as root
3943 for ac_prog
in ginstall scoinst
install; do
3944 for ac_exec_ext
in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3946 if test $ac_prog = install &&
3947 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3948 # AIX install. It has an incompatible calling convention.
3950 elif test $ac_prog = install &&
3951 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3952 # program-specific install script used by HP pwplus--don't use.
3955 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3967 if test "${ac_cv_path_install+set}" = set; then
3968 INSTALL
=$ac_cv_path_install
3970 # As a last resort, use the slow shell script. We don't cache a
3971 # path for INSTALL within a source directory, because that will
3972 # break other packages using the cache if that directory is
3973 # removed, or if the path is relative.
3974 INSTALL
=$ac_install_sh
3977 echo "$as_me:$LINENO: result: $INSTALL" >&5
3978 echo "${ECHO_T}$INSTALL" >&6
3980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3981 # It thinks the first close brace ends the variable substitution.
3982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3986 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3988 if test "x$RANLIB" = x
; then
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3991 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_RANLIB+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 if test -n "$RANLIB"; then
3998 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4004 test -z "$as_dir" && as_dir
=.
4005 for ac_exec_ext
in '' $ac_executable_extensions; do
4006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 RANLIB
=$ac_cv_prog_RANLIB
4017 if test -n "$RANLIB"; then
4018 echo "$as_me:$LINENO: result: $RANLIB" >&5
4019 echo "${ECHO_T}$RANLIB" >&6
4021 echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4026 if test -z "$ac_cv_prog_RANLIB"; then
4027 ac_ct_RANLIB
=$RANLIB
4028 # Extract the first word of "ranlib", so it can be a program name with args.
4029 set dummy ranlib
; ac_word
=$2
4030 echo "$as_me:$LINENO: checking for $ac_word" >&5
4031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 if test -n "$ac_ct_RANLIB"; then
4036 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4042 test -z "$as_dir" && as_dir
=.
4043 for ac_exec_ext
in '' $ac_executable_extensions; do
4044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4055 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4056 if test -n "$ac_ct_RANLIB"; then
4057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4064 RANLIB
=$ac_ct_RANLIB
4066 RANLIB
="$ac_cv_prog_RANLIB"
4070 # Extract the first word of "install-info", so it can be a program name with args.
4071 set dummy install-info
; ac_word
=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 case $INSTALL_INFO in
4079 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir
=.
4087 for ac_exec_ext
in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4101 if test -n "$INSTALL_INFO"; then
4102 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4103 echo "${ECHO_T}$INSTALL_INFO" >&6
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4109 # Extract the first word of "install-info", so it can be a program name with args.
4110 set dummy install-info
; ac_word
=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 case $INSTALL_INFO in
4118 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4122 for as_dir
in /usr
/sbin
4125 test -z "$as_dir" && as_dir
=.
4126 for ac_exec_ext
in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4140 if test -n "$INSTALL_INFO"; then
4141 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4142 echo "${ECHO_T}$INSTALL_INFO" >&6
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4148 # Extract the first word of "install-info", so it can be a program name with args.
4149 set dummy install-info
; ac_word
=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 case $INSTALL_INFO in
4157 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir
=.
4165 for ac_exec_ext
in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4178 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4180 if test -n "$INSTALL_INFO"; then
4181 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4182 echo "${ECHO_T}$INSTALL_INFO" >&6
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4190 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4192 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4195 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4197 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4201 late_LDFLAGS
=$LDFLAGS
4202 if test "$GCC" = yes; then
4203 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4205 LDFLAGS
="$LDFLAGS -znocombreloc"
4208 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4209 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4211 cat >conftest.
$ac_ext <<_ACEOF
4214 rm -f conftest.
$ac_objext conftest
$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>conftest.er1
4218 grep -v '^ *+' conftest.er1
>conftest.err
4220 cat conftest.err
>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try
='test -s conftest$ac_exeext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 echo "$as_me:$LINENO: result: yes" >&5
4236 echo "${ECHO_T}yes" >&6
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.
$ac_ext >&5
4241 LDFLAGS
=$late_LDFLAGS
4242 echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6
4245 rm -f conftest.err conftest.
$ac_objext \
4246 conftest
$ac_exeext conftest.
$ac_ext
4249 echo "$as_me:$LINENO: checking for egrep" >&5
4250 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4251 if test "${ac_cv_prog_egrep+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4255 then ac_cv_prog_egrep
='grep -E'
4256 else ac_cv_prog_egrep
='egrep'
4259 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4260 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4261 EGREP
=$ac_cv_prog_egrep
4265 echo "$as_me:$LINENO: checking for AIX" >&5
4266 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4267 cat >conftest.
$ac_ext <<_ACEOF
4270 cat confdefs.h
>>conftest.
$ac_ext
4271 cat >>conftest.
$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "yes" >/dev
/null
2>&1; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281 echo "${ECHO_T}yes" >&6
4282 cat >>confdefs.h
<<\_ACEOF
4283 #define _ALL_SOURCE 1
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4295 #### Extract some information from the operating system and machine files.
4297 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4298 - which libraries the lib-src programs will want, and
4299 - whether the GNU malloc routines are usable..." >&5
4300 echo "$as_me: checking the machine- and system-dependent files to find out
4301 - which libraries the lib-src programs will want, and
4302 - whether the GNU malloc routines are usable..." >&6;}
4304 ### First figure out CFLAGS (which we use for running the compiler here)
4305 ### and REAL_CFLAGS (which we use for real compilation).
4306 ### The two are the same except on a few systems, where they are made
4307 ### different to work around various lossages. For example,
4308 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4309 ### as implying static linking.
4311 ### If the CFLAGS env var is specified, we use that value
4312 ### instead of the default.
4314 ### It's not important that this name contain the PID; you can't run
4315 ### two configures in the same directory and have anything work
4317 tempcname
="conftest.c"
4320 #include "'${srcdir}'/src/'${opsysfile}'"
4321 #include "'${srcdir}'/src/'${machfile}'"
4322 #ifndef LIBS_MACHINE
4323 #define LIBS_MACHINE
4328 #ifndef C_SWITCH_SYSTEM
4329 #define C_SWITCH_SYSTEM
4331 #ifndef C_SWITCH_MACHINE
4332 #define C_SWITCH_MACHINE
4334 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4335 configure___ c_switch_system=C_SWITCH_SYSTEM
4336 configure___ c_switch_machine=C_SWITCH_MACHINE
4339 #define LIB_X11_LIB -lX11
4342 #ifndef LIBX11_MACHINE
4343 #define LIBX11_MACHINE
4346 #ifndef LIBX11_SYSTEM
4347 #define LIBX11_SYSTEM
4349 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4352 configure___ unexec=UNEXEC
4354 configure___ unexec=unexec.o
4357 #ifdef SYSTEM_MALLOC
4358 configure___ system_malloc=yes
4360 configure___ system_malloc=no
4363 #ifdef USE_MMAP_FOR_BUFFERS
4364 configure___ use_mmap_for_buffers=yes
4366 configure___ use_mmap_for_buffers=no
4369 #ifndef C_DEBUG_SWITCH
4370 #define C_DEBUG_SWITCH -g
4373 #ifndef C_OPTIMIZE_SWITCH
4375 #define C_OPTIMIZE_SWITCH -O2
4377 #define C_OPTIMIZE_SWITCH -O
4381 #ifndef LD_SWITCH_MACHINE
4382 #define LD_SWITCH_MACHINE
4385 #ifndef LD_SWITCH_SYSTEM
4386 #define LD_SWITCH_SYSTEM
4389 #ifndef LD_SWITCH_X_SITE_AUX
4390 #define LD_SWITCH_X_SITE_AUX
4393 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4394 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4396 #ifdef THIS_IS_CONFIGURE
4398 /* Get the CFLAGS for tests in configure. */
4400 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4402 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4405 #else /* not THIS_IS_CONFIGURE */
4407 /* Get the CFLAGS for real compilation. */
4409 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4411 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4414 #endif /* not THIS_IS_CONFIGURE */
4417 # The value of CPP is a quoted variable reference, so we need to do this
4418 # to get its actual value...
4419 CPP
=`eval "echo $CPP"`
4420 eval `${CPP} -Isrc ${tempcname} \
4421 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4422 if test "x$SPECIFIED_CFLAGS" = x
; then
4423 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4424 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4426 REAL_CFLAGS
="$CFLAGS"
4430 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4432 ### Make sure subsequent tests use flags consistent with the build flags.
4434 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4435 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4437 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4443 cat >>confdefs.h
<<\_ACEOF
4444 #define _GNU_SOURCE 1
4449 # Check whether --enable-largefile or --disable-largefile was given.
4450 if test "${enable_largefile+set}" = set; then
4451 enableval
="$enable_largefile"
4454 if test "$enable_largefile" != no
; then
4456 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4457 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4458 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 ac_cv_sys_largefile_CC
=no
4462 if test "$GCC" != yes; then
4465 # IRIX 6.2 and later do not support large files by default,
4466 # so use the C compiler's -n32 option if that helps.
4467 cat >conftest.
$ac_ext <<_ACEOF
4470 cat confdefs.h
>>conftest.
$ac_ext
4471 cat >>conftest.
$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <sys/types.h>
4474 /* Check that off_t can represent 2**63 - 1 correctly.
4475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4476 since some C++ compilers masquerading as C compilers
4477 incorrectly reject 9223372036854775807. */
4478 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4480 && LARGE_OFF_T % 2147483647 == 1)
4490 rm -f conftest.
$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4494 grep -v '^ *+' conftest.er1
>conftest.err
4496 cat conftest.err
>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try
='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.
$ac_ext >&5
4517 rm -f conftest.err conftest.
$ac_objext
4519 rm -f conftest.
$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1
>conftest.err
4525 cat conftest.err
>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try
='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_cv_sys_largefile_CC
=' -n32'; break
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.
$ac_ext >&5
4546 rm -f conftest.err conftest.
$ac_objext
4550 rm -f conftest.
$ac_ext
4553 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4554 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4555 if test "$ac_cv_sys_largefile_CC" != no
; then
4556 CC
=$CC$ac_cv_sys_largefile_CC
4559 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4560 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4561 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 ac_cv_sys_file_offset_bits
=no
4566 cat >conftest.
$ac_ext <<_ACEOF
4569 cat confdefs.h
>>conftest.
$ac_ext
4570 cat >>conftest.
$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <sys/types.h>
4573 /* Check that off_t can represent 2**63 - 1 correctly.
4574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4575 since some C++ compilers masquerading as C compilers
4576 incorrectly reject 9223372036854775807. */
4577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4579 && LARGE_OFF_T % 2147483647 == 1)
4589 rm -f conftest.
$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>conftest.er1
4593 grep -v '^ *+' conftest.er1
>conftest.err
4595 cat conftest.err
>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try
='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.
$ac_ext >&5
4616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4617 cat >conftest.
$ac_ext <<_ACEOF
4620 cat confdefs.h
>>conftest.
$ac_ext
4621 cat >>conftest.
$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #define _FILE_OFFSET_BITS 64
4624 #include <sys/types.h>
4625 /* Check that off_t can represent 2**63 - 1 correctly.
4626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4627 since some C++ compilers masquerading as C compilers
4628 incorrectly reject 9223372036854775807. */
4629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4631 && LARGE_OFF_T % 2147483647 == 1)
4641 rm -f conftest.
$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1
>conftest.err
4647 cat conftest.err
>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try
='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_sys_file_offset_bits
=64; break
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.
$ac_ext >&5
4668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4674 if test "$ac_cv_sys_file_offset_bits" != no
; then
4676 cat >>confdefs.h
<<_ACEOF
4677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4682 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4683 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4684 if test "${ac_cv_sys_large_files+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 ac_cv_sys_large_files
=no
4689 cat >conftest.
$ac_ext <<_ACEOF
4692 cat confdefs.h
>>conftest.
$ac_ext
4693 cat >>conftest.
$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4712 rm -f conftest.
$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1
>conftest.err
4718 cat conftest.err
>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try
='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.
$ac_ext >&5
4739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4740 cat >conftest.
$ac_ext <<_ACEOF
4743 cat confdefs.h
>>conftest.
$ac_ext
4744 cat >>conftest.
$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #define _LARGE_FILES 1
4747 #include <sys/types.h>
4748 /* Check that off_t can represent 2**63 - 1 correctly.
4749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4750 since some C++ compilers masquerading as C compilers
4751 incorrectly reject 9223372036854775807. */
4752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4754 && LARGE_OFF_T % 2147483647 == 1)
4764 rm -f conftest.
$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>conftest.er1
4768 grep -v '^ *+' conftest.er1
>conftest.err
4770 cat conftest.err
>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try
='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_sys_large_files
=1; break
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.
$ac_ext >&5
4791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4795 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4796 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4797 if test "$ac_cv_sys_large_files" != no
; then
4799 cat >>confdefs.h
<<_ACEOF
4800 #define _LARGE_FILES $ac_cv_sys_large_files
4808 if test "${with_sound}" != "no"; then
4809 # Sound support for GNU/Linux and the free BSDs.
4810 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4811 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4812 if test "${ac_cv_header_stdc+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 cat >conftest.
$ac_ext <<_ACEOF
4818 cat confdefs.h
>>conftest.
$ac_ext
4819 cat >>conftest.
$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4834 rm -f conftest.
$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1
>conftest.err
4840 cat conftest.err
>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try
='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_header_stdc
=yes
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.
$ac_ext >&5
4860 ac_cv_header_stdc
=no
4862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4864 if test $ac_cv_header_stdc = yes; then
4865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4866 cat >conftest.
$ac_ext <<_ACEOF
4869 cat confdefs.h
>>conftest.
$ac_ext
4870 cat >>conftest.
$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876 $EGREP "memchr" >/dev
/null
2>&1; then
4879 ac_cv_header_stdc
=no
4885 if test $ac_cv_header_stdc = yes; then
4886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4887 cat >conftest.
$ac_ext <<_ACEOF
4890 cat confdefs.h
>>conftest.
$ac_ext
4891 cat >>conftest.
$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897 $EGREP "free" >/dev
/null
2>&1; then
4900 ac_cv_header_stdc
=no
4906 if test $ac_cv_header_stdc = yes; then
4907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908 if test "$cross_compiling" = yes; then
4911 cat >conftest.
$ac_ext <<_ACEOF
4914 cat confdefs.h
>>conftest.
$ac_ext
4915 cat >>conftest.
$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4918 #if ((' ' & 0x0FF) == 0x020)
4919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4922 # define ISLOWER(c) \
4923 (('a' <= (c) && (c) <= 'i') \
4924 || ('j' <= (c) && (c) <= 'r') \
4925 || ('s' <= (c) && (c) <= 'z'))
4926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4934 for (i = 0; i < 256; i++)
4935 if (XOR (islower (i), ISLOWER (i))
4936 || toupper (i) != TOUPPER (i))
4941 rm -f conftest
$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4954 echo "$as_me: program exited with status $ac_status" >&5
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.
$ac_ext >&5
4959 ac_cv_header_stdc
=no
4961 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4966 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4967 if test $ac_cv_header_stdc = yes; then
4969 cat >>confdefs.h
<<\_ACEOF
4970 #define STDC_HEADERS 1
4975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4985 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4986 inttypes.h stdint.h unistd.h
4988 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989 echo "$as_me:$LINENO: checking for $ac_header" >&5
4990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 cat >conftest.
$ac_ext <<_ACEOF
4997 cat confdefs.h
>>conftest.
$ac_ext
4998 cat >>conftest.
$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 $ac_includes_default
5002 #include <$ac_header>
5004 rm -f conftest.
$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5008 grep -v '^ *+' conftest.er1
>conftest.err
5010 cat conftest.err
>&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try
='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 eval "$as_ac_Header=yes"
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.
$ac_ext >&5
5030 eval "$as_ac_Header=no"
5032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5037 cat >>confdefs.h
<<_ACEOF
5038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5051 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053 echo "$as_me:$LINENO: checking for $ac_header" >&5
5054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5061 # Is the header compilable?
5062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5064 cat >conftest.
$ac_ext <<_ACEOF
5067 cat confdefs.h
>>conftest.
$ac_ext
5068 cat >>conftest.
$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 #include <$ac_header>
5073 rm -f conftest.
$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5077 grep -v '^ *+' conftest.er1
>conftest.err
5079 cat conftest.err
>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try
='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_header_compiler
=yes
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.
$ac_ext >&5
5099 ac_header_compiler
=no
5101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5103 echo "${ECHO_T}$ac_header_compiler" >&6
5105 # Is the header present?
5106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5108 cat >conftest.
$ac_ext <<_ACEOF
5111 cat confdefs.h
>>conftest.
$ac_ext
5112 cat >>conftest.
$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <$ac_header>
5116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5117 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5119 grep -v '^ *+' conftest.er1
>conftest.err
5121 cat conftest.err
>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev
/null
; then
5124 if test -s conftest.err
; then
5125 ac_cpp_err
=$ac_c_preproc_warn_flag
5126 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5133 if test -z "$ac_cpp_err"; then
5134 ac_header_preproc
=yes
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.
$ac_ext >&5
5139 ac_header_preproc
=no
5141 rm -f conftest.err conftest.
$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143 echo "${ECHO_T}$ac_header_preproc" >&6
5145 # So? What about this header?
5146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5152 ac_header_preproc
=yes
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5169 ## ------------------------------------------ ##
5170 ## Report this to the AC_PACKAGE_NAME lists. ##
5171 ## ------------------------------------------ ##
5174 sed "s/^/$as_me: WARNING: /" >&2
5177 echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 eval "$as_ac_Header=\$ac_header_preproc"
5184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5189 cat >>confdefs.h
<<_ACEOF
5190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5197 # Emulation library used on NetBSD.
5198 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5199 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5200 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 ac_check_lib_save_LIBS
=$LIBS
5204 LIBS
="-lossaudio $LIBS"
5205 cat >conftest.
$ac_ext <<_ACEOF
5208 cat confdefs.h
>>conftest.
$ac_ext
5209 cat >>conftest.
$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5227 rm -f conftest.
$ac_objext conftest
$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>conftest.er1
5231 grep -v '^ *+' conftest.er1
>conftest.err
5233 cat conftest.err
>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; } &&
5242 { ac_try
='test -s conftest$ac_exeext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_lib_ossaudio__oss_ioctl
=yes
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.
$ac_ext >&5
5253 ac_cv_lib_ossaudio__oss_ioctl
=no
5255 rm -f conftest.err conftest.
$ac_objext \
5256 conftest
$ac_exeext conftest.
$ac_ext
5257 LIBS
=$ac_check_lib_save_LIBS
5259 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5260 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5261 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5295 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5296 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5297 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5298 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5301 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5303 echo "$as_me:$LINENO: checking for $ac_header" >&5
5304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5311 # Is the header compilable?
5312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5314 cat >conftest.
$ac_ext <<_ACEOF
5317 cat confdefs.h
>>conftest.
$ac_ext
5318 cat >>conftest.
$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 $ac_includes_default
5321 #include <$ac_header>
5323 rm -f conftest.
$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>conftest.er1
5327 grep -v '^ *+' conftest.er1
>conftest.err
5329 cat conftest.err
>&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try
='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_header_compiler
=yes
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.
$ac_ext >&5
5349 ac_header_compiler
=no
5351 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5358 cat >conftest.
$ac_ext <<_ACEOF
5361 cat confdefs.h
>>conftest.
$ac_ext
5362 cat >>conftest.
$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #include <$ac_header>
5366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5367 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1
>conftest.err
5371 cat conftest.err
>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } >/dev
/null
; then
5374 if test -s conftest.err
; then
5375 ac_cpp_err
=$ac_c_preproc_warn_flag
5376 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5383 if test -z "$ac_cpp_err"; then
5384 ac_header_preproc
=yes
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.
$ac_ext >&5
5389 ac_header_preproc
=no
5391 rm -f conftest.err conftest.
$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5393 echo "${ECHO_T}$ac_header_preproc" >&6
5395 # So? What about this header?
5396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5402 ac_header_preproc
=yes
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5419 ## ------------------------------------------ ##
5420 ## Report this to the AC_PACKAGE_NAME lists. ##
5421 ## ------------------------------------------ ##
5424 sed "s/^/$as_me: WARNING: /" >&2
5427 echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 eval "$as_ac_Header=\$ac_header_preproc"
5434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5439 cat >>confdefs.h
<<_ACEOF
5440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5448 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5449 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5450 cat >conftest.
$ac_ext <<_ACEOF
5453 cat confdefs.h
>>conftest.
$ac_ext
5454 cat >>conftest.
$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <sys/personality.h>
5460 personality (PER_LINUX32)
5465 rm -f conftest.
$ac_objext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>conftest.er1
5469 grep -v '^ *+' conftest.er1
>conftest.err
5471 cat conftest.err
>&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } &&
5474 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try
='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 emacs_cv_personality_linux32
=yes
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.
$ac_ext >&5
5491 emacs_cv_personality_linux32
=no
5493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5494 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5495 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5497 if test $emacs_cv_personality_linux32 = yes; then
5499 cat >>confdefs.h
<<\_ACEOF
5500 #define HAVE_PERSONALITY_LINUX32 1
5506 for ac_header
in term.h
5508 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 cat >conftest.
$ac_ext <<_ACEOF
5517 cat confdefs.h
>>conftest.
$ac_ext
5518 cat >>conftest.
$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <$ac_header>
5522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5523 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5525 grep -v '^ *+' conftest.er1
>conftest.err
5527 cat conftest.err
>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } >/dev
/null
; then
5530 if test -s conftest.err
; then
5531 ac_cpp_err
=$ac_c_preproc_warn_flag
5532 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5539 if test -z "$ac_cpp_err"; then
5540 eval "$as_ac_Header=yes"
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.
$ac_ext >&5
5545 eval "$as_ac_Header=no"
5547 rm -f conftest.err conftest.
$ac_ext
5549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h
<<_ACEOF
5553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5561 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5562 if test "${ac_cv_header_stdc+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 cat >conftest.
$ac_ext <<_ACEOF
5568 cat confdefs.h
>>conftest.
$ac_ext
5569 cat >>conftest.
$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5584 rm -f conftest.
$ac_objext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586 (eval $ac_compile) 2>conftest.er1
5588 grep -v '^ *+' conftest.er1
>conftest.err
5590 cat conftest.err
>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try
='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_header_stdc
=yes
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.
$ac_ext >&5
5610 ac_cv_header_stdc
=no
5612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5614 if test $ac_cv_header_stdc = yes; then
5615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5616 cat >conftest.
$ac_ext <<_ACEOF
5619 cat confdefs.h
>>conftest.
$ac_ext
5620 cat >>conftest.
$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5626 $EGREP "memchr" >/dev
/null
2>&1; then
5629 ac_cv_header_stdc
=no
5635 if test $ac_cv_header_stdc = yes; then
5636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5637 cat >conftest.
$ac_ext <<_ACEOF
5640 cat confdefs.h
>>conftest.
$ac_ext
5641 cat >>conftest.
$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5647 $EGREP "free" >/dev
/null
2>&1; then
5650 ac_cv_header_stdc
=no
5656 if test $ac_cv_header_stdc = yes; then
5657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5658 if test "$cross_compiling" = yes; then
5661 cat >conftest.
$ac_ext <<_ACEOF
5664 cat confdefs.h
>>conftest.
$ac_ext
5665 cat >>conftest.
$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5668 #if ((' ' & 0x0FF) == 0x020)
5669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5672 # define ISLOWER(c) \
5673 (('a' <= (c) && (c) <= 'i') \
5674 || ('j' <= (c) && (c) <= 'r') \
5675 || ('s' <= (c) && (c) <= 'z'))
5676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5684 for (i = 0; i < 256; i++)
5685 if (XOR (islower (i), ISLOWER (i))
5686 || toupper (i) != TOUPPER (i))
5691 rm -f conftest
$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5704 echo "$as_me: program exited with status $ac_status" >&5
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.
$ac_ext >&5
5709 ac_cv_header_stdc
=no
5711 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5716 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5717 if test $ac_cv_header_stdc = yes; then
5719 cat >>confdefs.h
<<\_ACEOF
5720 #define STDC_HEADERS 1
5725 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5727 if test "${ac_cv_header_time+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 cat >conftest.
$ac_ext <<_ACEOF
5733 cat confdefs.h
>>conftest.
$ac_ext
5734 cat >>conftest.
$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 #include <sys/time.h>
5743 if ((struct tm *) 0)
5749 rm -f conftest.
$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5753 grep -v '^ *+' conftest.er1
>conftest.err
5755 cat conftest.err
>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try
='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_header_time
=yes
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.
$ac_ext >&5
5775 ac_cv_header_time
=no
5777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5780 echo "${ECHO_T}$ac_cv_header_time" >&6
5781 if test $ac_cv_header_time = yes; then
5783 cat >>confdefs.h
<<\_ACEOF
5784 #define TIME_WITH_SYS_TIME 1
5789 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5790 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5791 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 cat >conftest.
$ac_ext <<_ACEOF
5797 cat confdefs.h
>>conftest.
$ac_ext
5798 cat >>conftest.
$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5805 char *p = (char *) sys_siglist;
5812 rm -f conftest.
$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5816 grep -v '^ *+' conftest.er1
>conftest.err
5818 cat conftest.err
>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try
='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_cv_have_decl_sys_siglist
=yes
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.
$ac_ext >&5
5838 ac_cv_have_decl_sys_siglist
=no
5840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5842 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5843 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5844 if test $ac_cv_have_decl_sys_siglist = yes; then
5846 cat >>confdefs.h
<<_ACEOF
5847 #define HAVE_DECL_SYS_SIGLIST 1
5852 cat >>confdefs.h
<<_ACEOF
5853 #define HAVE_DECL_SYS_SIGLIST 0
5860 if test $ac_cv_have_decl_sys_siglist != yes; then
5861 # For Tru64, at least:
5862 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5863 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5864 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 cat >conftest.
$ac_ext <<_ACEOF
5870 cat confdefs.h
>>conftest.
$ac_ext
5871 cat >>conftest.
$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 $ac_includes_default
5877 #ifndef __sys_siglist
5878 char *p = (char *) __sys_siglist;
5885 rm -f conftest.
$ac_objext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>conftest.er1
5889 grep -v '^ *+' conftest.er1
>conftest.err
5891 cat conftest.err
>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } &&
5894 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try
='test -s conftest.$ac_objext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_have_decl___sys_siglist
=yes
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.
$ac_ext >&5
5911 ac_cv_have_decl___sys_siglist
=no
5913 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5915 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5916 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5917 if test $ac_cv_have_decl___sys_siglist = yes; then
5919 cat >>confdefs.h
<<_ACEOF
5920 #define HAVE_DECL___SYS_SIGLIST 1
5925 cat >>confdefs.h
<<_ACEOF
5926 #define HAVE_DECL___SYS_SIGLIST 0
5933 if test $ac_cv_have_decl___sys_siglist = yes; then
5935 cat >>confdefs.h
<<\_ACEOF
5936 #define sys_siglist __sys_siglist
5941 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5942 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5943 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 cat >conftest.
$ac_ext <<_ACEOF
5949 cat confdefs.h
>>conftest.
$ac_ext
5950 cat >>conftest.
$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 #include <sys/wait.h>
5955 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5958 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5966 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5971 rm -f conftest.
$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1
>conftest.err
5977 cat conftest.err
>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try
='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_header_sys_wait_h
=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.
$ac_ext >&5
5997 ac_cv_header_sys_wait_h
=no
5999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6003 if test $ac_cv_header_sys_wait_h = yes; then
6005 cat >>confdefs.h
<<\_ACEOF
6006 #define HAVE_SYS_WAIT_H 1
6012 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6013 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6014 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cat >conftest.
$ac_ext <<_ACEOF
6020 cat confdefs.h
>>conftest.
$ac_ext
6021 cat >>conftest.
$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #ifdef TIME_WITH_SYS_TIME
6024 #include <sys/time.h>
6027 #ifdef HAVE_SYS_TIME_H
6028 #include <sys/time.h>
6039 static struct utimbuf x; x.actime = x.modtime;
6044 rm -f conftest.
$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6048 grep -v '^ *+' conftest.er1
>conftest.err
6050 cat conftest.err
>&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try
='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 emacs_cv_struct_utimbuf
=yes
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.
$ac_ext >&5
6070 emacs_cv_struct_utimbuf
=no
6072 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6074 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6075 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6076 if test $emacs_cv_struct_utimbuf = yes; then
6078 cat >>confdefs.h
<<\_ACEOF
6079 #define HAVE_STRUCT_UTIMBUF 1
6084 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6085 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6086 if test "${ac_cv_type_signal+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.
$ac_ext <<_ACEOF
6092 cat confdefs.h
>>conftest.
$ac_ext
6093 cat >>conftest.
$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <sys/types.h>
6101 extern "C" void (*signal (int, void (*)(int)))(int);
6103 void (*signal ()) ();
6114 rm -f conftest.
$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1
>conftest.err
6120 cat conftest.err
>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try
='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_type_signal
=void
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.
$ac_ext >&5
6140 ac_cv_type_signal
=int
6142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6145 echo "${ECHO_T}$ac_cv_type_signal" >&6
6147 cat >>confdefs.h
<<_ACEOF
6148 #define RETSIGTYPE $ac_cv_type_signal
6153 echo "$as_me:$LINENO: checking for speed_t" >&5
6154 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6155 if test "${emacs_cv_speed_t+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 cat >conftest.
$ac_ext <<_ACEOF
6161 cat confdefs.h
>>conftest.
$ac_ext
6162 cat >>conftest.
$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include <termios.h>
6173 rm -f conftest.
$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>conftest.er1
6177 grep -v '^ *+' conftest.er1
>conftest.err
6179 cat conftest.err
>&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try
='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 emacs_cv_speed_t
=yes
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.
$ac_ext >&5
6201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6203 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6204 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6205 if test $emacs_cv_speed_t = yes; then
6207 cat >>confdefs.h
<<\_ACEOF
6208 #define HAVE_SPEED_T 1
6213 echo "$as_me:$LINENO: checking for struct timeval" >&5
6214 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6215 if test "${emacs_cv_struct_timeval+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 cat >conftest.
$ac_ext <<_ACEOF
6221 cat confdefs.h
>>conftest.
$ac_ext
6222 cat >>conftest.
$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 #ifdef TIME_WITH_SYS_TIME
6225 #include <sys/time.h>
6228 #ifdef HAVE_SYS_TIME_H
6229 #include <sys/time.h>
6237 static struct timeval x; x.tv_sec = x.tv_usec;
6242 rm -f conftest.
$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6246 grep -v '^ *+' conftest.er1
>conftest.err
6248 cat conftest.err
>&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try
='test -s conftest.$ac_objext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 emacs_cv_struct_timeval
=yes
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.
$ac_ext >&5
6268 emacs_cv_struct_timeval
=no
6270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6272 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6273 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6274 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6275 if test $emacs_cv_struct_timeval = yes; then
6277 cat >>confdefs.h
<<\_ACEOF
6278 #define HAVE_TIMEVAL 1
6283 echo "$as_me:$LINENO: checking for struct exception" >&5
6284 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6285 if test "${emacs_cv_struct_exception+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.
$ac_ext <<_ACEOF
6291 cat confdefs.h
>>conftest.
$ac_ext
6292 cat >>conftest.
$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6298 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6303 rm -f conftest.
$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1
>conftest.err
6309 cat conftest.err
>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try
='test -s conftest.$ac_objext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 emacs_cv_struct_exception
=yes
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.
$ac_ext >&5
6329 emacs_cv_struct_exception
=no
6331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6333 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6334 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6335 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6336 if test $emacs_cv_struct_exception != yes; then
6338 cat >>confdefs.h
<<\_ACEOF
6339 #define NO_MATHERR 1
6345 for ac_header
in sys
/socket.h
6347 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6349 echo "$as_me:$LINENO: checking for $ac_header" >&5
6350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6357 # Is the header compilable?
6358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6360 cat >conftest.
$ac_ext <<_ACEOF
6363 cat confdefs.h
>>conftest.
$ac_ext
6364 cat >>conftest.
$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 $ac_includes_default
6367 #include <$ac_header>
6369 rm -f conftest.
$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6373 grep -v '^ *+' conftest.er1
>conftest.err
6375 cat conftest.err
>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try
='test -s conftest.$ac_objext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_header_compiler
=yes
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.
$ac_ext >&5
6395 ac_header_compiler
=no
6397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6399 echo "${ECHO_T}$ac_header_compiler" >&6
6401 # Is the header present?
6402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6404 cat >conftest.
$ac_ext <<_ACEOF
6407 cat confdefs.h
>>conftest.
$ac_ext
6408 cat >>conftest.
$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #include <$ac_header>
6412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1
>conftest.err
6417 cat conftest.err
>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } >/dev
/null
; then
6420 if test -s conftest.err
; then
6421 ac_cpp_err
=$ac_c_preproc_warn_flag
6422 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6429 if test -z "$ac_cpp_err"; then
6430 ac_header_preproc
=yes
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.
$ac_ext >&5
6435 ac_header_preproc
=no
6437 rm -f conftest.err conftest.
$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448 ac_header_preproc
=yes
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6465 ## ------------------------------------------ ##
6466 ## Report this to the AC_PACKAGE_NAME lists. ##
6467 ## ------------------------------------------ ##
6470 sed "s/^/$as_me: WARNING: /" >&2
6473 echo "$as_me:$LINENO: checking for $ac_header" >&5
6474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 eval "$as_ac_Header=\$ac_header_preproc"
6480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6485 cat >>confdefs.h
<<_ACEOF
6486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6494 for ac_header
in net
/if.h
6496 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 cat >conftest.
$ac_ext <<_ACEOF
6505 cat confdefs.h
>>conftest.
$ac_ext
6506 cat >>conftest.
$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 $ac_includes_default
6509 #if HAVE_SYS_SOCKET_H
6510 #include <sys/socket.h>
6513 #include <$ac_header>
6515 rm -f conftest.
$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1
>conftest.err
6521 cat conftest.err
>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try
='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 eval "$as_ac_Header=yes"
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.
$ac_ext >&5
6541 eval "$as_ac_Header=no"
6543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6548 cat >>confdefs.h
<<_ACEOF
6549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6557 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6558 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6559 if test "${ac_cv_struct_tm+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 cat >conftest.
$ac_ext <<_ACEOF
6565 cat confdefs.h
>>conftest.
$ac_ext
6566 cat >>conftest.
$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <sys/types.h>
6574 struct tm *tp; tp->tm_sec;
6579 rm -f conftest.
$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6583 grep -v '^ *+' conftest.er1
>conftest.err
6585 cat conftest.err
>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try
='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_struct_tm
=time.h
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.
$ac_ext >&5
6605 ac_cv_struct_tm
=sys
/time.h
6607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6609 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6610 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6611 if test $ac_cv_struct_tm = sys
/time.h
; then
6613 cat >>confdefs.h
<<\_ACEOF
6614 #define TM_IN_SYS_TIME 1
6619 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6620 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6621 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 cat >conftest.
$ac_ext <<_ACEOF
6627 cat confdefs.h
>>conftest.
$ac_ext
6628 cat >>conftest.
$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <sys/types.h>
6631 #include <$ac_cv_struct_tm>
6637 static struct tm ac_aggr;
6638 if (ac_aggr.tm_zone)
6644 rm -f conftest.
$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>conftest.er1
6648 grep -v '^ *+' conftest.er1
>conftest.err
6650 cat conftest.err
>&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try
='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_member_struct_tm_tm_zone
=yes
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.
$ac_ext >&5
6670 cat >conftest.
$ac_ext <<_ACEOF
6673 cat confdefs.h
>>conftest.
$ac_ext
6674 cat >>conftest.
$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <sys/types.h>
6677 #include <$ac_cv_struct_tm>
6683 static struct tm ac_aggr;
6684 if (sizeof ac_aggr.tm_zone)
6690 rm -f conftest.
$ac_objext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692 (eval $ac_compile) 2>conftest.er1
6694 grep -v '^ *+' conftest.er1
>conftest.err
6696 cat conftest.err
>&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try
='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_member_struct_tm_tm_zone
=yes
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.
$ac_ext >&5
6716 ac_cv_member_struct_tm_tm_zone
=no
6718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6723 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6724 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6726 cat >>confdefs.h
<<_ACEOF
6727 #define HAVE_STRUCT_TM_TM_ZONE 1
6733 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6735 cat >>confdefs.h
<<\_ACEOF
6736 #define HAVE_TM_ZONE 1
6740 echo "$as_me:$LINENO: checking for tzname" >&5
6741 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6742 if test "${ac_cv_var_tzname+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 cat >conftest.
$ac_ext <<_ACEOF
6748 cat confdefs.h
>>conftest.
$ac_ext
6749 cat >>conftest.
$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6752 #ifndef tzname /* For SGI. */
6753 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6764 rm -f conftest.
$ac_objext conftest
$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1
>conftest.err
6770 cat conftest.err
>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try
='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_var_tzname
=yes
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.
$ac_ext >&5
6792 rm -f conftest.err conftest.
$ac_objext \
6793 conftest
$ac_exeext conftest.
$ac_ext
6795 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6796 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6797 if test $ac_cv_var_tzname = yes; then
6799 cat >>confdefs.h
<<\_ACEOF
6800 #define HAVE_TZNAME 1
6806 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6807 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6808 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 cat >conftest.
$ac_ext <<_ACEOF
6814 cat confdefs.h
>>conftest.
$ac_ext
6815 cat >>conftest.
$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6822 static struct tm ac_aggr;
6823 if (ac_aggr.tm_gmtoff)
6829 rm -f conftest.
$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6833 grep -v '^ *+' conftest.er1
>conftest.err
6835 cat conftest.err
>&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try
='test -s conftest.$ac_objext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_member_struct_tm_tm_gmtoff
=yes
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.
$ac_ext >&5
6855 cat >conftest.
$ac_ext <<_ACEOF
6858 cat confdefs.h
>>conftest.
$ac_ext
6859 cat >>conftest.
$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6866 static struct tm ac_aggr;
6867 if (sizeof ac_aggr.tm_gmtoff)
6873 rm -f conftest.
$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>conftest.er1
6877 grep -v '^ *+' conftest.er1
>conftest.err
6879 cat conftest.err
>&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try
='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_member_struct_tm_tm_gmtoff
=yes
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.
$ac_ext >&5
6899 ac_cv_member_struct_tm_tm_gmtoff
=no
6901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6906 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6907 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6909 cat >>confdefs.h
<<\_ACEOF
6910 #define HAVE_TM_GMTOFF 1
6915 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6916 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6917 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 cat >conftest.
$ac_ext <<_ACEOF
6923 cat confdefs.h
>>conftest.
$ac_ext
6924 cat >>conftest.
$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 $ac_includes_default
6927 #if HAVE_SYS_SOCKET_H
6928 #include <sys/socket.h>
6937 static struct ifreq ac_aggr;
6938 if (ac_aggr.ifr_flags)
6944 rm -f conftest.
$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
6948 grep -v '^ *+' conftest.er1
>conftest.err
6950 cat conftest.err
>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try
='test -s conftest.$ac_objext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_member_struct_ifreq_ifr_flags
=yes
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.
$ac_ext >&5
6970 cat >conftest.
$ac_ext <<_ACEOF
6973 cat confdefs.h
>>conftest.
$ac_ext
6974 cat >>conftest.
$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 $ac_includes_default
6977 #if HAVE_SYS_SOCKET_H
6978 #include <sys/socket.h>
6987 static struct ifreq ac_aggr;
6988 if (sizeof ac_aggr.ifr_flags)
6994 rm -f conftest.
$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6998 grep -v '^ *+' conftest.er1
>conftest.err
7000 cat conftest.err
>&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try
='test -s conftest.$ac_objext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_member_struct_ifreq_ifr_flags
=yes
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.
$ac_ext >&5
7020 ac_cv_member_struct_ifreq_ifr_flags
=no
7022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7026 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7027 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7028 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7030 cat >>confdefs.h
<<_ACEOF
7031 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7036 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7037 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7038 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 cat >conftest.
$ac_ext <<_ACEOF
7044 cat confdefs.h
>>conftest.
$ac_ext
7045 cat >>conftest.
$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 #if HAVE_SYS_SOCKET_H
7049 #include <sys/socket.h>
7058 static struct ifreq ac_aggr;
7059 if (ac_aggr.ifr_hwaddr)
7065 rm -f conftest.
$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try
='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.
$ac_ext >&5
7091 cat >conftest.
$ac_ext <<_ACEOF
7094 cat confdefs.h
>>conftest.
$ac_ext
7095 cat >>conftest.
$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7098 #if HAVE_SYS_SOCKET_H
7099 #include <sys/socket.h>
7108 static struct ifreq ac_aggr;
7109 if (sizeof ac_aggr.ifr_hwaddr)
7115 rm -f conftest.
$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7119 grep -v '^ *+' conftest.er1
>conftest.err
7121 cat conftest.err
>&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try
='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.
$ac_ext >&5
7141 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7147 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7148 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7149 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7151 cat >>confdefs.h
<<_ACEOF
7152 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7157 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7158 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7159 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 cat >conftest.
$ac_ext <<_ACEOF
7165 cat confdefs.h
>>conftest.
$ac_ext
7166 cat >>conftest.
$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 $ac_includes_default
7169 #if HAVE_SYS_SOCKET_H
7170 #include <sys/socket.h>
7179 static struct ifreq ac_aggr;
7180 if (ac_aggr.ifr_netmask)
7186 rm -f conftest.
$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7190 grep -v '^ *+' conftest.er1
>conftest.err
7192 cat conftest.err
>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try
='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.
$ac_ext >&5
7212 cat >conftest.
$ac_ext <<_ACEOF
7215 cat confdefs.h
>>conftest.
$ac_ext
7216 cat >>conftest.
$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 $ac_includes_default
7219 #if HAVE_SYS_SOCKET_H
7220 #include <sys/socket.h>
7229 static struct ifreq ac_aggr;
7230 if (sizeof ac_aggr.ifr_netmask)
7236 rm -f conftest.
$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
7240 grep -v '^ *+' conftest.er1
>conftest.err
7242 cat conftest.err
>&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try
='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.
$ac_ext >&5
7262 ac_cv_member_struct_ifreq_ifr_netmask
=no
7264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7269 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7270 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7272 cat >>confdefs.h
<<_ACEOF
7273 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7278 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7279 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7280 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 cat >conftest.
$ac_ext <<_ACEOF
7286 cat confdefs.h
>>conftest.
$ac_ext
7287 cat >>conftest.
$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 #if HAVE_SYS_SOCKET_H
7291 #include <sys/socket.h>
7300 static struct ifreq ac_aggr;
7301 if (ac_aggr.ifr_broadaddr)
7307 rm -f conftest.
$ac_objext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7309 (eval $ac_compile) 2>conftest.er1
7311 grep -v '^ *+' conftest.er1
>conftest.err
7313 cat conftest.err
>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try
='test -s conftest.$ac_objext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.
$ac_ext >&5
7333 cat >conftest.
$ac_ext <<_ACEOF
7336 cat confdefs.h
>>conftest.
$ac_ext
7337 cat >>conftest.
$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7340 #if HAVE_SYS_SOCKET_H
7341 #include <sys/socket.h>
7350 static struct ifreq ac_aggr;
7351 if (sizeof ac_aggr.ifr_broadaddr)
7357 rm -f conftest.
$ac_objext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359 (eval $ac_compile) 2>conftest.er1
7361 grep -v '^ *+' conftest.er1
>conftest.err
7363 cat conftest.err
>&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } &&
7366 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try
='test -s conftest.$ac_objext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.
$ac_ext >&5
7383 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7390 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7391 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7393 cat >>confdefs.h
<<_ACEOF
7394 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7399 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7400 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7401 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 cat >conftest.
$ac_ext <<_ACEOF
7407 cat confdefs.h
>>conftest.
$ac_ext
7408 cat >>conftest.
$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 $ac_includes_default
7411 #if HAVE_SYS_SOCKET_H
7412 #include <sys/socket.h>
7421 static struct ifreq ac_aggr;
7422 if (ac_aggr.ifr_addr)
7428 rm -f conftest.
$ac_objext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430 (eval $ac_compile) 2>conftest.er1
7432 grep -v '^ *+' conftest.er1
>conftest.err
7434 cat conftest.err
>&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; } &&
7443 { ac_try
='test -s conftest.$ac_objext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 ac_cv_member_struct_ifreq_ifr_addr
=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.
$ac_ext >&5
7454 cat >conftest.
$ac_ext <<_ACEOF
7457 cat confdefs.h
>>conftest.
$ac_ext
7458 cat >>conftest.
$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 $ac_includes_default
7461 #if HAVE_SYS_SOCKET_H
7462 #include <sys/socket.h>
7471 static struct ifreq ac_aggr;
7472 if (sizeof ac_aggr.ifr_addr)
7478 rm -f conftest.
$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>conftest.er1
7482 grep -v '^ *+' conftest.er1
>conftest.err
7484 cat conftest.err
>&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; } &&
7493 { ac_try
='test -s conftest.$ac_objext'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; }; then
7499 ac_cv_member_struct_ifreq_ifr_addr
=yes
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.
$ac_ext >&5
7504 ac_cv_member_struct_ifreq_ifr_addr
=no
7506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7511 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7512 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7514 cat >>confdefs.h
<<_ACEOF
7515 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7523 echo "$as_me:$LINENO: checking for function prototypes" >&5
7524 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7525 if test "$ac_cv_prog_cc_stdc" != no
; then
7526 echo "$as_me:$LINENO: result: yes" >&5
7527 echo "${ECHO_T}yes" >&6
7529 cat >>confdefs.h
<<\_ACEOF
7530 #define PROTOTYPES 1
7534 cat >>confdefs.h
<<\_ACEOF
7535 #define __PROTOTYPES 1
7539 echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6
7543 echo "$as_me:$LINENO: checking for working volatile" >&5
7544 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7545 if test "${ac_cv_c_volatile+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 cat >conftest.
$ac_ext <<_ACEOF
7551 cat confdefs.h
>>conftest.
$ac_ext
7552 cat >>conftest.
$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7565 rm -f conftest.
$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>conftest.er1
7569 grep -v '^ *+' conftest.er1
>conftest.err
7571 cat conftest.err
>&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; } &&
7580 { ac_try
='test -s conftest.$ac_objext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_c_volatile
=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.
$ac_ext >&5
7593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7595 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7596 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7597 if test $ac_cv_c_volatile = no
; then
7599 cat >>confdefs.h
<<\_ACEOF
7605 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7606 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7607 if test "${ac_cv_c_const+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 cat >conftest.
$ac_ext <<_ACEOF
7613 cat confdefs.h
>>conftest.
$ac_ext
7614 cat >>conftest.
$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7620 /* FIXME: Include the comments suggested by Paul. */
7622 /* Ultrix mips cc rejects this. */
7623 typedef int charset[2];
7625 /* SunOS 4.1.1 cc rejects this. */
7626 char const *const *ccp;
7628 /* NEC SVR4.0.2 mips cc rejects this. */
7629 struct point {int x, y;};
7630 static struct point const zero = {0,0};
7631 /* AIX XL C 1.02.0.0 rejects this.
7632 It does not let you subtract one const X* pointer from another in
7633 an arm of an if-expression whose if-part is not a constant
7635 const char *g = "string";
7636 ccp = &g + (g ? g-g : 0);
7637 /* HPUX 7.0 cc rejects these. */
7640 ccp = (char const *const *) p;
7641 { /* SCO 3.2v4 cc rejects this. */
7643 char const *s = 0 ? (char *) 0 : (char const *) 0;
7647 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7649 const int *foo = &x[0];
7652 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7653 typedef const int *iptr;
7657 { /* AIX XL C 1.02.0.0 rejects this saying
7658 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7659 struct s { int j; const int *ap[3]; };
7660 struct s *b; b->j = 5;
7662 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7671 rm -f conftest.
$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 (eval $ac_compile) 2>conftest.er1
7675 grep -v '^ *+' conftest.er1
>conftest.err
7677 cat conftest.err
>&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } &&
7680 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try
='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.
$ac_ext >&5
7699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7701 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7702 echo "${ECHO_T}$ac_cv_c_const" >&6
7703 if test $ac_cv_c_const = no
; then
7705 cat >>confdefs.h
<<\_ACEOF
7711 echo "$as_me:$LINENO: checking for void * support" >&5
7712 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7713 if test "${emacs_cv_void_star+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 cat >conftest.
$ac_ext <<_ACEOF
7719 cat confdefs.h
>>conftest.
$ac_ext
7720 cat >>conftest.
$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7731 rm -f conftest.
$ac_objext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7733 (eval $ac_compile) 2>conftest.er1
7735 grep -v '^ *+' conftest.er1
>conftest.err
7737 cat conftest.err
>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try
='test -s conftest.$ac_objext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 emacs_cv_void_star
=yes
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.
$ac_ext >&5
7757 emacs_cv_void_star
=no
7759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7761 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7762 echo "${ECHO_T}$emacs_cv_void_star" >&6
7763 if test $emacs_cv_void_star = yes; then
7764 cat >>confdefs.h
<<\_ACEOF
7765 #define POINTER_TYPE void
7769 cat >>confdefs.h
<<\_ACEOF
7770 #define POINTER_TYPE char
7779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7781 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 cat >conftest.
make <<\_ACEOF
7787 @
echo 'ac_maketemp="$(MAKE)"'
7789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7791 if test -n "$ac_maketemp"; then
7792 eval ac_cv_prog_make_
${ac_make}_set
=yes
7794 eval ac_cv_prog_make_
${ac_make}_set
=no
7798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7799 echo "$as_me:$LINENO: result: yes" >&5
7800 echo "${ECHO_T}yes" >&6
7803 echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7805 SET_MAKE
="MAKE=${MAKE-make}"
7809 echo "$as_me:$LINENO: checking for long file names" >&5
7810 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7811 if test "${ac_cv_sys_long_file_names+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 ac_cv_sys_long_file_names
=yes
7815 # Test for long file names in all the places we know might matter:
7816 # . the current directory, where building will happen
7817 # $prefix/lib where we will be installing things
7818 # $exec_prefix/lib likewise
7819 # eval it to expand exec_prefix.
7820 # $TMPDIR if set, where it might want to write temporary files
7821 # if $TMPDIR is not set:
7822 # /tmp where it might want to write temporary files
7825 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7828 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7830 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7831 test -d $ac_dir ||
continue
7832 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7833 ac_xdir
=$ac_dir/cf$$
7834 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7835 ac_tf1
=$ac_xdir/conftest9012345
7836 ac_tf2
=$ac_xdir/conftest9012346
7837 (echo 1 >$ac_tf1) 2>/dev
/null
7838 (echo 2 >$ac_tf2) 2>/dev
/null
7839 ac_val
=`cat $ac_tf1 2>/dev/null`
7840 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7841 ac_cv_sys_long_file_names
=no
7842 rm -rf $ac_xdir 2>/dev
/null
7845 rm -rf $ac_xdir 2>/dev
/null
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7849 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7850 if test $ac_cv_sys_long_file_names = yes; then
7852 cat >>confdefs.h
<<\_ACEOF
7853 #define HAVE_LONG_FILE_NAMES 1
7859 #### Choose a window system.
7861 echo "$as_me:$LINENO: checking for X" >&5
7862 echo $ECHO_N "checking for X... $ECHO_C" >&6
7864 ac_path_x_has_been_run
=yes
7866 # Check whether --with-x or --without-x was given.
7867 if test "${with_x+set}" = set; then
7871 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7872 if test "x$with_x" = xno
; then
7873 # The user explicitly disabled X.
7876 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7877 # Both variables are already set.
7880 if test "${ac_cv_have_x+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 # One or both of the vars are not set, and there is no cached value.
7884 ac_x_includes
=no ac_x_libraries
=no
7886 if mkdir conftest.dir
; then
7888 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7889 cat >Imakefile
<<'_ACEOF'
7891 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7893 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7895 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7896 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7897 for ac_extension
in a so sl
; do
7898 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7899 test -f $ac_im_libdir/libX11.
$ac_extension; then
7900 ac_im_usrlibdir
=$ac_im_libdir; break
7903 # Screen out bogus values from the imake configuration. They are
7904 # bogus both because they are the default anyway, and because
7905 # using them would break gcc on systems where it needs fixed includes.
7906 case $ac_im_incroot in
7908 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7910 case $ac_im_usrlibdir in
7912 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7919 # Standard set of common directories for X headers.
7920 # Check X11 before X11Rn because it is often a symlink to the current release.
7932 /usr/local/X11/include
7933 /usr/local/X11R6/include
7934 /usr/local/X11R5/include
7935 /usr/local/X11R4/include
7937 /usr/local/include/X11
7938 /usr/local/include/X11R6
7939 /usr/local/include/X11R5
7940 /usr/local/include/X11R4
7944 /usr/XFree86/include/X11
7948 /usr/unsupported/include
7950 /usr/local/x11r5/include
7951 /usr/lpp/Xamples/include
7953 /usr/openwin/include
7954 /usr/openwin/share/include'
7956 if test "$ac_x_includes" = no
; then
7957 # Guess where to find include files, by looking for a specified header file.
7958 # First, try using that file with no special directory specified.
7959 cat >conftest.
$ac_ext <<_ACEOF
7962 cat confdefs.h
>>conftest.
$ac_ext
7963 cat >>conftest.
$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 #include <X11/Intrinsic.h>
7967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7968 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7970 grep -v '^ *+' conftest.er1
>conftest.err
7972 cat conftest.err
>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } >/dev
/null
; then
7975 if test -s conftest.err
; then
7976 ac_cpp_err
=$ac_c_preproc_warn_flag
7977 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7984 if test -z "$ac_cpp_err"; then
7985 # We can compile using X headers with no special include directory.
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.
$ac_ext >&5
7991 for ac_dir
in $ac_x_header_dirs; do
7992 if test -r "$ac_dir/X11/Intrinsic.h"; then
7993 ac_x_includes
=$ac_dir
7998 rm -f conftest.err conftest.
$ac_ext
7999 fi # $ac_x_includes = no
8001 if test "$ac_x_libraries" = no
; then
8002 # Check for the libraries.
8003 # See if we find them without any special options.
8004 # Don't add to $LIBS permanently.
8007 cat >conftest.
$ac_ext <<_ACEOF
8010 cat confdefs.h
>>conftest.
$ac_ext
8011 cat >>conftest.
$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 #include <X11/Intrinsic.h>
8022 rm -f conftest.
$ac_objext conftest
$ac_exeext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>conftest.er1
8026 grep -v '^ *+' conftest.er1
>conftest.err
8028 cat conftest.err
>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try
='test -s conftest$ac_exeext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8044 # We can link X programs with no special library path.
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.
$ac_ext >&5
8051 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8053 # Don't even attempt the hair of trying to link an X program!
8054 for ac_extension
in a so sl
; do
8055 if test -r $ac_dir/libXt.
$ac_extension; then
8056 ac_x_libraries
=$ac_dir
8062 rm -f conftest.err conftest.
$ac_objext \
8063 conftest
$ac_exeext conftest.
$ac_ext
8064 fi # $ac_x_libraries = no
8066 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8067 # Didn't find X anywhere. Cache the known absence of X.
8068 ac_cv_have_x
="have_x=no"
8070 # Record where we found X for the cache.
8071 ac_cv_have_x
="have_x=yes \
8072 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8077 eval "$ac_cv_have_x"
8080 if test "$have_x" != yes; then
8081 echo "$as_me:$LINENO: result: $have_x" >&5
8082 echo "${ECHO_T}$have_x" >&6
8085 # If each of the values was on the command line, it overrides each guess.
8086 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8087 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8088 # Update the cache value to reflect the command line values.
8089 ac_cv_have_x
="have_x=yes \
8090 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8091 # It might be that x_includes is empty (headers are found in the
8092 # standard search path. Then output the corresponding message
8093 ac_out_x_includes
=$x_includes
8094 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8095 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8096 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8099 if test "$no_x" = yes; then
8105 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8106 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8107 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8108 x_default_search_path
=""
8109 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8111 ${x_library}/X11/%L/%T/%N%C%S:\
8112 ${x_library}/X11/%l/%T/%N%C%S:\
8113 ${x_library}/X11/%T/%N%C%S:\
8114 ${x_library}/X11/%L/%T/%N%S:\
8115 ${x_library}/X11/%l/%T/%N%S:\
8116 ${x_library}/X11/%T/%N%S"
8117 if test x
"${x_default_search_path}" = x
; then
8118 x_default_search_path
=${x_search_path}
8120 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8124 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8125 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8128 if test x
"${x_includes}" = x
; then
8129 bitmapdir
=/usr
/include
/X11
/bitmaps
8131 # accumulate include directories that have X11 bitmap subdirectories
8133 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8134 if test -d "${bmd}/X11/bitmaps"; then
8135 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8137 if test -d "${bmd}/bitmaps"; then
8138 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8141 if test ${bmd_acc} != "dummyval"; then
8142 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8146 case "${window_system}" in
8150 case "${with_x_toolkit}" in
8151 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8152 motif
) USE_X_TOOLKIT
=MOTIF
;;
8154 USE_X_TOOLKIT
=none
;;
8155 no
) USE_X_TOOLKIT
=none
;;
8156 * ) USE_X_TOOLKIT
=maybe
;;
8166 ### If we're using X11, we should use the X menu package.
8169 yes ) HAVE_MENUS
=yes ;;
8172 if test "${opsys}" = "hpux9"; then
8173 case "${x_libraries}" in
8175 opsysfile
="s/hpux9-x11r4.h"
8180 if test "${opsys}" = "hpux9shr"; then
8181 case "${x_libraries}" in
8183 opsysfile
="s/hpux9shxr4.h"
8189 if test "${HAVE_X11}" != "yes"; then
8190 if test "${with_carbon}" != "no"; then
8191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8192 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8193 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8194 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8198 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8200 # Is the header compilable?
8201 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8202 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8203 cat >conftest.
$ac_ext <<_ACEOF
8206 cat confdefs.h
>>conftest.
$ac_ext
8207 cat >>conftest.
$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 #include <Carbon/Carbon.h>
8212 rm -f conftest.
$ac_objext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8214 (eval $ac_compile) 2>conftest.er1
8216 grep -v '^ *+' conftest.er1
>conftest.err
8218 cat conftest.err
>&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try
='test -s conftest.$ac_objext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_header_compiler
=yes
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.
$ac_ext >&5
8238 ac_header_compiler
=no
8240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8242 echo "${ECHO_T}$ac_header_compiler" >&6
8244 # Is the header present?
8245 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8246 echo $ECHO_N "checking Carbon/Carbon.h presence... $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 #include <Carbon/Carbon.h>
8255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8256 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8258 grep -v '^ *+' conftest.er1
>conftest.err
8260 cat conftest.err
>&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } >/dev
/null
; then
8263 if test -s conftest.err
; then
8264 ac_cpp_err
=$ac_c_preproc_warn_flag
8265 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8272 if test -z "$ac_cpp_err"; then
8273 ac_header_preproc
=yes
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.
$ac_ext >&5
8278 ac_header_preproc
=no
8280 rm -f conftest.err conftest.
$ac_ext
8281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8282 echo "${ECHO_T}$ac_header_preproc" >&6
8284 # So? What about this header?
8285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8287 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8288 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8289 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8290 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8291 ac_header_preproc
=yes
8294 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8295 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8296 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8297 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8299 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8301 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8303 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8305 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8308 ## ------------------------------------------ ##
8309 ## Report this to the AC_PACKAGE_NAME lists. ##
8310 ## ------------------------------------------ ##
8313 sed "s/^/$as_me: WARNING: /" >&2
8316 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8317 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8318 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8323 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8324 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8327 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8335 ### Compute the unexec source name from the object name.
8336 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8338 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8339 # Assume not, until told otherwise.
8342 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8343 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8344 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 cat >conftest.
$ac_ext <<_ACEOF
8350 cat confdefs.h
>>conftest.
$ac_ext
8351 cat >>conftest.
$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8355 #define malloc_get_state innocuous_malloc_get_state
8357 /* System header to define __stub macros and hopefully few prototypes,
8358 which can conflict with char malloc_get_state (); below.
8359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8360 <limits.h> exists even on freestanding compilers. */
8363 # include <limits.h>
8365 # include <assert.h>
8368 #undef malloc_get_state
8370 /* Override any gcc2 internal prototype to avoid an error. */
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377 char malloc_get_state ();
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8384 char (*f) () = malloc_get_state;
8393 return f != malloc_get_state;
8398 rm -f conftest.
$ac_objext conftest
$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8402 grep -v '^ *+' conftest.er1
>conftest.err
8404 cat conftest.err
>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try
='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_func_malloc_get_state
=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.
$ac_ext >&5
8424 ac_cv_func_malloc_get_state
=no
8426 rm -f conftest.err conftest.
$ac_objext \
8427 conftest
$ac_exeext conftest.
$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8430 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8431 if test $ac_cv_func_malloc_get_state = yes; then
8437 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8438 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8439 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 cat >conftest.
$ac_ext <<_ACEOF
8445 cat confdefs.h
>>conftest.
$ac_ext
8446 cat >>conftest.
$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8450 #define malloc_set_state innocuous_malloc_set_state
8452 /* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char malloc_set_state (); below.
8454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 <limits.h> exists even on freestanding compilers. */
8458 # include <limits.h>
8460 # include <assert.h>
8463 #undef malloc_set_state
8465 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472 char malloc_set_state ();
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8479 char (*f) () = malloc_set_state;
8488 return f != malloc_set_state;
8493 rm -f conftest.
$ac_objext conftest
$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>conftest.er1
8497 grep -v '^ *+' conftest.er1
>conftest.err
8499 cat conftest.err
>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try
='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_func_malloc_set_state
=yes
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.
$ac_ext >&5
8519 ac_cv_func_malloc_set_state
=no
8521 rm -f conftest.err conftest.
$ac_objext \
8522 conftest
$ac_exeext conftest.
$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8525 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8526 if test $ac_cv_func_malloc_set_state = yes; then
8532 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8533 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8534 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 cat >conftest.
$ac_ext <<_ACEOF
8540 cat confdefs.h
>>conftest.
$ac_ext
8541 cat >>conftest.
$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 extern void (* __after_morecore_hook)();
8547 __after_morecore_hook = 0
8552 rm -f conftest.
$ac_objext conftest
$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>conftest.er1
8556 grep -v '^ *+' conftest.er1
>conftest.err
8558 cat conftest.err
>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try
='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 emacs_cv_var___after_morecore_hook
=yes
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.
$ac_ext >&5
8578 emacs_cv_var___after_morecore_hook
=no
8580 rm -f conftest.err conftest.
$ac_objext \
8581 conftest
$ac_exeext conftest.
$ac_ext
8583 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8584 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8585 if test $emacs_cv_var___after_morecore_hook = no
; then
8588 if test "${system_malloc}" = "yes"; then
8591 (The GNU allocators don't work with this system configuration.)"
8593 if test "$doug_lea_malloc" = "yes" ; then
8594 if test "$GNU_MALLOC" = yes ; then
8596 (Using Doug Lea's new malloc from the GNU C Library.)"
8599 cat >>confdefs.h
<<\_ACEOF
8600 #define DOUG_LEA_MALLOC 1
8605 if test x
"${REL_ALLOC}" = x
; then
8606 REL_ALLOC
=${GNU_MALLOC}
8612 for ac_header
in stdlib.h unistd.h
8614 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo "$as_me:$LINENO: checking for $ac_header" >&5
8617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8624 # Is the header compilable?
8625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8627 cat >conftest.
$ac_ext <<_ACEOF
8630 cat confdefs.h
>>conftest.
$ac_ext
8631 cat >>conftest.
$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8634 #include <$ac_header>
8636 rm -f conftest.
$ac_objext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>conftest.er1
8640 grep -v '^ *+' conftest.er1
>conftest.err
8642 cat conftest.err
>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try
='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 ac_header_compiler
=yes
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.
$ac_ext >&5
8662 ac_header_compiler
=no
8664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8666 echo "${ECHO_T}$ac_header_compiler" >&6
8668 # Is the header present?
8669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8671 cat >conftest.
$ac_ext <<_ACEOF
8674 cat confdefs.h
>>conftest.
$ac_ext
8675 cat >>conftest.
$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 #include <$ac_header>
8679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8682 grep -v '^ *+' conftest.er1
>conftest.err
8684 cat conftest.err
>&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } >/dev
/null
; then
8687 if test -s conftest.err
; then
8688 ac_cpp_err
=$ac_c_preproc_warn_flag
8689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8696 if test -z "$ac_cpp_err"; then
8697 ac_header_preproc
=yes
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.
$ac_ext >&5
8702 ac_header_preproc
=no
8704 rm -f conftest.err conftest.
$ac_ext
8705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8706 echo "${ECHO_T}$ac_header_preproc" >&6
8708 # So? What about this header?
8709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8715 ac_header_preproc
=yes
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8732 ## ------------------------------------------ ##
8733 ## Report this to the AC_PACKAGE_NAME lists. ##
8734 ## ------------------------------------------ ##
8737 sed "s/^/$as_me: WARNING: /" >&2
8740 echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 eval "$as_ac_Header=\$ac_header_preproc"
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8752 cat >>confdefs.h
<<_ACEOF
8753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8761 for ac_func
in getpagesize
8763 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8764 echo "$as_me:$LINENO: checking for $ac_func" >&5
8765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_var+set}\" = set"; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 cat >conftest.
$ac_ext <<_ACEOF
8772 cat confdefs.h
>>conftest.
$ac_ext
8773 cat >>conftest.
$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8777 #define $ac_func innocuous_$ac_func
8779 /* System header to define __stub macros and hopefully few prototypes,
8780 which can conflict with char $ac_func (); below.
8781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8782 <limits.h> exists even on freestanding compilers. */
8785 # include <limits.h>
8787 # include <assert.h>
8792 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8800 /* The GNU C library defines this for functions which it implements
8801 to always fail with ENOSYS. Some functions are actually named
8802 something starting with __ and the normal name is an alias. */
8803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8806 char (*f) () = $ac_func;
8815 return f != $ac_func;
8820 rm -f conftest.
$ac_objext conftest
$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8824 grep -v '^ *+' conftest.er1
>conftest.err
8826 cat conftest.err
>&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try
='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 eval "$as_ac_var=yes"
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.
$ac_ext >&5
8846 eval "$as_ac_var=no"
8848 rm -f conftest.err conftest.
$ac_objext \
8849 conftest
$ac_exeext conftest.
$ac_ext
8851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8853 if test `eval echo '${'$as_ac_var'}'` = yes; then
8854 cat >>confdefs.h
<<_ACEOF
8855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8861 echo "$as_me:$LINENO: checking for working mmap" >&5
8862 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8863 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 if test "$cross_compiling" = yes; then
8867 ac_cv_func_mmap_fixed_mapped
=no
8869 cat >conftest.
$ac_ext <<_ACEOF
8872 cat confdefs.h
>>conftest.
$ac_ext
8873 cat >>conftest.
$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 $ac_includes_default
8876 /* malloc might have been renamed as rpl_malloc. */
8879 /* Thanks to Mike Haertel and Jim Avera for this test.
8880 Here is a matrix of mmap possibilities:
8881 mmap private not fixed
8882 mmap private fixed at somewhere currently unmapped
8883 mmap private fixed at somewhere already mapped
8884 mmap shared not fixed
8885 mmap shared fixed at somewhere currently unmapped
8886 mmap shared fixed at somewhere already mapped
8887 For private mappings, we should verify that changes cannot be read()
8888 back from the file, nor mmap's back from the file at a different
8889 address. (There have been systems where private was not correctly
8890 implemented like the infamous i386 svr4.0, and systems where the
8891 VM page cache was not coherent with the file system buffer cache
8892 like early versions of FreeBSD and possibly contemporary NetBSD.)
8893 For shared mappings, we should conversely verify that changes get
8894 propagated back to all the places they're supposed to be.
8896 Grep wants private fixed already mapped.
8897 The main things grep needs to know about mmap are:
8898 * does it exist and is it safe to write into the mmap'd area
8899 * how to use it (BSD variants) */
8902 #include <sys/mman.h>
8904 #if !STDC_HEADERS && !HAVE_STDLIB_H
8908 /* This mess was copied from the GNU getpagesize.h. */
8909 #if !HAVE_GETPAGESIZE
8910 /* Assume that all systems that can run configure have sys/param.h. */
8911 # if !HAVE_SYS_PARAM_H
8912 # define HAVE_SYS_PARAM_H 1
8915 # ifdef _SC_PAGESIZE
8916 # define getpagesize() sysconf(_SC_PAGESIZE)
8917 # else /* no _SC_PAGESIZE */
8918 # if HAVE_SYS_PARAM_H
8919 # include <sys/param.h>
8920 # ifdef EXEC_PAGESIZE
8921 # define getpagesize() EXEC_PAGESIZE
8922 # else /* no EXEC_PAGESIZE */
8924 # define getpagesize() NBPG * CLSIZE
8927 # endif /* no CLSIZE */
8928 # else /* no NBPG */
8930 # define getpagesize() NBPC
8931 # else /* no NBPC */
8933 # define getpagesize() PAGESIZE
8934 # endif /* PAGESIZE */
8935 # endif /* no NBPC */
8936 # endif /* no NBPG */
8937 # endif /* no EXEC_PAGESIZE */
8938 # else /* no HAVE_SYS_PARAM_H */
8939 # define getpagesize() 8192 /* punt totally */
8940 # endif /* no HAVE_SYS_PARAM_H */
8941 # endif /* no _SC_PAGESIZE */
8943 #endif /* no HAVE_GETPAGESIZE */
8948 char *data, *data2, *data3;
8952 pagesize = getpagesize ();
8954 /* First, make a file with some known garbage in it. */
8955 data = (char *) malloc (pagesize);
8958 for (i = 0; i < pagesize; ++i)
8959 *(data + i) = rand ();
8961 fd = creat ("conftest.mmap", 0600);
8964 if (write (fd, data, pagesize) != pagesize)
8968 /* Next, try to mmap the file at a fixed address which already has
8969 something else allocated at it. If we can, also make sure that
8970 we see the same garbage. */
8971 fd = open ("conftest.mmap", O_RDWR);
8974 data2 = (char *) malloc (2 * pagesize);
8977 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8978 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8979 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8981 for (i = 0; i < pagesize; ++i)
8982 if (*(data + i) != *(data2 + i))
8985 /* Finally, make sure that changes to the mapped area do not
8986 percolate back to the file as seen by read(). (This is a bug on
8987 some variants of i386 svr4.0.) */
8988 for (i = 0; i < pagesize; ++i)
8989 *(data2 + i) = *(data2 + i) + 1;
8990 data3 = (char *) malloc (pagesize);
8993 if (read (fd, data3, pagesize) != pagesize)
8995 for (i = 0; i < pagesize; ++i)
8996 if (*(data + i) != *(data3 + i))
9002 rm -f conftest
$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_func_mmap_fixed_mapped
=yes
9015 echo "$as_me: program exited with status $ac_status" >&5
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.
$ac_ext >&5
9020 ac_cv_func_mmap_fixed_mapped
=no
9022 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9025 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9026 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9027 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9029 cat >>confdefs.h
<<\_ACEOF
9036 if test $use_mmap_for_buffers = yes; then
9040 LIBS
="$libsrc_libs $LIBS"
9043 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9044 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9045 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 ac_check_lib_save_LIBS
=$LIBS
9050 cat >conftest.
$ac_ext <<_ACEOF
9053 cat confdefs.h
>>conftest.
$ac_ext
9054 cat >>conftest.
$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9057 /* Override any gcc2 internal prototype to avoid an error. */
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9072 rm -f conftest.
$ac_objext conftest
$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>conftest.er1
9076 grep -v '^ *+' conftest.er1
>conftest.err
9078 cat conftest.err
>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try
='test -s conftest$ac_exeext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_cv_lib_dnet_dnet_ntoa
=yes
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.
$ac_ext >&5
9098 ac_cv_lib_dnet_dnet_ntoa
=no
9100 rm -f conftest.err conftest.
$ac_objext \
9101 conftest
$ac_exeext conftest.
$ac_ext
9102 LIBS
=$ac_check_lib_save_LIBS
9104 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9105 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9106 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9107 cat >>confdefs.h
<<_ACEOF
9108 #define HAVE_LIBDNET 1
9116 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9117 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9118 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 ac_check_lib_save_LIBS
=$LIBS
9123 cat >conftest.
$ac_ext <<_ACEOF
9126 cat confdefs.h
>>conftest.
$ac_ext
9127 cat >>conftest.
$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9139 rm -f conftest.
$ac_objext conftest
$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>conftest.er1
9143 grep -v '^ *+' conftest.er1
>conftest.err
9145 cat conftest.err
>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; } &&
9154 { ac_try
='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_lib_Xbsd_main
=yes
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.
$ac_ext >&5
9165 ac_cv_lib_Xbsd_main
=no
9167 rm -f conftest.err conftest.
$ac_objext \
9168 conftest
$ac_exeext conftest.
$ac_ext
9169 LIBS
=$ac_check_lib_save_LIBS
9171 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9172 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9173 if test $ac_cv_lib_Xbsd_main = yes; then
9174 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9179 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9180 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9181 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 ac_check_lib_save_LIBS
=$LIBS
9185 LIBS
="-lpthreads $LIBS"
9186 cat >conftest.
$ac_ext <<_ACEOF
9189 cat confdefs.h
>>conftest.
$ac_ext
9190 cat >>conftest.
$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9193 /* Override any gcc2 internal prototype to avoid an error. */
9197 /* We use char because int might match the return type of a gcc2
9198 builtin and then its argument prototype would still apply. */
9208 rm -f conftest.
$ac_objext conftest
$ac_exeext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210 (eval $ac_link) 2>conftest.er1
9212 grep -v '^ *+' conftest.er1
>conftest.err
9214 cat conftest.err
>&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try
='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_pthreads_cma_open
=yes
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.
$ac_ext >&5
9234 ac_cv_lib_pthreads_cma_open
=no
9236 rm -f conftest.err conftest.
$ac_objext \
9237 conftest
$ac_exeext conftest.
$ac_ext
9238 LIBS
=$ac_check_lib_save_LIBS
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9241 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9242 if test $ac_cv_lib_pthreads_cma_open = yes; then
9243 cat >>confdefs.h
<<_ACEOF
9244 #define HAVE_LIBPTHREADS 1
9247 LIBS
="-lpthreads $LIBS"
9252 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9253 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9254 if test -d /usr
/X386
/include
; then
9256 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9260 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9261 echo "${ECHO_T}$HAVE_XFREE386" >&6
9266 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9267 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9268 if test "${gdb_cv_bigtoc+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9274 *) gdb_cv_bigtoc
=-bbigtoc ;;
9277 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9278 cat >conftest.
$ac_ext <<_ACEOF
9281 cat confdefs.h
>>conftest.
$ac_ext
9282 cat >>conftest.
$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9293 rm -f conftest.
$ac_objext conftest
$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>conftest.er1
9297 grep -v '^ *+' conftest.er1
>conftest.err
9299 cat conftest.err
>&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try
='test -s conftest$ac_exeext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.
$ac_ext >&5
9321 rm -f conftest.err conftest.
$ac_objext \
9322 conftest
$ac_exeext conftest.
$ac_ext
9325 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9326 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9330 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9331 # used for the tests that follow. We set them back to REAL_CFLAGS and
9332 # REAL_CPPFLAGS later on.
9334 REAL_CPPFLAGS
="$CPPFLAGS"
9336 if test "${HAVE_X11}" = "yes"; then
9337 DEFS
="$C_SWITCH_X_SITE $DEFS"
9338 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9340 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9341 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9343 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9344 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9345 # but it's more convenient here to set LD_RUN_PATH
9346 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9347 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9348 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9352 if test "${opsys}" = "gnu-linux"; then
9353 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9354 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9355 cat >conftest.
$ac_ext <<_ACEOF
9358 cat confdefs.h
>>conftest.
$ac_ext
9359 cat >>conftest.
$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9365 XOpenDisplay ("foo");
9370 rm -f conftest.
$ac_objext conftest
$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372 (eval $ac_link) 2>conftest.er1
9374 grep -v '^ *+' conftest.er1
>conftest.err
9376 cat conftest.err
>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try
='test -s conftest$ac_exeext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 xlinux_first_failure
=no
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.
$ac_ext >&5
9396 xlinux_first_failure
=yes
9398 rm -f conftest.err conftest.
$ac_objext \
9399 conftest
$ac_exeext conftest.
$ac_ext
9400 if test "${xlinux_first_failure}" = "yes"; then
9401 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9402 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9403 OLD_CPPFLAGS
="$CPPFLAGS"
9405 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9406 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9407 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9408 LIBS
="$LIBS -b i486-linuxaout"
9409 cat >conftest.
$ac_ext <<_ACEOF
9412 cat confdefs.h
>>conftest.
$ac_ext
9413 cat >>conftest.
$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9419 XOpenDisplay ("foo");
9424 rm -f conftest.
$ac_objext conftest
$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9428 grep -v '^ *+' conftest.er1
>conftest.err
9430 cat conftest.err
>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try
='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 xlinux_second_failure
=no
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.
$ac_ext >&5
9450 xlinux_second_failure
=yes
9452 rm -f conftest.err conftest.
$ac_objext \
9453 conftest
$ac_exeext conftest.
$ac_ext
9454 if test "${xlinux_second_failure}" = "yes"; then
9455 # If we get the same failure with -b, there is no use adding -b.
9456 # So take it out. This plays safe.
9457 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9458 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9459 CPPFLAGS
="$OLD_CPPFLAGS"
9461 echo "$as_me:$LINENO: result: no" >&5
9462 echo "${ECHO_T}no" >&6
9464 echo "$as_me:$LINENO: result: yes" >&5
9465 echo "${ECHO_T}yes" >&6
9468 echo "$as_me:$LINENO: result: no" >&5
9469 echo "${ECHO_T}no" >&6
9473 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9474 # header files included from there.
9475 echo "$as_me:$LINENO: checking for Xkb" >&5
9476 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9477 cat >conftest.
$ac_ext <<_ACEOF
9480 cat confdefs.h
>>conftest.
$ac_ext
9481 cat >>conftest.
$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 #include <X11/Xlib.h>
9484 #include <X11/XKBlib.h>
9488 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9493 rm -f conftest.
$ac_objext conftest
$ac_exeext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>conftest.er1
9497 grep -v '^ *+' conftest.er1
>conftest.err
9499 cat conftest.err
>&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try
='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.
$ac_ext >&5
9521 rm -f conftest.err conftest.
$ac_objext \
9522 conftest
$ac_exeext conftest.
$ac_ext
9523 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9524 echo "${ECHO_T}$emacs_xkb" >&6
9525 if test $emacs_xkb = yes; then
9527 cat >>confdefs.h
<<\_ACEOF
9528 #define HAVE_XKBGETKEYBOARD 1
9537 for ac_func
in XrmSetDatabase XScreenResourceString \
9538 XScreenNumberOfScreen XSetWMProtocols
9540 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9541 echo "$as_me:$LINENO: checking for $ac_func" >&5
9542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9543 if eval "test \"\${$as_ac_var+set}\" = set"; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.
$ac_ext <<_ACEOF
9549 cat confdefs.h
>>conftest.
$ac_ext
9550 cat >>conftest.
$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9554 #define $ac_func innocuous_$ac_func
9556 /* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char $ac_func (); below.
9558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559 <limits.h> exists even on freestanding compilers. */
9562 # include <limits.h>
9564 # include <assert.h>
9569 /* Override any gcc2 internal prototype to avoid an error. */
9574 /* We use char because int might match the return type of a gcc2
9575 builtin and then its argument prototype would still apply. */
9577 /* The GNU C library defines this for functions which it implements
9578 to always fail with ENOSYS. Some functions are actually named
9579 something starting with __ and the normal name is an alias. */
9580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9583 char (*f) () = $ac_func;
9592 return f != $ac_func;
9597 rm -f conftest.
$ac_objext conftest
$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9601 grep -v '^ *+' conftest.er1
>conftest.err
9603 cat conftest.err
>&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try
='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 eval "$as_ac_var=yes"
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.
$ac_ext >&5
9623 eval "$as_ac_var=no"
9625 rm -f conftest.err conftest.
$ac_objext \
9626 conftest
$ac_exeext conftest.
$ac_ext
9628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9630 if test `eval echo '${'$as_ac_var'}'` = yes; then
9631 cat >>confdefs.h
<<_ACEOF
9632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9640 if test "${window_system}" = "x11"; then
9641 echo "$as_me:$LINENO: checking X11 version 6" >&5
9642 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9643 if test "${emacs_cv_x11_version_6+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 cat >conftest.
$ac_ext <<_ACEOF
9649 cat confdefs.h
>>conftest.
$ac_ext
9650 cat >>conftest.
$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <X11/Xlib.h>
9656 #if XlibSpecificationRelease < 6
9664 rm -f conftest.
$ac_objext conftest
$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>conftest.er1
9668 grep -v '^ *+' conftest.er1
>conftest.err
9670 cat conftest.err
>&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try
='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 emacs_cv_x11_version_6
=yes
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.
$ac_ext >&5
9690 emacs_cv_x11_version_6
=no
9692 rm -f conftest.err conftest.
$ac_objext \
9693 conftest
$ac_exeext conftest.
$ac_ext
9696 if test $emacs_cv_x11_version_6 = yes; then
9697 echo "$as_me:$LINENO: result: 6 or newer" >&5
9698 echo "${ECHO_T}6 or newer" >&6
9700 cat >>confdefs.h
<<\_ACEOF
9701 #define HAVE_X11R6 1
9705 echo "$as_me:$LINENO: result: before 6" >&5
9706 echo "${ECHO_T}before 6" >&6
9710 if test "${window_system}" = "x11"; then
9711 echo "$as_me:$LINENO: checking X11 version 5" >&5
9712 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9713 if test "${emacs_cv_x11_version_5+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 cat >conftest.
$ac_ext <<_ACEOF
9719 cat confdefs.h
>>conftest.
$ac_ext
9720 cat >>conftest.
$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <X11/Xlib.h>
9726 #if XlibSpecificationRelease < 5
9734 rm -f conftest.
$ac_objext conftest
$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9738 grep -v '^ *+' conftest.er1
>conftest.err
9740 cat conftest.err
>&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try
='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 emacs_cv_x11_version_5
=yes
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.
$ac_ext >&5
9760 emacs_cv_x11_version_5
=no
9762 rm -f conftest.err conftest.
$ac_objext \
9763 conftest
$ac_exeext conftest.
$ac_ext
9766 if test $emacs_cv_x11_version_5 = yes; then
9767 echo "$as_me:$LINENO: result: 5 or newer" >&5
9768 echo "${ECHO_T}5 or newer" >&6
9771 cat >>confdefs.h
<<\_ACEOF
9772 #define HAVE_X11R5 1
9777 echo "$as_me:$LINENO: result: before 5" >&5
9778 echo "${ECHO_T}before 5" >&6
9785 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9786 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9787 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9788 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9789 { (exit 1); exit 1; }; };
9793 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9795 if test "X${with_pkg_config_prog}" != X
; then
9796 PKG_CONFIG
="${with_pkg_config_prog}"
9801 if test -z "$PKG_CONFIG"; then
9802 # Extract the first word of "pkg-config", so it can be a program name with args.
9803 set dummy pkg-config
; ac_word
=$2
9804 echo "$as_me:$LINENO: checking for $ac_word" >&5
9805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9806 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9818 test -z "$as_dir" && as_dir
=.
9819 for ac_exec_ext
in '' $ac_executable_extensions; do
9820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9832 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9834 if test -n "$PKG_CONFIG"; then
9835 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9836 echo "${ECHO_T}$PKG_CONFIG" >&6
9838 echo "$as_me:$LINENO: result: no" >&5
9839 echo "${ECHO_T}no" >&6
9844 if test "$PKG_CONFIG" = "no" ; then
9845 echo "*** The pkg-config script could not be found. Make sure it is"
9846 echo "*** in your path, or give the full path to pkg-config with"
9847 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9848 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9850 PKG_CONFIG_MIN_VERSION
=0.9.0
9851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9852 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9853 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9855 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9856 echo "$as_me:$LINENO: result: yes" >&5
9857 echo "${ECHO_T}yes" >&6
9860 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9861 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9862 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9863 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9864 echo "${ECHO_T}$GTK_CFLAGS" >&6
9866 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9867 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9868 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9869 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9870 echo "${ECHO_T}$GTK_LIBS" >&6
9874 ## If we have a custom action on failure, don't print errors, but
9875 ## do set a variable so people can do so.
9876 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9877 echo $GTK_PKG_ERRORS
9883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9888 if test $succeeded = yes; then
9891 { { 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
9892 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;}
9893 { (exit 1); exit 1; }; }
9898 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9899 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9900 LIBS
="$GTK_LIBS $LIBS"
9903 cat >>confdefs.h
<<\_ACEOF
9909 if test "$with_toolkit_scroll_bars" != no
; then
9910 with_toolkit_scroll_bars
=yes
9913 HAVE_GTK_MULTIDISPLAY
=no
9915 for ac_func
in gdk_display_open
9917 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9918 echo "$as_me:$LINENO: checking for $ac_func" >&5
9919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9920 if eval "test \"\${$as_ac_var+set}\" = set"; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 cat >conftest.
$ac_ext <<_ACEOF
9926 cat confdefs.h
>>conftest.
$ac_ext
9927 cat >>conftest.
$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define $ac_func innocuous_$ac_func
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9939 # include <limits.h>
9941 # include <assert.h>
9946 /* Override any gcc2 internal prototype to avoid an error. */
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9954 /* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9960 char (*f) () = $ac_func;
9969 return f != $ac_func;
9974 rm -f conftest.
$ac_objext conftest
$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9978 grep -v '^ *+' conftest.er1
>conftest.err
9980 cat conftest.err
>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try
='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 eval "$as_ac_var=yes"
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.
$ac_ext >&5
10000 eval "$as_ac_var=no"
10002 rm -f conftest.err conftest.
$ac_objext \
10003 conftest
$ac_exeext conftest.
$ac_ext
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then
10008 cat >>confdefs.h
<<_ACEOF
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10011 HAVE_GTK_MULTIDISPLAY
=yes
10015 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10017 cat >>confdefs.h
<<\_ACEOF
10018 #define HAVE_GTK_MULTIDISPLAY 1
10022 HAVE_GTK_FILE_SELECTION
=no
10024 for ac_func
in gtk_file_selection_new
10026 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10027 echo "$as_me:$LINENO: checking for $ac_func" >&5
10028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10029 if eval "test \"\${$as_ac_var+set}\" = set"; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 cat >conftest.
$ac_ext <<_ACEOF
10035 cat confdefs.h
>>conftest.
$ac_ext
10036 cat >>conftest.
$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10040 #define $ac_func innocuous_$ac_func
10042 /* System header to define __stub macros and hopefully few prototypes,
10043 which can conflict with char $ac_func (); below.
10044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10045 <limits.h> exists even on freestanding compilers. */
10048 # include <limits.h>
10050 # include <assert.h>
10055 /* Override any gcc2 internal prototype to avoid an error. */
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10063 /* The GNU C library defines this for functions which it implements
10064 to always fail with ENOSYS. Some functions are actually named
10065 something starting with __ and the normal name is an alias. */
10066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10069 char (*f) () = $ac_func;
10078 return f != $ac_func;
10083 rm -f conftest.
$ac_objext conftest
$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>conftest.er1
10087 grep -v '^ *+' conftest.er1
>conftest.err
10089 cat conftest.err
>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try
='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 eval "$as_ac_var=yes"
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.
$ac_ext >&5
10109 eval "$as_ac_var=no"
10111 rm -f conftest.err conftest.
$ac_objext \
10112 conftest
$ac_exeext conftest.
$ac_ext
10114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10116 if test `eval echo '${'$as_ac_var'}'` = yes; then
10117 cat >>confdefs.h
<<_ACEOF
10118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10120 HAVE_GTK_FILE_SELECTION
=yes
10125 HAVE_GTK_FILE_CHOOSER
=no
10127 for ac_func
in gtk_file_chooser_dialog_new
10129 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10130 echo "$as_me:$LINENO: checking for $ac_func" >&5
10131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10132 if eval "test \"\${$as_ac_var+set}\" = set"; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 cat >conftest.
$ac_ext <<_ACEOF
10138 cat confdefs.h
>>conftest.
$ac_ext
10139 cat >>conftest.
$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10143 #define $ac_func innocuous_$ac_func
10145 /* System header to define __stub macros and hopefully few prototypes,
10146 which can conflict with char $ac_func (); below.
10147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10148 <limits.h> exists even on freestanding compilers. */
10151 # include <limits.h>
10153 # include <assert.h>
10158 /* Override any gcc2 internal prototype to avoid an error. */
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10166 /* The GNU C library defines this for functions which it implements
10167 to always fail with ENOSYS. Some functions are actually named
10168 something starting with __ and the normal name is an alias. */
10169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10172 char (*f) () = $ac_func;
10181 return f != $ac_func;
10186 rm -f conftest.
$ac_objext conftest
$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10190 grep -v '^ *+' conftest.er1
>conftest.err
10192 cat conftest.err
>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try
='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 eval "$as_ac_var=yes"
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.
$ac_ext >&5
10212 eval "$as_ac_var=no"
10214 rm -f conftest.err conftest.
$ac_objext \
10215 conftest
$ac_exeext conftest.
$ac_ext
10217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10219 if test `eval echo '${'$as_ac_var'}'` = yes; then
10220 cat >>confdefs.h
<<_ACEOF
10221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10223 HAVE_GTK_FILE_CHOOSER
=yes
10228 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10229 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10231 cat >>confdefs.h
<<\_ACEOF
10232 #define HAVE_GTK_FILE_BOTH 1
10237 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10238 HAVE_GTK_AND_PTHREAD
=no
10240 for ac_header
in pthread.h
10242 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10252 # Is the header compilable?
10253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10255 cat >conftest.
$ac_ext <<_ACEOF
10258 cat confdefs.h
>>conftest.
$ac_ext
10259 cat >>conftest.
$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 $ac_includes_default
10262 #include <$ac_header>
10264 rm -f conftest.
$ac_objext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266 (eval $ac_compile) 2>conftest.er1
10268 grep -v '^ *+' conftest.er1
>conftest.err
10270 cat conftest.err
>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; } &&
10279 { ac_try
='test -s conftest.$ac_objext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 ac_header_compiler
=yes
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.
$ac_ext >&5
10290 ac_header_compiler
=no
10292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10294 echo "${ECHO_T}$ac_header_compiler" >&6
10296 # Is the header present?
10297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10299 cat >conftest.
$ac_ext <<_ACEOF
10302 cat confdefs.h
>>conftest.
$ac_ext
10303 cat >>conftest.
$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <$ac_header>
10307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10308 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10310 grep -v '^ *+' conftest.er1
>conftest.err
10312 cat conftest.err
>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } >/dev
/null
; then
10315 if test -s conftest.err
; then
10316 ac_cpp_err
=$ac_c_preproc_warn_flag
10317 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10324 if test -z "$ac_cpp_err"; then
10325 ac_header_preproc
=yes
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.
$ac_ext >&5
10330 ac_header_preproc
=no
10332 rm -f conftest.err conftest.
$ac_ext
10333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10334 echo "${ECHO_T}$ac_header_preproc" >&6
10336 # So? What about this header?
10337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10343 ac_header_preproc
=yes
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10360 ## ------------------------------------------ ##
10361 ## Report this to the AC_PACKAGE_NAME lists. ##
10362 ## ------------------------------------------ ##
10365 sed "s/^/$as_me: WARNING: /" >&2
10368 echo "$as_me:$LINENO: checking for $ac_header" >&5
10369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 eval "$as_ac_Header=\$ac_header_preproc"
10375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10380 cat >>confdefs.h
<<_ACEOF
10381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10388 if test "$ac_cv_header_pthread_h"; then
10389 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10390 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10391 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 ac_check_lib_save_LIBS
=$LIBS
10395 LIBS
="-lpthread $LIBS"
10396 cat >conftest.
$ac_ext <<_ACEOF
10399 cat confdefs.h
>>conftest.
$ac_ext
10400 cat >>conftest.
$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10403 /* Override any gcc2 internal prototype to avoid an error. */
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10409 char pthread_self ();
10418 rm -f conftest.
$ac_objext conftest
$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>conftest.er1
10422 grep -v '^ *+' conftest.er1
>conftest.err
10424 cat conftest.err
>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try
='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_lib_pthread_pthread_self
=yes
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.
$ac_ext >&5
10444 ac_cv_lib_pthread_pthread_self
=no
10446 rm -f conftest.err conftest.
$ac_objext \
10447 conftest
$ac_exeext conftest.
$ac_ext
10448 LIBS
=$ac_check_lib_save_LIBS
10450 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10451 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10452 if test $ac_cv_lib_pthread_pthread_self = yes; then
10453 HAVE_GTK_AND_PTHREAD
=yes
10457 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10458 GTK_LIBS
="$GTK_LIBS -lpthread"
10460 cat >>confdefs.h
<<\_ACEOF
10461 #define HAVE_GTK_AND_PTHREAD 1
10468 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10469 if test x
"${HAVE_X11R5}" = xyes
; then
10470 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10471 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10472 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 cat >conftest.
$ac_ext <<_ACEOF
10478 cat confdefs.h
>>conftest.
$ac_ext
10479 cat >>conftest.
$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10482 #include <X11/Intrinsic.h>
10483 #include <X11/Xaw/Simple.h>
10492 rm -f conftest.
$ac_objext conftest
$ac_exeext
10493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10494 (eval $ac_link) 2>conftest.er1
10496 grep -v '^ *+' conftest.er1
>conftest.err
10498 cat conftest.err
>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try
='test -s conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 emacs_cv_x11_version_5_with_xaw
=yes
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.
$ac_ext >&5
10518 emacs_cv_x11_version_5_with_xaw
=no
10520 rm -f conftest.err conftest.
$ac_objext \
10521 conftest
$ac_exeext conftest.
$ac_ext
10524 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10525 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10526 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10527 USE_X_TOOLKIT
=LUCID
10529 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10530 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10538 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10540 if test "${USE_X_TOOLKIT}" != "none"; then
10541 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10542 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10543 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 cat >conftest.
$ac_ext <<_ACEOF
10549 cat confdefs.h
>>conftest.
$ac_ext
10550 cat >>conftest.
$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #include <X11/Intrinsic.h>
10556 #if XtSpecificationRelease < 6
10564 rm -f conftest.
$ac_objext conftest
$ac_exeext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>conftest.er1
10568 grep -v '^ *+' conftest.er1
>conftest.err
10570 cat conftest.err
>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try
='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 emacs_cv_x11_toolkit_version_6
=yes
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.
$ac_ext >&5
10590 emacs_cv_x11_toolkit_version_6
=no
10592 rm -f conftest.err conftest.
$ac_objext \
10593 conftest
$ac_exeext conftest.
$ac_ext
10596 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10597 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10598 echo "$as_me:$LINENO: result: 6 or newer" >&5
10599 echo "${ECHO_T}6 or newer" >&6
10601 cat >>confdefs.h
<<\_ACEOF
10602 #define HAVE_X11XTR6 1
10606 echo "$as_me:$LINENO: result: before 6" >&5
10607 echo "${ECHO_T}before 6" >&6
10611 if test x
$HAVE_X11XTR6 = xyes
; then
10612 LIBS
="-lXt -lSM -lICE $LIBS"
10617 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10618 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10619 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 ac_check_lib_save_LIBS
=$LIBS
10624 cat >conftest.
$ac_ext <<_ACEOF
10627 cat confdefs.h
>>conftest.
$ac_ext
10628 cat >>conftest.
$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10631 /* Override any gcc2 internal prototype to avoid an error. */
10635 /* We use char because int might match the return type of a gcc2
10636 builtin and then its argument prototype would still apply. */
10637 char XmuConvertStandardSelection ();
10641 XmuConvertStandardSelection ();
10646 rm -f conftest.
$ac_objext conftest
$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>conftest.er1
10650 grep -v '^ *+' conftest.er1
>conftest.err
10652 cat conftest.err
>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try
='test -s conftest$ac_exeext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.
$ac_ext >&5
10672 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10674 rm -f conftest.err conftest.
$ac_objext \
10675 conftest
$ac_exeext conftest.
$ac_ext
10676 LIBS
=$ac_check_lib_save_LIBS
10678 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10679 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10680 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10681 cat >>confdefs.h
<<_ACEOF
10682 #define HAVE_LIBXMU 1
10689 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10692 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10693 if test "${HAVE_X11}" = "yes"; then
10694 if test "${USE_X_TOOLKIT}" != "none"; then
10696 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10697 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10698 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 ac_check_lib_save_LIBS
=$LIBS
10702 LIBS
="-lXext $LIBS"
10703 cat >conftest.
$ac_ext <<_ACEOF
10706 cat confdefs.h
>>conftest.
$ac_ext
10707 cat >>conftest.
$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10710 /* Override any gcc2 internal prototype to avoid an error. */
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10716 char XShapeQueryExtension ();
10720 XShapeQueryExtension ();
10725 rm -f conftest.
$ac_objext conftest
$ac_exeext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>conftest.er1
10729 grep -v '^ *+' conftest.er1
>conftest.err
10731 cat conftest.err
>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
10734 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try
='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.
$ac_ext >&5
10751 ac_cv_lib_Xext_XShapeQueryExtension
=no
10753 rm -f conftest.err conftest.
$ac_objext \
10754 conftest
$ac_exeext conftest.
$ac_ext
10755 LIBS
=$ac_check_lib_save_LIBS
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10758 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10759 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10760 cat >>confdefs.h
<<_ACEOF
10761 #define HAVE_LIBXEXT 1
10764 LIBS
="-lXext $LIBS"
10771 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10772 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10773 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10774 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 cat >conftest.
$ac_ext <<_ACEOF
10780 cat confdefs.h
>>conftest.
$ac_ext
10781 cat >>conftest.
$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10787 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10790 Motif version prior to 2.1.
10796 rm -f conftest.
$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798 (eval $ac_compile) 2>conftest.er1
10800 grep -v '^ *+' conftest.er1
>conftest.err
10802 cat conftest.err
>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try
='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 emacs_cv_motif_version_2_1
=yes
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.
$ac_ext >&5
10822 emacs_cv_motif_version_2_1
=no
10824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10826 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10827 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10828 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10829 if test $emacs_cv_motif_version_2_1 = yes; then
10832 cat >>confdefs.h
<<\_ACEOF
10833 #define HAVE_MOTIF_2_1 1
10836 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10837 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10838 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 ac_check_lib_save_LIBS
=$LIBS
10843 cat >conftest.
$ac_ext <<_ACEOF
10846 cat confdefs.h
>>conftest.
$ac_ext
10847 cat >>conftest.
$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10850 /* Override any gcc2 internal prototype to avoid an error. */
10854 /* We use char because int might match the return type of a gcc2
10855 builtin and then its argument prototype would still apply. */
10856 char XpCreateContext ();
10860 XpCreateContext ();
10865 rm -f conftest.
$ac_objext conftest
$ac_exeext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10867 (eval $ac_link) 2>conftest.er1
10869 grep -v '^ *+' conftest.er1
>conftest.err
10871 cat conftest.err
>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try
='test -s conftest$ac_exeext'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_cv_lib_Xp_XpCreateContext
=yes
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.
$ac_ext >&5
10891 ac_cv_lib_Xp_XpCreateContext
=no
10893 rm -f conftest.err conftest.
$ac_objext \
10894 conftest
$ac_exeext conftest.
$ac_ext
10895 LIBS
=$ac_check_lib_save_LIBS
10897 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10898 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10899 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10903 if test ${HAVE_LIBXP} = yes; then
10905 cat >>confdefs.h
<<\_ACEOF
10906 #define HAVE_LIBXP 1
10911 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10912 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10913 if test "${emacs_cv_lesstif+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 # We put this in CFLAGS temporarily to precede other -I options
10917 # that might be in CFLAGS temporarily.
10918 # We put this in CPPFLAGS where it precedes the other -I options.
10919 OLD_CPPFLAGS
=$CPPFLAGS
10921 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10922 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10923 cat >conftest.
$ac_ext <<_ACEOF
10926 cat confdefs.h
>>conftest.
$ac_ext
10927 cat >>conftest.
$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10938 rm -f conftest.
$ac_objext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>conftest.er1
10942 grep -v '^ *+' conftest.er1
>conftest.err
10944 cat conftest.err
>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try
='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 emacs_cv_lesstif
=yes
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.
$ac_ext >&5
10964 emacs_cv_lesstif
=no
10966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10968 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10969 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10970 if test $emacs_cv_lesstif = yes; then
10971 # Make sure this -I option remains in CPPFLAGS after it is set
10972 # back to REAL_CPPFLAGS.
10973 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10974 # have those other -I options anyway. Ultimately, having this
10975 # directory ultimately in CPPFLAGS will be enough.
10976 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10977 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10980 CPPFLAGS
=$OLD_CPPFLAGS
10985 ### Is -lXaw3d available?
10987 if test "${HAVE_X11}" = "yes"; then
10988 if test "${USE_X_TOOLKIT}" != "none"; then
10989 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10990 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10991 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >conftest.
$ac_ext <<_ACEOF
10997 cat confdefs.h
>>conftest.
$ac_ext
10998 cat >>conftest.
$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 #include <X11/Xaw3d/Scrollbar.h>
11002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11003 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11005 grep -v '^ *+' conftest.er1
>conftest.err
11007 cat conftest.err
>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } >/dev
/null
; then
11010 if test -s conftest.err
; then
11011 ac_cpp_err
=$ac_c_preproc_warn_flag
11012 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11019 if test -z "$ac_cpp_err"; then
11020 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.
$ac_ext >&5
11025 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11027 rm -f conftest.err conftest.
$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11030 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11031 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11032 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11033 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11034 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_check_lib_save_LIBS
=$LIBS
11038 LIBS
="-lXaw3d $LIBS"
11039 cat >conftest.
$ac_ext <<_ACEOF
11042 cat confdefs.h
>>conftest.
$ac_ext
11043 cat >>conftest.
$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11046 /* Override any gcc2 internal prototype to avoid an error. */
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052 char XawScrollbarSetThumb ();
11056 XawScrollbarSetThumb ();
11061 rm -f conftest.
$ac_objext conftest
$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11065 grep -v '^ *+' conftest.er1
>conftest.err
11067 cat conftest.err
>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try
='test -s conftest$ac_exeext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.
$ac_ext >&5
11087 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11089 rm -f conftest.err conftest.
$ac_objext \
11090 conftest
$ac_exeext conftest.
$ac_ext
11091 LIBS
=$ac_check_lib_save_LIBS
11093 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11094 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11095 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11102 if test "${HAVE_XAW3D}" = "yes"; then
11104 cat >>confdefs.h
<<\_ACEOF
11105 #define HAVE_XAW3D 1
11114 USE_TOOLKIT_SCROLL_BARS
=no
11115 if test "${with_toolkit_scroll_bars}" != "no"; then
11116 if test "${USE_X_TOOLKIT}" != "none"; then
11117 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11118 cat >>confdefs.h
<<\_ACEOF
11119 #define USE_TOOLKIT_SCROLL_BARS 1
11123 USE_TOOLKIT_SCROLL_BARS
=yes
11124 elif test "${HAVE_XAW3D}" = "yes"; then
11125 cat >>confdefs.h
<<\_ACEOF
11126 #define USE_TOOLKIT_SCROLL_BARS 1
11129 USE_TOOLKIT_SCROLL_BARS
=yes
11131 elif test "${HAVE_GTK}" = "yes"; then
11132 cat >>confdefs.h
<<\_ACEOF
11133 #define USE_TOOLKIT_SCROLL_BARS 1
11136 USE_TOOLKIT_SCROLL_BARS
=yes
11137 elif test "${HAVE_CARBON}" = "yes"; then
11138 cat >>confdefs.h
<<\_ACEOF
11139 #define USE_TOOLKIT_SCROLL_BARS 1
11142 USE_TOOLKIT_SCROLL_BARS
=yes
11146 cat >conftest.
$ac_ext <<_ACEOF
11149 cat confdefs.h
>>conftest.
$ac_ext
11150 cat >>conftest.
$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11153 #include <X11/Xlib.h>
11154 #include <X11/Xresource.h>
11163 rm -f conftest.
$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165 (eval $ac_compile) 2>conftest.er1
11167 grep -v '^ *+' conftest.er1
>conftest.err
11169 cat conftest.err
>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; } &&
11178 { ac_try
='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11186 cat >>confdefs.h
<<\_ACEOF
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.
$ac_ext >&5
11196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11199 if test "${with_xim}" != "no"; then
11201 cat >>confdefs.h
<<\_ACEOF
11208 if test "${HAVE_XIM}" != "no"; then
11209 late_CFLAGS
=$CFLAGS
11210 if test "$GCC" = yes; then
11211 CFLAGS
="$CFLAGS --pedantic-errors"
11213 cat >conftest.
$ac_ext <<_ACEOF
11216 cat confdefs.h
>>conftest.
$ac_ext
11217 cat >>conftest.
$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11220 #include <X11/Xlib.h>
11221 #include <X11/Xresource.h>
11230 XPointer *client_data;
11232 /* If we're not using GCC, it's probably not XFree86, and this is
11233 probably right, but we can't use something like --pedantic-errors. */
11234 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11235 char*, XIMProc, XPointer*);
11237 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11243 rm -f conftest.
$ac_objext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>conftest.er1
11247 grep -v '^ *+' conftest.er1
>conftest.err
11249 cat conftest.err
>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; } &&
11258 { ac_try
='test -s conftest.$ac_objext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 emacs_cv_arg6_star
=yes
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.
$ac_ext >&5
11270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11272 if test "$emacs_cv_arg6_star" = yes; then
11273 cat >>confdefs.h
<<\_ACEOF
11274 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11278 cat >>confdefs.h
<<\_ACEOF
11279 #define XRegisterIMInstantiateCallback_arg6 XPointer
11283 CFLAGS
=$late_CFLAGS
11286 ### Use -lXpm if available, unless `--with-xpm=no'.
11288 if test "${HAVE_X11}" = "yes"; then
11289 if test "${with_xpm}" != "no"; then
11290 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11291 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11292 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11293 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11297 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11299 # Is the header compilable?
11300 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11301 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11302 cat >conftest.
$ac_ext <<_ACEOF
11305 cat confdefs.h
>>conftest.
$ac_ext
11306 cat >>conftest.
$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11309 #include <X11/xpm.h>
11311 rm -f conftest.
$ac_objext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11315 grep -v '^ *+' conftest.er1
>conftest.err
11317 cat conftest.err
>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try
='test -s conftest.$ac_objext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_header_compiler
=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.
$ac_ext >&5
11337 ac_header_compiler
=no
11339 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11341 echo "${ECHO_T}$ac_header_compiler" >&6
11343 # Is the header present?
11344 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11345 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11346 cat >conftest.
$ac_ext <<_ACEOF
11349 cat confdefs.h
>>conftest.
$ac_ext
11350 cat >>conftest.
$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include <X11/xpm.h>
11354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11355 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11357 grep -v '^ *+' conftest.er1
>conftest.err
11359 cat conftest.err
>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } >/dev
/null
; then
11362 if test -s conftest.err
; then
11363 ac_cpp_err
=$ac_c_preproc_warn_flag
11364 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11371 if test -z "$ac_cpp_err"; then
11372 ac_header_preproc
=yes
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.
$ac_ext >&5
11377 ac_header_preproc
=no
11379 rm -f conftest.err conftest.
$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6
11383 # So? What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc
=yes
11393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11407 ## ------------------------------------------ ##
11408 ## Report this to the AC_PACKAGE_NAME lists. ##
11409 ## ------------------------------------------ ##
11412 sed "s/^/$as_me: WARNING: /" >&2
11415 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11416 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11417 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11422 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11423 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11426 if test $ac_cv_header_X11_xpm_h = yes; then
11427 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11428 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11429 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 ac_check_lib_save_LIBS
=$LIBS
11433 LIBS
="-lXpm -lX11 $LIBS"
11434 cat >conftest.
$ac_ext <<_ACEOF
11437 cat confdefs.h
>>conftest.
$ac_ext
11438 cat >>conftest.
$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 /* Override any gcc2 internal prototype to avoid an error. */
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11447 char XpmReadFileToPixmap ();
11451 XpmReadFileToPixmap ();
11456 rm -f conftest.
$ac_objext conftest
$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11460 grep -v '^ *+' conftest.er1
>conftest.err
11462 cat conftest.err
>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11471 { ac_try
='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.
$ac_ext >&5
11482 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11484 rm -f conftest.err conftest.
$ac_objext \
11485 conftest
$ac_exeext conftest.
$ac_ext
11486 LIBS
=$ac_check_lib_save_LIBS
11488 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11489 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11490 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11497 if test "${HAVE_XPM}" = "yes"; then
11498 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11499 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11500 cat >conftest.
$ac_ext <<_ACEOF
11503 cat confdefs.h
>>conftest.
$ac_ext
11504 cat >>conftest.
$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include "X11/xpm.h"
11507 #ifndef XpmReturnAllocPixels
11508 no_return_alloc_pixels
11512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11513 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11521 if test "${HAVE_XPM}" = "yes"; then
11522 echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6
11525 echo "$as_me:$LINENO: result: no" >&5
11526 echo "${ECHO_T}no" >&6
11531 if test "${HAVE_XPM}" = "yes"; then
11533 cat >>confdefs.h
<<\_ACEOF
11540 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11542 if test "${HAVE_X11}" = "yes"; then
11543 if test "${with_jpeg}" != "no"; then
11544 if test "${ac_cv_header_jerror_h+set}" = set; then
11545 echo "$as_me:$LINENO: checking for jerror.h" >&5
11546 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11547 if test "${ac_cv_header_jerror_h+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11551 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11553 # Is the header compilable?
11554 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11555 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11556 cat >conftest.
$ac_ext <<_ACEOF
11559 cat confdefs.h
>>conftest.
$ac_ext
11560 cat >>conftest.
$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 $ac_includes_default
11563 #include <jerror.h>
11565 rm -f conftest.
$ac_objext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>conftest.er1
11569 grep -v '^ *+' conftest.er1
>conftest.err
11571 cat conftest.err
>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try
='test -s conftest.$ac_objext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_header_compiler
=yes
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.
$ac_ext >&5
11591 ac_header_compiler
=no
11593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11595 echo "${ECHO_T}$ac_header_compiler" >&6
11597 # Is the header present?
11598 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11599 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11600 cat >conftest.
$ac_ext <<_ACEOF
11603 cat confdefs.h
>>conftest.
$ac_ext
11604 cat >>conftest.
$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 #include <jerror.h>
11608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11609 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11611 grep -v '^ *+' conftest.er1
>conftest.err
11613 cat conftest.err
>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } >/dev
/null
; then
11616 if test -s conftest.err
; then
11617 ac_cpp_err
=$ac_c_preproc_warn_flag
11618 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11625 if test -z "$ac_cpp_err"; then
11626 ac_header_preproc
=yes
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.
$ac_ext >&5
11631 ac_header_preproc
=no
11633 rm -f conftest.err conftest.
$ac_ext
11634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11635 echo "${ECHO_T}$ac_header_preproc" >&6
11637 # So? What about this header?
11638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11640 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11641 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11643 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11644 ac_header_preproc
=yes
11647 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11648 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11650 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11652 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11654 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11656 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11658 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11661 ## ------------------------------------------ ##
11662 ## Report this to the AC_PACKAGE_NAME lists. ##
11663 ## ------------------------------------------ ##
11666 sed "s/^/$as_me: WARNING: /" >&2
11669 echo "$as_me:$LINENO: checking for jerror.h" >&5
11670 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11671 if test "${ac_cv_header_jerror_h+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 ac_cv_header_jerror_h
=$ac_header_preproc
11676 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11677 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11680 if test $ac_cv_header_jerror_h = yes; then
11681 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11682 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11683 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 ac_check_lib_save_LIBS
=$LIBS
11687 LIBS
="-ljpeg $LIBS"
11688 cat >conftest.
$ac_ext <<_ACEOF
11691 cat confdefs.h
>>conftest.
$ac_ext
11692 cat >>conftest.
$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11695 /* Override any gcc2 internal prototype to avoid an error. */
11699 /* We use char because int might match the return type of a gcc2
11700 builtin and then its argument prototype would still apply. */
11701 char jpeg_destroy_compress ();
11705 jpeg_destroy_compress ();
11710 rm -f conftest.
$ac_objext conftest
$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712 (eval $ac_link) 2>conftest.er1
11714 grep -v '^ *+' conftest.er1
>conftest.err
11716 cat conftest.err
>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try
='test -s conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.
$ac_ext >&5
11736 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11738 rm -f conftest.err conftest.
$ac_objext \
11739 conftest
$ac_exeext conftest.
$ac_ext
11740 LIBS
=$ac_check_lib_save_LIBS
11742 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11743 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11744 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11754 if test "${HAVE_JPEG}" = "yes"; then
11755 cat >>confdefs.h
<<\_ACEOF
11756 #define HAVE_JPEG 1
11759 cat >conftest.
$ac_ext <<_ACEOF
11762 cat confdefs.h
>>conftest.
$ac_ext
11763 cat >>conftest.
$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 #include <jpeglib.h>
11766 version=JPEG_LIB_VERSION
11769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11770 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11771 cat >>confdefs.h
<<\_ACEOF
11772 #define HAVE_JPEG 1
11776 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11777 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11785 ### Use -lpng if available, unless `--with-png=no'.
11787 if test "${HAVE_X11}" = "yes"; then
11788 if test "${with_png}" != "no"; then
11789 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11790 # in /usr/include/libpng.
11793 for ac_header
in png.h libpng
/png.h
11795 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797 echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11805 # Is the header compilable?
11806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11808 cat >conftest.
$ac_ext <<_ACEOF
11811 cat confdefs.h
>>conftest.
$ac_ext
11812 cat >>conftest.
$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11815 #include <$ac_header>
11817 rm -f conftest.
$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11821 grep -v '^ *+' conftest.er1
>conftest.err
11823 cat conftest.err
>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try
='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_header_compiler
=yes
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.
$ac_ext >&5
11843 ac_header_compiler
=no
11845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11847 echo "${ECHO_T}$ac_header_compiler" >&6
11849 # Is the header present?
11850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11852 cat >conftest.
$ac_ext <<_ACEOF
11855 cat confdefs.h
>>conftest.
$ac_ext
11856 cat >>conftest.
$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 #include <$ac_header>
11860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11861 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11863 grep -v '^ *+' conftest.er1
>conftest.err
11865 cat conftest.err
>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } >/dev
/null
; then
11868 if test -s conftest.err
; then
11869 ac_cpp_err
=$ac_c_preproc_warn_flag
11870 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11877 if test -z "$ac_cpp_err"; then
11878 ac_header_preproc
=yes
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.
$ac_ext >&5
11883 ac_header_preproc
=no
11885 rm -f conftest.err conftest.
$ac_ext
11886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11887 echo "${ECHO_T}$ac_header_preproc" >&6
11889 # So? What about this header?
11890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11896 ac_header_preproc
=yes
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11913 ## ------------------------------------------ ##
11914 ## Report this to the AC_PACKAGE_NAME lists. ##
11915 ## ------------------------------------------ ##
11918 sed "s/^/$as_me: WARNING: /" >&2
11921 echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 eval "$as_ac_Header=\$ac_header_preproc"
11928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933 cat >>confdefs.h
<<_ACEOF
11934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11941 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11942 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11943 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11944 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 ac_check_lib_save_LIBS
=$LIBS
11948 LIBS
="-lpng -lz -lm $LIBS"
11949 cat >conftest.
$ac_ext <<_ACEOF
11952 cat confdefs.h
>>conftest.
$ac_ext
11953 cat >>conftest.
$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11956 /* Override any gcc2 internal prototype to avoid an error. */
11960 /* We use char because int might match the return type of a gcc2
11961 builtin and then its argument prototype would still apply. */
11962 char png_get_channels ();
11966 png_get_channels ();
11971 rm -f conftest.
$ac_objext conftest
$ac_exeext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11973 (eval $ac_link) 2>conftest.er1
11975 grep -v '^ *+' conftest.er1
>conftest.err
11977 cat conftest.err
>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try
='test -s conftest$ac_exeext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 ac_cv_lib_png_png_get_channels
=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.
$ac_ext >&5
11997 ac_cv_lib_png_png_get_channels
=no
11999 rm -f conftest.err conftest.
$ac_objext \
12000 conftest
$ac_exeext conftest.
$ac_ext
12001 LIBS
=$ac_check_lib_save_LIBS
12003 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12004 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12005 if test $ac_cv_lib_png_png_get_channels = yes; then
12012 if test "${HAVE_PNG}" = "yes"; then
12014 cat >>confdefs.h
<<\_ACEOF
12021 ### Use -ltiff if available, unless `--with-tiff=no'.
12023 if test "${HAVE_X11}" = "yes"; then
12024 if test "${with_tiff}" != "no"; then
12025 if test "${ac_cv_header_tiffio_h+set}" = set; then
12026 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12027 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12028 if test "${ac_cv_header_tiffio_h+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12032 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12034 # Is the header compilable?
12035 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12036 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12037 cat >conftest.
$ac_ext <<_ACEOF
12040 cat confdefs.h
>>conftest.
$ac_ext
12041 cat >>conftest.
$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 $ac_includes_default
12044 #include <tiffio.h>
12046 rm -f conftest.
$ac_objext
12047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12048 (eval $ac_compile) 2>conftest.er1
12050 grep -v '^ *+' conftest.er1
>conftest.err
12052 cat conftest.err
>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } &&
12055 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try
='test -s conftest.$ac_objext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_header_compiler
=yes
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.
$ac_ext >&5
12072 ac_header_compiler
=no
12074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12076 echo "${ECHO_T}$ac_header_compiler" >&6
12078 # Is the header present?
12079 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12080 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12081 cat >conftest.
$ac_ext <<_ACEOF
12084 cat confdefs.h
>>conftest.
$ac_ext
12085 cat >>conftest.
$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <tiffio.h>
12089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12090 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12092 grep -v '^ *+' conftest.er1
>conftest.err
12094 cat conftest.err
>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } >/dev
/null
; then
12097 if test -s conftest.err
; then
12098 ac_cpp_err
=$ac_c_preproc_warn_flag
12099 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12106 if test -z "$ac_cpp_err"; then
12107 ac_header_preproc
=yes
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.
$ac_ext >&5
12112 ac_header_preproc
=no
12114 rm -f conftest.err conftest.
$ac_ext
12115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12116 echo "${ECHO_T}$ac_header_preproc" >&6
12118 # So? What about this header?
12119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12121 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12122 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12124 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12125 ac_header_preproc
=yes
12128 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12129 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12131 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12133 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12135 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12137 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12139 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12142 ## ------------------------------------------ ##
12143 ## Report this to the AC_PACKAGE_NAME lists. ##
12144 ## ------------------------------------------ ##
12147 sed "s/^/$as_me: WARNING: /" >&2
12150 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12151 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12152 if test "${ac_cv_header_tiffio_h+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 ac_cv_header_tiffio_h
=$ac_header_preproc
12157 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12158 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12161 if test $ac_cv_header_tiffio_h = yes; then
12163 # At least one tiff package requires the jpeg library.
12164 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12165 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12166 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12167 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 ac_check_lib_save_LIBS
=$LIBS
12171 LIBS
="-ltiff $tifflibs $LIBS"
12172 cat >conftest.
$ac_ext <<_ACEOF
12175 cat confdefs.h
>>conftest.
$ac_ext
12176 cat >>conftest.
$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12179 /* Override any gcc2 internal prototype to avoid an error. */
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185 char TIFFGetVersion ();
12194 rm -f conftest.
$ac_objext conftest
$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>conftest.er1
12198 grep -v '^ *+' conftest.er1
>conftest.err
12200 cat conftest.err
>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try
='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_lib_tiff_TIFFGetVersion
=yes
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.
$ac_ext >&5
12220 ac_cv_lib_tiff_TIFFGetVersion
=no
12222 rm -f conftest.err conftest.
$ac_objext \
12223 conftest
$ac_exeext conftest.
$ac_ext
12224 LIBS
=$ac_check_lib_save_LIBS
12226 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12227 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12228 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12237 if test "${HAVE_TIFF}" = "yes"; then
12239 cat >>confdefs.h
<<\_ACEOF
12240 #define HAVE_TIFF 1
12246 ### Use -lgif if available, unless `--with-gif=no'.
12248 if test "${HAVE_X11}" = "yes"; then
12249 if test "${with_gif}" != "no"; then
12250 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12251 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12252 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12253 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12257 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12259 # Is the header compilable?
12260 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12261 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12262 cat >conftest.
$ac_ext <<_ACEOF
12265 cat confdefs.h
>>conftest.
$ac_ext
12266 cat >>conftest.
$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 $ac_includes_default
12269 #include <gif_lib.h>
12271 rm -f conftest.
$ac_objext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12273 (eval $ac_compile) 2>conftest.er1
12275 grep -v '^ *+' conftest.er1
>conftest.err
12277 cat conftest.err
>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try
='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_header_compiler
=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.
$ac_ext >&5
12297 ac_header_compiler
=no
12299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12301 echo "${ECHO_T}$ac_header_compiler" >&6
12303 # Is the header present?
12304 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12305 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12306 cat >conftest.
$ac_ext <<_ACEOF
12309 cat confdefs.h
>>conftest.
$ac_ext
12310 cat >>conftest.
$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 #include <gif_lib.h>
12314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12317 grep -v '^ *+' conftest.er1
>conftest.err
12319 cat conftest.err
>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } >/dev
/null
; then
12322 if test -s conftest.err
; then
12323 ac_cpp_err
=$ac_c_preproc_warn_flag
12324 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12331 if test -z "$ac_cpp_err"; then
12332 ac_header_preproc
=yes
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.
$ac_ext >&5
12337 ac_header_preproc
=no
12339 rm -f conftest.err conftest.
$ac_ext
12340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12341 echo "${ECHO_T}$ac_header_preproc" >&6
12343 # So? What about this header?
12344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12346 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12347 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12348 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12349 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12350 ac_header_preproc
=yes
12353 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12354 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12356 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12357 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12358 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12360 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12362 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12364 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12367 ## ------------------------------------------ ##
12368 ## Report this to the AC_PACKAGE_NAME lists. ##
12369 ## ------------------------------------------ ##
12372 sed "s/^/$as_me: WARNING: /" >&2
12375 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12376 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12377 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 ac_cv_header_gif_lib_h
=$ac_header_preproc
12382 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12383 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12386 if test $ac_cv_header_gif_lib_h = yes; then
12387 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12388 # Earlier versions can crash Emacs.
12389 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12390 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12391 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 ac_check_lib_save_LIBS
=$LIBS
12395 LIBS
="-lungif $LIBS"
12396 cat >conftest.
$ac_ext <<_ACEOF
12399 cat confdefs.h
>>conftest.
$ac_ext
12400 cat >>conftest.
$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 /* Override any gcc2 internal prototype to avoid an error. */
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char EGifPutExtensionLast ();
12413 EGifPutExtensionLast ();
12418 rm -f conftest.
$ac_objext conftest
$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12422 grep -v '^ *+' conftest.er1
>conftest.err
12424 cat conftest.err
>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try
='test -s conftest$ac_exeext'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.
$ac_ext >&5
12444 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12446 rm -f conftest.err conftest.
$ac_objext \
12447 conftest
$ac_exeext conftest.
$ac_ext
12448 LIBS
=$ac_check_lib_save_LIBS
12450 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12451 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12452 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12461 if test "${HAVE_GIF}" = "yes"; then
12463 cat >>confdefs.h
<<\_ACEOF
12470 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12471 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12472 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12473 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12477 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12479 # Is the header compilable?
12480 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12481 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12482 cat >conftest.
$ac_ext <<_ACEOF
12485 cat confdefs.h
>>conftest.
$ac_ext
12486 cat >>conftest.
$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 $ac_includes_default
12489 #include <malloc/malloc.h>
12491 rm -f conftest.
$ac_objext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493 (eval $ac_compile) 2>conftest.er1
12495 grep -v '^ *+' conftest.er1
>conftest.err
12497 cat conftest.err
>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try
='test -s conftest.$ac_objext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_header_compiler
=yes
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.
$ac_ext >&5
12517 ac_header_compiler
=no
12519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12521 echo "${ECHO_T}$ac_header_compiler" >&6
12523 # Is the header present?
12524 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12525 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12526 cat >conftest.
$ac_ext <<_ACEOF
12529 cat confdefs.h
>>conftest.
$ac_ext
12530 cat >>conftest.
$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <malloc/malloc.h>
12534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12535 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12537 grep -v '^ *+' conftest.er1
>conftest.err
12539 cat conftest.err
>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } >/dev
/null
; then
12542 if test -s conftest.err
; then
12543 ac_cpp_err
=$ac_c_preproc_warn_flag
12544 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12551 if test -z "$ac_cpp_err"; then
12552 ac_header_preproc
=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.
$ac_ext >&5
12557 ac_header_preproc
=no
12559 rm -f conftest.err conftest.
$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12561 echo "${ECHO_T}$ac_header_preproc" >&6
12563 # So? What about this header?
12564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12566 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12567 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12569 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12570 ac_header_preproc
=yes
12573 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12574 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12576 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12578 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12580 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12582 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12584 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12587 ## ------------------------------------------ ##
12588 ## Report this to the AC_PACKAGE_NAME lists. ##
12589 ## ------------------------------------------ ##
12592 sed "s/^/$as_me: WARNING: /" >&2
12595 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12596 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12597 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12602 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12603 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12606 if test $ac_cv_header_malloc_malloc_h = yes; then
12608 cat >>confdefs.h
<<\_ACEOF
12609 #define HAVE_MALLOC_MALLOC_H 1
12616 ### Use Mac OS X Carbon API to implement GUI.
12617 if test "${HAVE_CARBON}" = "yes"; then
12619 cat >>confdefs.h
<<\_ACEOF
12620 #define HAVE_CARBON 1
12624 ## Specify the install directory
12626 if test "${carbon_appdir_x}" != ""; then
12627 case ${carbon_appdir_x} in
12628 y | ye |
yes) carbon_appdir
=/Applications
;;
12629 * ) carbon_appdir
=${carbon_appdir_x} ;;
12632 # We also have mouse menus.
12635 tmp_CFLAGS
="$CFLAGS"
12636 CFLAGS
="$CFLAGS -framework Carbon"
12637 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12638 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12639 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 cat >conftest.
$ac_ext <<_ACEOF
12645 cat confdefs.h
>>conftest.
$ac_ext
12646 cat >>conftest.
$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12650 #define CancelMenuTracking innocuous_CancelMenuTracking
12652 /* System header to define __stub macros and hopefully few prototypes,
12653 which can conflict with char CancelMenuTracking (); below.
12654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12655 <limits.h> exists even on freestanding compilers. */
12658 # include <limits.h>
12660 # include <assert.h>
12663 #undef CancelMenuTracking
12665 /* Override any gcc2 internal prototype to avoid an error. */
12670 /* We use char because int might match the return type of a gcc2
12671 builtin and then its argument prototype would still apply. */
12672 char CancelMenuTracking ();
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12679 char (*f) () = CancelMenuTracking;
12688 return f != CancelMenuTracking;
12693 rm -f conftest.
$ac_objext conftest
$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695 (eval $ac_link) 2>conftest.er1
12697 grep -v '^ *+' conftest.er1
>conftest.err
12699 cat conftest.err
>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try
='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_func_CancelMenuTracking
=yes
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.
$ac_ext >&5
12719 ac_cv_func_CancelMenuTracking
=no
12721 rm -f conftest.err conftest.
$ac_objext \
12722 conftest
$ac_exeext conftest.
$ac_ext
12724 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12725 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12726 if test $ac_cv_func_CancelMenuTracking = yes; then
12732 if test "$have_cmt" = yes; then
12734 cat >>confdefs.h
<<\_ACEOF
12735 #define HAVE_CANCELMENUTRACKING 1
12739 CFLAGS
="$tmp_CFLAGS"
12742 ### Use session management (-lSM -lICE) if available
12744 if test "${HAVE_X11}" = "yes"; then
12745 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12746 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12747 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12748 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12752 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12754 # Is the header compilable?
12755 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12756 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12757 cat >conftest.
$ac_ext <<_ACEOF
12760 cat confdefs.h
>>conftest.
$ac_ext
12761 cat >>conftest.
$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 $ac_includes_default
12764 #include <X11/SM/SMlib.h>
12766 rm -f conftest.
$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>conftest.er1
12770 grep -v '^ *+' conftest.er1
>conftest.err
12772 cat conftest.err
>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try
='test -s conftest.$ac_objext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_header_compiler
=yes
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.
$ac_ext >&5
12792 ac_header_compiler
=no
12794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12796 echo "${ECHO_T}$ac_header_compiler" >&6
12798 # Is the header present?
12799 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12800 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12801 cat >conftest.
$ac_ext <<_ACEOF
12804 cat confdefs.h
>>conftest.
$ac_ext
12805 cat >>conftest.
$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 #include <X11/SM/SMlib.h>
12809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12810 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12812 grep -v '^ *+' conftest.er1
>conftest.err
12814 cat conftest.err
>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } >/dev
/null
; then
12817 if test -s conftest.err
; then
12818 ac_cpp_err
=$ac_c_preproc_warn_flag
12819 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12826 if test -z "$ac_cpp_err"; then
12827 ac_header_preproc
=yes
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.
$ac_ext >&5
12832 ac_header_preproc
=no
12834 rm -f conftest.err conftest.
$ac_ext
12835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12836 echo "${ECHO_T}$ac_header_preproc" >&6
12838 # So? What about this header?
12839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12841 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12842 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12844 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12845 ac_header_preproc
=yes
12848 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12849 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12851 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12853 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12855 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12857 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12859 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12862 ## ------------------------------------------ ##
12863 ## Report this to the AC_PACKAGE_NAME lists. ##
12864 ## ------------------------------------------ ##
12867 sed "s/^/$as_me: WARNING: /" >&2
12870 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12871 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12872 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12877 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12878 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12881 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12882 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12883 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12884 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 ac_check_lib_save_LIBS
=$LIBS
12888 LIBS
="-lSM -lICE $LIBS"
12889 cat >conftest.
$ac_ext <<_ACEOF
12892 cat confdefs.h
>>conftest.
$ac_ext
12893 cat >>conftest.
$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12896 /* Override any gcc2 internal prototype to avoid an error. */
12900 /* We use char because int might match the return type of a gcc2
12901 builtin and then its argument prototype would still apply. */
12902 char SmcOpenConnection ();
12906 SmcOpenConnection ();
12911 rm -f conftest.
$ac_objext conftest
$ac_exeext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12913 (eval $ac_link) 2>conftest.er1
12915 grep -v '^ *+' conftest.er1
>conftest.err
12917 cat conftest.err
>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
12920 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try
='test -s conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_lib_SM_SmcOpenConnection
=yes
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.
$ac_ext >&5
12937 ac_cv_lib_SM_SmcOpenConnection
=no
12939 rm -f conftest.err conftest.
$ac_objext \
12940 conftest
$ac_exeext conftest.
$ac_ext
12941 LIBS
=$ac_check_lib_save_LIBS
12943 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12944 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12945 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12953 if test "${HAVE_X_SM}" = "yes"; then
12955 cat >>confdefs.h
<<\_ACEOF
12956 #define HAVE_X_SM 1
12961 *) LIBS
="-lSM -lICE $LIBS" ;;
12966 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12967 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12968 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12969 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 cat >conftest.
$ac_ext <<_ACEOF
12975 cat confdefs.h
>>conftest.
$ac_ext
12976 cat >>conftest.
$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12987 rm -f conftest.
$ac_objext conftest
$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>conftest.er1
12991 grep -v '^ *+' conftest.er1
>conftest.err
12993 cat conftest.err
>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try
='test -s conftest$ac_exeext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 emacs_cv_netdb_declares_h_errno
=yes
13010 echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.
$ac_ext >&5
13013 emacs_cv_netdb_declares_h_errno
=no
13015 rm -f conftest.err conftest.
$ac_objext \
13016 conftest
$ac_exeext conftest.
$ac_ext
13018 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13019 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13020 if test $emacs_cv_netdb_declares_h_errno = yes; then
13022 cat >>confdefs.h
<<\_ACEOF
13023 #define HAVE_H_ERRNO 1
13028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13029 # for constant arguments. Useless!
13030 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13031 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13032 if test "${ac_cv_working_alloca_h+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 cat >conftest.
$ac_ext <<_ACEOF
13038 cat confdefs.h
>>conftest.
$ac_ext
13039 cat >>conftest.
$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include <alloca.h>
13045 char *p = (char *) alloca (2 * sizeof (int));
13050 rm -f conftest.
$ac_objext conftest
$ac_exeext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052 (eval $ac_link) 2>conftest.er1
13054 grep -v '^ *+' conftest.er1
>conftest.err
13056 cat conftest.err
>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try
='test -s conftest$ac_exeext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_working_alloca_h
=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.
$ac_ext >&5
13076 ac_cv_working_alloca_h
=no
13078 rm -f conftest.err conftest.
$ac_objext \
13079 conftest
$ac_exeext conftest.
$ac_ext
13081 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13082 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13083 if test $ac_cv_working_alloca_h = yes; then
13085 cat >>confdefs.h
<<\_ACEOF
13086 #define HAVE_ALLOCA_H 1
13091 echo "$as_me:$LINENO: checking for alloca" >&5
13092 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13093 if test "${ac_cv_func_alloca_works+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 cat >conftest.
$ac_ext <<_ACEOF
13099 cat confdefs.h
>>conftest.
$ac_ext
13100 cat >>conftest.
$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13103 # define alloca __builtin_alloca
13106 # include <malloc.h>
13107 # define alloca _alloca
13110 # include <alloca.h>
13115 # ifndef alloca /* predefined by HP cc +Olibcalls */
13126 char *p = (char *) alloca (1);
13131 rm -f conftest.
$ac_objext conftest
$ac_exeext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133 (eval $ac_link) 2>conftest.er1
13135 grep -v '^ *+' conftest.er1
>conftest.err
13137 cat conftest.err
>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try
='test -s conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_func_alloca_works
=yes
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.
$ac_ext >&5
13157 ac_cv_func_alloca_works
=no
13159 rm -f conftest.err conftest.
$ac_objext \
13160 conftest
$ac_exeext conftest.
$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13165 if test $ac_cv_func_alloca_works = yes; then
13167 cat >>confdefs.h
<<\_ACEOF
13168 #define HAVE_ALLOCA 1
13172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13173 # that cause trouble. Some versions do not even contain alloca or
13174 # contain a buggy version. If you still want to use their alloca,
13175 # use ar to extract alloca.o from them instead of compiling alloca.c.
13177 ALLOCA
=alloca.
$ac_objext
13179 cat >>confdefs.h
<<\_ACEOF
13184 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13186 if test "${ac_cv_os_cray+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 cat >conftest.
$ac_ext <<_ACEOF
13192 cat confdefs.h
>>conftest.
$ac_ext
13193 cat >>conftest.
$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 #if defined(CRAY) && ! defined(CRAY2)
13202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13203 $EGREP "webecray" >/dev
/null
2>&1; then
13211 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13212 echo "${ECHO_T}$ac_cv_os_cray" >&6
13213 if test $ac_cv_os_cray = yes; then
13214 for ac_func
in _getb67 GETB67 getb67
; do
13215 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13216 echo "$as_me:$LINENO: checking for $ac_func" >&5
13217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13218 if eval "test \"\${$as_ac_var+set}\" = set"; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 cat >conftest.
$ac_ext <<_ACEOF
13224 cat confdefs.h
>>conftest.
$ac_ext
13225 cat >>conftest.
$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13229 #define $ac_func innocuous_$ac_func
13231 /* System header to define __stub macros and hopefully few prototypes,
13232 which can conflict with char $ac_func (); below.
13233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13234 <limits.h> exists even on freestanding compilers. */
13237 # include <limits.h>
13239 # include <assert.h>
13244 /* Override any gcc2 internal prototype to avoid an error. */
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13252 /* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13258 char (*f) () = $ac_func;
13267 return f != $ac_func;
13272 rm -f conftest.
$ac_objext conftest
$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>conftest.er1
13276 grep -v '^ *+' conftest.er1
>conftest.err
13278 cat conftest.err
>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try
='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 eval "$as_ac_var=yes"
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.
$ac_ext >&5
13298 eval "$as_ac_var=no"
13300 rm -f conftest.err conftest.
$ac_objext \
13301 conftest
$ac_exeext conftest.
$ac_ext
13303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13305 if test `eval echo '${'$as_ac_var'}'` = yes; then
13307 cat >>confdefs.h
<<_ACEOF
13308 #define CRAY_STACKSEG_END $ac_func
13317 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13318 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13319 if test "${ac_cv_c_stack_direction+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 if test "$cross_compiling" = yes; then
13323 ac_cv_c_stack_direction
=0
13325 cat >conftest.
$ac_ext <<_ACEOF
13328 cat confdefs.h
>>conftest.
$ac_ext
13329 cat >>conftest.
$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13332 find_stack_direction ()
13334 static char *addr = 0;
13339 return find_stack_direction ();
13342 return (&dummy > addr) ? 1 : -1;
13348 exit (find_stack_direction () < 0);
13351 rm -f conftest
$ac_exeext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_cv_c_stack_direction
=1
13364 echo "$as_me: program exited with status $ac_status" >&5
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.
$ac_ext >&5
13368 ( exit $ac_status )
13369 ac_cv_c_stack_direction
=-1
13371 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13374 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13375 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13377 cat >>confdefs.h
<<_ACEOF
13378 #define STACK_DIRECTION $ac_cv_c_stack_direction
13385 # fmod, logb, and frexp are found in -lm on most systems.
13386 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13388 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13389 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13390 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 ac_check_lib_save_LIBS
=$LIBS
13395 cat >conftest.
$ac_ext <<_ACEOF
13398 cat confdefs.h
>>conftest.
$ac_ext
13399 cat >>conftest.
$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13402 /* Override any gcc2 internal prototype to avoid an error. */
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13417 rm -f conftest.
$ac_objext conftest
$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419 (eval $ac_link) 2>conftest.er1
13421 grep -v '^ *+' conftest.er1
>conftest.err
13423 cat conftest.err
>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try
='test -s conftest$ac_exeext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_cv_lib_m_sqrt
=yes
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.
$ac_ext >&5
13443 ac_cv_lib_m_sqrt
=no
13445 rm -f conftest.err conftest.
$ac_objext \
13446 conftest
$ac_exeext conftest.
$ac_ext
13447 LIBS
=$ac_check_lib_save_LIBS
13449 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13450 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13451 if test $ac_cv_lib_m_sqrt = yes; then
13452 cat >>confdefs.h
<<_ACEOF
13453 #define HAVE_LIBM 1
13461 # Check for mail-locking functions in a "mail" library. Probably this should
13462 # have the same check as for liblockfile below.
13464 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13465 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13466 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 ac_check_lib_save_LIBS
=$LIBS
13470 LIBS
="-lmail $LIBS"
13471 cat >conftest.
$ac_ext <<_ACEOF
13474 cat confdefs.h
>>conftest.
$ac_ext
13475 cat >>conftest.
$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13478 /* Override any gcc2 internal prototype to avoid an error. */
13482 /* We use char because int might match the return type of a gcc2
13483 builtin and then its argument prototype would still apply. */
13493 rm -f conftest.
$ac_objext conftest
$ac_exeext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>conftest.er1
13497 grep -v '^ *+' conftest.er1
>conftest.err
13499 cat conftest.err
>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
13502 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; } &&
13508 { ac_try
='test -s conftest$ac_exeext'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; }; then
13514 ac_cv_lib_mail_maillock
=yes
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.
$ac_ext >&5
13519 ac_cv_lib_mail_maillock
=no
13521 rm -f conftest.err conftest.
$ac_objext \
13522 conftest
$ac_exeext conftest.
$ac_ext
13523 LIBS
=$ac_check_lib_save_LIBS
13525 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13526 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13527 if test $ac_cv_lib_mail_maillock = yes; then
13528 cat >>confdefs.h
<<_ACEOF
13529 #define HAVE_LIBMAIL 1
13532 LIBS
="-lmail $LIBS"
13537 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13538 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13539 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 ac_check_lib_save_LIBS
=$LIBS
13543 LIBS
="-llockfile $LIBS"
13544 cat >conftest.
$ac_ext <<_ACEOF
13547 cat confdefs.h
>>conftest.
$ac_ext
13548 cat >>conftest.
$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13551 /* Override any gcc2 internal prototype to avoid an error. */
13555 /* We use char because int might match the return type of a gcc2
13556 builtin and then its argument prototype would still apply. */
13566 rm -f conftest.
$ac_objext conftest
$ac_exeext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13568 (eval $ac_link) 2>conftest.er1
13570 grep -v '^ *+' conftest.er1
>conftest.err
13572 cat conftest.err
>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try
='test -s conftest$ac_exeext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_lib_lockfile_maillock
=yes
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.
$ac_ext >&5
13592 ac_cv_lib_lockfile_maillock
=no
13594 rm -f conftest.err conftest.
$ac_objext \
13595 conftest
$ac_exeext conftest.
$ac_ext
13596 LIBS
=$ac_check_lib_save_LIBS
13598 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13599 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13600 if test $ac_cv_lib_lockfile_maillock = yes; then
13601 cat >>confdefs.h
<<_ACEOF
13602 #define HAVE_LIBLOCKFILE 1
13605 LIBS
="-llockfile $LIBS"
13609 # If we have the shared liblockfile, assume we must use it for mail
13610 # locking (e.g. Debian). If we couldn't link against liblockfile
13611 # (no liblockfile.a installed), ensure that we don't need to.
13612 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13613 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13614 set dummy liblockfile.so
; ac_word
=$2
13615 echo "$as_me:$LINENO: checking for $ac_word" >&5
13616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13617 if test "${ac_cv_prog_liblockfile+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 if test -n "$liblockfile"; then
13621 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13624 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13625 for as_dir
in $as_dummy
13628 test -z "$as_dir" && as_dir
=.
13629 for ac_exec_ext
in '' $ac_executable_extensions; do
13630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13631 ac_cv_prog_liblockfile
="yes"
13632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13641 liblockfile
=$ac_cv_prog_liblockfile
13642 if test -n "$liblockfile"; then
13643 echo "$as_me:$LINENO: result: $liblockfile" >&5
13644 echo "${ECHO_T}$liblockfile" >&6
13646 echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6
13650 if test $ac_cv_prog_liblockfile = yes; then
13651 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13652 This probably means that movemail could lose mail.
13653 There may be a \`development' package to install containing liblockfile." >&5
13654 echo "$as_me: error: Shared liblockfile found but can't link against it.
13655 This probably means that movemail could lose mail.
13656 There may be a \`development' package to install containing liblockfile." >&2;}
13657 { (exit 1); exit 1; }; }
13662 for ac_func
in touchlock
13664 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13665 echo "$as_me:$LINENO: checking for $ac_func" >&5
13666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13667 if eval "test \"\${$as_ac_var+set}\" = set"; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 cat >conftest.
$ac_ext <<_ACEOF
13673 cat confdefs.h
>>conftest.
$ac_ext
13674 cat >>conftest.
$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13678 #define $ac_func innocuous_$ac_func
13680 /* System header to define __stub macros and hopefully few prototypes,
13681 which can conflict with char $ac_func (); below.
13682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13683 <limits.h> exists even on freestanding compilers. */
13686 # include <limits.h>
13688 # include <assert.h>
13693 /* Override any gcc2 internal prototype to avoid an error. */
13698 /* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13701 /* The GNU C library defines this for functions which it implements
13702 to always fail with ENOSYS. Some functions are actually named
13703 something starting with __ and the normal name is an alias. */
13704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13707 char (*f) () = $ac_func;
13716 return f != $ac_func;
13721 rm -f conftest.
$ac_objext conftest
$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>conftest.er1
13725 grep -v '^ *+' conftest.er1
>conftest.err
13727 cat conftest.err
>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try
='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 eval "$as_ac_var=yes"
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.
$ac_ext >&5
13747 eval "$as_ac_var=no"
13749 rm -f conftest.err conftest.
$ac_objext \
13750 conftest
$ac_exeext conftest.
$ac_ext
13752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13754 if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h
<<_ACEOF
13756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13763 for ac_header
in maillock.h
13765 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767 echo "$as_me:$LINENO: checking for $ac_header" >&5
13768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13775 # Is the header compilable?
13776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13778 cat >conftest.
$ac_ext <<_ACEOF
13781 cat confdefs.h
>>conftest.
$ac_ext
13782 cat >>conftest.
$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 $ac_includes_default
13785 #include <$ac_header>
13787 rm -f conftest.
$ac_objext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>conftest.er1
13791 grep -v '^ *+' conftest.er1
>conftest.err
13793 cat conftest.err
>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try
='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_header_compiler
=yes
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.
$ac_ext >&5
13813 ac_header_compiler
=no
13815 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817 echo "${ECHO_T}$ac_header_compiler" >&6
13819 # Is the header present?
13820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13822 cat >conftest.
$ac_ext <<_ACEOF
13825 cat confdefs.h
>>conftest.
$ac_ext
13826 cat >>conftest.
$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <$ac_header>
13830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13831 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13833 grep -v '^ *+' conftest.er1
>conftest.err
13835 cat conftest.err
>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev
/null
; then
13838 if test -s conftest.err
; then
13839 ac_cpp_err
=$ac_c_preproc_warn_flag
13840 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13847 if test -z "$ac_cpp_err"; then
13848 ac_header_preproc
=yes
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.
$ac_ext >&5
13853 ac_header_preproc
=no
13855 rm -f conftest.err conftest.
$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857 echo "${ECHO_T}$ac_header_preproc" >&6
13859 # So? What about this header?
13860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13866 ac_header_preproc
=yes
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13883 ## ------------------------------------------ ##
13884 ## Report this to the AC_PACKAGE_NAME lists. ##
13885 ## ------------------------------------------ ##
13888 sed "s/^/$as_me: WARNING: /" >&2
13891 echo "$as_me:$LINENO: checking for $ac_header" >&5
13892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 eval "$as_ac_Header=\$ac_header_preproc"
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13903 cat >>confdefs.h
<<_ACEOF
13904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13979 for ac_func
in gethostname getdomainname dup2 \
13980 rename closedir mkdir
rmdir sysinfo getrusage \
13981 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13982 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13983 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13984 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13985 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13986 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13987 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13989 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990 echo "$as_me:$LINENO: checking for $ac_func" >&5
13991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13992 if eval "test \"\${$as_ac_var+set}\" = set"; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 cat >conftest.
$ac_ext <<_ACEOF
13998 cat confdefs.h
>>conftest.
$ac_ext
13999 cat >>conftest.
$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003 #define $ac_func innocuous_$ac_func
14005 /* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char $ac_func (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14011 # include <limits.h>
14013 # include <assert.h>
14018 /* Override any gcc2 internal prototype to avoid an error. */
14023 /* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14026 /* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14032 char (*f) () = $ac_func;
14041 return f != $ac_func;
14046 rm -f conftest.
$ac_objext conftest
$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14050 grep -v '^ *+' conftest.er1
>conftest.err
14052 cat conftest.err
>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; } &&
14061 { ac_try
='test -s 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 eval "$as_ac_var=yes"
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.
$ac_ext >&5
14072 eval "$as_ac_var=no"
14074 rm -f conftest.err conftest.
$ac_objext \
14075 conftest
$ac_exeext conftest.
$ac_ext
14077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14079 if test `eval echo '${'$as_ac_var'}'` = yes; then
14080 cat >>confdefs.h
<<_ACEOF
14081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14089 for ac_header
in sys
/un.h
14091 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14093 echo "$as_me:$LINENO: checking for $ac_header" >&5
14094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14101 # Is the header compilable?
14102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14104 cat >conftest.
$ac_ext <<_ACEOF
14107 cat confdefs.h
>>conftest.
$ac_ext
14108 cat >>conftest.
$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 $ac_includes_default
14111 #include <$ac_header>
14113 rm -f conftest.
$ac_objext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14115 (eval $ac_compile) 2>conftest.er1
14117 grep -v '^ *+' conftest.er1
>conftest.err
14119 cat conftest.err
>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try
='test -s conftest.$ac_objext'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_header_compiler
=yes
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.
$ac_ext >&5
14139 ac_header_compiler
=no
14141 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14143 echo "${ECHO_T}$ac_header_compiler" >&6
14145 # Is the header present?
14146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14148 cat >conftest.
$ac_ext <<_ACEOF
14151 cat confdefs.h
>>conftest.
$ac_ext
14152 cat >>conftest.
$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 #include <$ac_header>
14156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14157 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14159 grep -v '^ *+' conftest.er1
>conftest.err
14161 cat conftest.err
>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } >/dev
/null
; then
14164 if test -s conftest.err
; then
14165 ac_cpp_err
=$ac_c_preproc_warn_flag
14166 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14173 if test -z "$ac_cpp_err"; then
14174 ac_header_preproc
=yes
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.
$ac_ext >&5
14179 ac_header_preproc
=no
14181 rm -f conftest.err conftest.
$ac_ext
14182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14183 echo "${ECHO_T}$ac_header_preproc" >&6
14185 # So? What about this header?
14186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14192 ac_header_preproc
=yes
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14209 ## ------------------------------------------ ##
14210 ## Report this to the AC_PACKAGE_NAME lists. ##
14211 ## ------------------------------------------ ##
14214 sed "s/^/$as_me: WARNING: /" >&2
14217 echo "$as_me:$LINENO: checking for $ac_header" >&5
14218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 eval "$as_ac_Header=\$ac_header_preproc"
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14229 cat >>confdefs.h
<<_ACEOF
14230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14241 for ac_header
in stdlib.h sys
/time.h unistd.h
14243 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14253 # Is the header compilable?
14254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14256 cat >conftest.
$ac_ext <<_ACEOF
14259 cat confdefs.h
>>conftest.
$ac_ext
14260 cat >>conftest.
$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 $ac_includes_default
14263 #include <$ac_header>
14265 rm -f conftest.
$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14269 grep -v '^ *+' conftest.er1
>conftest.err
14271 cat conftest.err
>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try
='test -s conftest.$ac_objext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_header_compiler
=yes
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.
$ac_ext >&5
14291 ac_header_compiler
=no
14293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14295 echo "${ECHO_T}$ac_header_compiler" >&6
14297 # Is the header present?
14298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14300 cat >conftest.
$ac_ext <<_ACEOF
14303 cat confdefs.h
>>conftest.
$ac_ext
14304 cat >>conftest.
$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #include <$ac_header>
14308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14309 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14311 grep -v '^ *+' conftest.er1
>conftest.err
14313 cat conftest.err
>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } >/dev
/null
; then
14316 if test -s conftest.err
; then
14317 ac_cpp_err
=$ac_c_preproc_warn_flag
14318 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14325 if test -z "$ac_cpp_err"; then
14326 ac_header_preproc
=yes
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.
$ac_ext >&5
14331 ac_header_preproc
=no
14333 rm -f conftest.err conftest.
$ac_ext
14334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14335 echo "${ECHO_T}$ac_header_preproc" >&6
14337 # So? What about this header?
14338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14344 ac_header_preproc
=yes
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14361 ## ------------------------------------------ ##
14362 ## Report this to the AC_PACKAGE_NAME lists. ##
14363 ## ------------------------------------------ ##
14366 sed "s/^/$as_me: WARNING: /" >&2
14369 echo "$as_me:$LINENO: checking for $ac_header" >&5
14370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 eval "$as_ac_Header=\$ac_header_preproc"
14376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14381 cat >>confdefs.h
<<_ACEOF
14382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14390 for ac_func
in alarm
14392 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393 echo "$as_me:$LINENO: checking for $ac_func" >&5
14394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14395 if eval "test \"\${$as_ac_var+set}\" = set"; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 cat >conftest.
$ac_ext <<_ACEOF
14401 cat confdefs.h
>>conftest.
$ac_ext
14402 cat >>conftest.
$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14406 #define $ac_func innocuous_$ac_func
14408 /* System header to define __stub macros and hopefully few prototypes,
14409 which can conflict with char $ac_func (); below.
14410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411 <limits.h> exists even on freestanding compilers. */
14414 # include <limits.h>
14416 # include <assert.h>
14421 /* Override any gcc2 internal prototype to avoid an error. */
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14429 /* The GNU C library defines this for functions which it implements
14430 to always fail with ENOSYS. Some functions are actually named
14431 something starting with __ and the normal name is an alias. */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14435 char (*f) () = $ac_func;
14444 return f != $ac_func;
14449 rm -f conftest.
$ac_objext conftest
$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>conftest.er1
14453 grep -v '^ *+' conftest.er1
>conftest.err
14455 cat conftest.err
>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try
='test -s conftest$ac_exeext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 eval "$as_ac_var=yes"
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.
$ac_ext >&5
14475 eval "$as_ac_var=no"
14477 rm -f conftest.err conftest.
$ac_objext \
14478 conftest
$ac_exeext conftest.
$ac_ext
14480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14482 if test `eval echo '${'$as_ac_var'}'` = yes; then
14483 cat >>confdefs.h
<<_ACEOF
14484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14490 echo "$as_me:$LINENO: checking for working mktime" >&5
14491 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14492 if test "${ac_cv_func_working_mktime+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 if test "$cross_compiling" = yes; then
14496 ac_cv_func_working_mktime
=no
14498 cat >conftest.
$ac_ext <<_ACEOF
14501 cat confdefs.h
>>conftest.
$ac_ext
14502 cat >>conftest.
$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 /* Test program from Paul Eggert and Tony Leneis. */
14505 #if TIME_WITH_SYS_TIME
14506 # include <sys/time.h>
14509 # if HAVE_SYS_TIME_H
14510 # include <sys/time.h>
14517 # include <stdlib.h>
14521 # include <unistd.h>
14525 # define alarm(X) /* empty */
14528 /* Work around redefinition to rpl_putenv by other config tests. */
14531 static time_t time_t_max;
14532 static time_t time_t_min;
14534 /* Values we'll use to set the TZ environment variable. */
14535 static char *tz_strings[] = {
14536 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14537 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14539 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14541 /* Fail if mktime fails to convert a date in the spring-forward gap.
14542 Based on a problem report from Andreas Jaeger. */
14544 spring_forward_gap ()
14546 /* glibc (up to about 1998-10-07) failed this test. */
14549 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14550 instead of "TZ=America/Vancouver" in order to detect the bug even
14551 on systems that don't support the Olson extension, or don't have the
14552 full zoneinfo tables installed. */
14553 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14562 if (mktime (&tm) == (time_t)-1)
14571 if ((lt = localtime (&now)) && mktime (lt) != now)
14579 mktime_test1 (now);
14580 mktime_test1 ((time_t) (time_t_max - now));
14581 mktime_test1 ((time_t) (time_t_min + now));
14587 /* Based on code from Ariel Faigon. */
14597 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14607 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14608 now = mktime (&tm);
14609 if (now != (time_t) -1)
14611 struct tm *lt = localtime (&now);
14613 && lt->tm_year == tm.tm_year
14614 && lt->tm_mon == tm.tm_mon
14615 && lt->tm_mday == tm.tm_mday
14616 && lt->tm_hour == tm.tm_hour
14617 && lt->tm_min == tm.tm_min
14618 && lt->tm_sec == tm.tm_sec
14619 && lt->tm_yday == tm.tm_yday
14620 && lt->tm_wday == tm.tm_wday
14621 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14622 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14633 /* This test makes some buggy mktime implementations loop.
14634 Give up after 60 seconds; a mktime slower than that
14635 isn't worth using anyway. */
14638 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14641 if ((time_t) -1 < 0)
14642 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14644 delta = time_t_max / 997; /* a suitable prime number */
14645 for (i = 0; i < N_STRINGS; i++)
14648 putenv (tz_strings[i]);
14650 for (t = 0; t <= time_t_max - delta; t += delta)
14652 mktime_test ((time_t) 1);
14653 mktime_test ((time_t) (60 * 60));
14654 mktime_test ((time_t) (60 * 60 * 24));
14656 for (j = 1; 0 < j; j *= 2)
14658 bigtime_test (j - 1);
14661 spring_forward_gap ();
14665 rm -f conftest
$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_func_working_mktime
=yes
14678 echo "$as_me: program exited with status $ac_status" >&5
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.
$ac_ext >&5
14682 ( exit $ac_status )
14683 ac_cv_func_working_mktime
=no
14685 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14688 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14689 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14690 if test $ac_cv_func_working_mktime = no
; then
14692 "mktime.$ac_objext" | \
14693 *" mktime.$ac_objext" | \
14694 "mktime.$ac_objext "* | \
14695 *" mktime.$ac_objext "* ) ;;
14696 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14701 if test "$ac_cv_func_working_mktime" = no
; then
14703 cat >>confdefs.h
<<\_ACEOF
14704 #define BROKEN_MKTIME 1
14709 ac_have_func
=no
# yes means we've found a way to get the load average.
14711 # Make sure getloadavg.c is where it belongs, at configure-time.
14712 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14713 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14714 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14715 { (exit 1); exit 1; }; }
14719 # Check for getloadavg, but be sure not to touch the cache variable.
14720 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14721 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14722 if test "${ac_cv_func_getloadavg+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 cat >conftest.
$ac_ext <<_ACEOF
14728 cat confdefs.h
>>conftest.
$ac_ext
14729 cat >>conftest.
$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14733 #define getloadavg innocuous_getloadavg
14735 /* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char getloadavg (); below.
14737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14738 <limits.h> exists even on freestanding compilers. */
14741 # include <limits.h>
14743 # include <assert.h>
14748 /* Override any gcc2 internal prototype to avoid an error. */
14753 /* We use char because int might match the return type of a gcc2
14754 builtin and then its argument prototype would still apply. */
14755 char getloadavg ();
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14762 char (*f) () = getloadavg;
14771 return f != getloadavg;
14776 rm -f conftest.
$ac_objext conftest
$ac_exeext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14778 (eval $ac_link) 2>conftest.er1
14780 grep -v '^ *+' conftest.er1
>conftest.err
14782 cat conftest.err
>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try
='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_func_getloadavg
=yes
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.
$ac_ext >&5
14802 ac_cv_func_getloadavg
=no
14804 rm -f conftest.err conftest.
$ac_objext \
14805 conftest
$ac_exeext conftest.
$ac_ext
14807 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14808 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14809 if test $ac_cv_func_getloadavg = yes; then
14814 ) && ac_have_func
=yes
14816 # On HPUX9, an unprivileged user can get load averages through this function.
14818 for ac_func
in pstat_getdynamic
14820 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14821 echo "$as_me:$LINENO: checking for $ac_func" >&5
14822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14823 if eval "test \"\${$as_ac_var+set}\" = set"; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 cat >conftest.
$ac_ext <<_ACEOF
14829 cat confdefs.h
>>conftest.
$ac_ext
14830 cat >>conftest.
$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14834 #define $ac_func innocuous_$ac_func
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below.
14838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839 <limits.h> exists even on freestanding compilers. */
14842 # include <limits.h>
14844 # include <assert.h>
14849 /* Override any gcc2 internal prototype to avoid an error. */
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14863 char (*f) () = $ac_func;
14872 return f != $ac_func;
14877 rm -f conftest.
$ac_objext conftest
$ac_exeext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879 (eval $ac_link) 2>conftest.er1
14881 grep -v '^ *+' conftest.er1
>conftest.err
14883 cat conftest.err
>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; } &&
14892 { ac_try
='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 eval "$as_ac_var=yes"
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.
$ac_ext >&5
14903 eval "$as_ac_var=no"
14905 rm -f conftest.err conftest.
$ac_objext \
14906 conftest
$ac_exeext conftest.
$ac_ext
14908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14910 if test `eval echo '${'$as_ac_var'}'` = yes; then
14911 cat >>confdefs.h
<<_ACEOF
14912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14919 # Solaris has libkstat which does not require root.
14921 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14922 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14923 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 ac_check_lib_save_LIBS
=$LIBS
14927 LIBS
="-lkstat $LIBS"
14928 cat >conftest.
$ac_ext <<_ACEOF
14931 cat confdefs.h
>>conftest.
$ac_ext
14932 cat >>conftest.
$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14935 /* Override any gcc2 internal prototype to avoid an error. */
14939 /* We use char because int might match the return type of a gcc2
14940 builtin and then its argument prototype would still apply. */
14941 char kstat_open ();
14950 rm -f conftest.
$ac_objext conftest
$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952 (eval $ac_link) 2>conftest.er1
14954 grep -v '^ *+' conftest.er1
>conftest.err
14956 cat conftest.err
>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try
='test -s conftest$ac_exeext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_cv_lib_kstat_kstat_open
=yes
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.
$ac_ext >&5
14976 ac_cv_lib_kstat_kstat_open
=no
14978 rm -f conftest.err conftest.
$ac_objext \
14979 conftest
$ac_exeext conftest.
$ac_ext
14980 LIBS
=$ac_check_lib_save_LIBS
14982 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14983 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14984 if test $ac_cv_lib_kstat_kstat_open = yes; then
14985 cat >>confdefs.h
<<_ACEOF
14986 #define HAVE_LIBKSTAT 1
14989 LIBS
="-lkstat $LIBS"
14993 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14995 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14996 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14997 # to get the right answer into the cache.
14998 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14999 if test $ac_have_func = no
; then
15000 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15001 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15002 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 ac_check_lib_save_LIBS
=$LIBS
15007 cat >conftest.
$ac_ext <<_ACEOF
15010 cat confdefs.h
>>conftest.
$ac_ext
15011 cat >>conftest.
$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15014 /* Override any gcc2 internal prototype to avoid an error. */
15018 /* We use char because int might match the return type of a gcc2
15019 builtin and then its argument prototype would still apply. */
15029 rm -f conftest.
$ac_objext conftest
$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>conftest.er1
15033 grep -v '^ *+' conftest.er1
>conftest.err
15035 cat conftest.err
>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try
='test -s conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_cv_lib_elf_elf_begin
=yes
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.
$ac_ext >&5
15055 ac_cv_lib_elf_elf_begin
=no
15057 rm -f conftest.err conftest.
$ac_objext \
15058 conftest
$ac_exeext conftest.
$ac_ext
15059 LIBS
=$ac_check_lib_save_LIBS
15061 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15062 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15063 if test $ac_cv_lib_elf_elf_begin = yes; then
15068 if test $ac_have_func = no
; then
15069 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15070 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15071 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 ac_check_lib_save_LIBS
=$LIBS
15076 cat >conftest.
$ac_ext <<_ACEOF
15079 cat confdefs.h
>>conftest.
$ac_ext
15080 cat >>conftest.
$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 /* Override any gcc2 internal prototype to avoid an error. */
15087 /* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15098 rm -f conftest.
$ac_objext conftest
$ac_exeext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100 (eval $ac_link) 2>conftest.er1
15102 grep -v '^ *+' conftest.er1
>conftest.err
15104 cat conftest.err
>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try
='test -s conftest$ac_exeext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_cv_lib_kvm_kvm_open
=yes
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.
$ac_ext >&5
15124 ac_cv_lib_kvm_kvm_open
=no
15126 rm -f conftest.err conftest.
$ac_objext \
15127 conftest
$ac_exeext conftest.
$ac_ext
15128 LIBS
=$ac_check_lib_save_LIBS
15130 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15131 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15132 if test $ac_cv_lib_kvm_kvm_open = yes; then
15136 # Check for the 4.4BSD definition of getloadavg.
15137 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15138 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15139 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 ac_check_lib_save_LIBS
=$LIBS
15143 LIBS
="-lutil $LIBS"
15144 cat >conftest.
$ac_ext <<_ACEOF
15147 cat confdefs.h
>>conftest.
$ac_ext
15148 cat >>conftest.
$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 /* Override any gcc2 internal prototype to avoid an error. */
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15157 char getloadavg ();
15166 rm -f conftest.
$ac_objext conftest
$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>conftest.er1
15170 grep -v '^ *+' conftest.er1
>conftest.err
15172 cat conftest.err
>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try
='test -s conftest$ac_exeext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_lib_util_getloadavg
=yes
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.
$ac_ext >&5
15192 ac_cv_lib_util_getloadavg
=no
15194 rm -f conftest.err conftest.
$ac_objext \
15195 conftest
$ac_exeext conftest.
$ac_ext
15196 LIBS
=$ac_check_lib_save_LIBS
15198 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15199 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15200 if test $ac_cv_lib_util_getloadavg = yes; then
15201 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15206 if test $ac_have_func = no
; then
15207 # There is a commonly available library for RS/6000 AIX.
15208 # Since it is not a standard part of AIX, it might be installed locally.
15209 ac_getloadavg_LIBS
=$LIBS
15210 LIBS
="-L/usr/local/lib $LIBS"
15211 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15212 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15213 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 ac_check_lib_save_LIBS
=$LIBS
15217 LIBS
="-lgetloadavg $LIBS"
15218 cat >conftest.
$ac_ext <<_ACEOF
15221 cat confdefs.h
>>conftest.
$ac_ext
15222 cat >>conftest.
$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15225 /* Override any gcc2 internal prototype to avoid an error. */
15229 /* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */
15231 char getloadavg ();
15240 rm -f conftest.
$ac_objext conftest
$ac_exeext
15241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15242 (eval $ac_link) 2>conftest.er1
15244 grep -v '^ *+' conftest.er1
>conftest.err
15246 cat conftest.err
>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try
='test -s conftest$ac_exeext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_lib_getloadavg_getloadavg
=yes
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.
$ac_ext >&5
15266 ac_cv_lib_getloadavg_getloadavg
=no
15268 rm -f conftest.err conftest.
$ac_objext \
15269 conftest
$ac_exeext conftest.
$ac_ext
15270 LIBS
=$ac_check_lib_save_LIBS
15272 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15273 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15274 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15275 LIBS
="-lgetloadavg $LIBS"
15277 LIBS
=$ac_getloadavg_LIBS
15282 # Make sure it is really in the library, if we think we found it,
15283 # otherwise set up the replacement function.
15285 for ac_func
in getloadavg
15287 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15288 echo "$as_me:$LINENO: checking for $ac_func" >&5
15289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15290 if eval "test \"\${$as_ac_var+set}\" = set"; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 cat >conftest.
$ac_ext <<_ACEOF
15296 cat confdefs.h
>>conftest.
$ac_ext
15297 cat >>conftest.
$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15301 #define $ac_func innocuous_$ac_func
15303 /* System header to define __stub macros and hopefully few prototypes,
15304 which can conflict with char $ac_func (); below.
15305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15306 <limits.h> exists even on freestanding compilers. */
15309 # include <limits.h>
15311 # include <assert.h>
15316 /* Override any gcc2 internal prototype to avoid an error. */
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15324 /* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15330 char (*f) () = $ac_func;
15339 return f != $ac_func;
15344 rm -f conftest.
$ac_objext conftest
$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346 (eval $ac_link) 2>conftest.er1
15348 grep -v '^ *+' conftest.er1
>conftest.err
15350 cat conftest.err
>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try
='test -s conftest$ac_exeext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 eval "$as_ac_var=yes"
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.
$ac_ext >&5
15370 eval "$as_ac_var=no"
15372 rm -f conftest.err conftest.
$ac_objext \
15373 conftest
$ac_exeext conftest.
$ac_ext
15375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15377 if test `eval echo '${'$as_ac_var'}'` = yes; then
15378 cat >>confdefs.h
<<_ACEOF
15379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15384 "getloadavg.$ac_objext" | \
15385 *" getloadavg.$ac_objext" | \
15386 "getloadavg.$ac_objext "* | \
15387 *" getloadavg.$ac_objext "* ) ;;
15388 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15392 cat >>confdefs.h
<<\_ACEOF
15393 #define C_GETLOADAVG 1
15396 # Figure out what our getloadavg.c needs.
15398 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15399 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15400 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15401 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15405 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15407 # Is the header compilable?
15408 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15409 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15410 cat >conftest.
$ac_ext <<_ACEOF
15413 cat confdefs.h
>>conftest.
$ac_ext
15414 cat >>conftest.
$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 $ac_includes_default
15417 #include <sys/dg_sys_info.h>
15419 rm -f conftest.
$ac_objext
15420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15421 (eval $ac_compile) 2>conftest.er1
15423 grep -v '^ *+' conftest.er1
>conftest.err
15425 cat conftest.err
>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } &&
15434 { ac_try
='test -s conftest.$ac_objext'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 ac_header_compiler
=yes
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.
$ac_ext >&5
15445 ac_header_compiler
=no
15447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15449 echo "${ECHO_T}$ac_header_compiler" >&6
15451 # Is the header present?
15452 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15453 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15454 cat >conftest.
$ac_ext <<_ACEOF
15457 cat confdefs.h
>>conftest.
$ac_ext
15458 cat >>conftest.
$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <sys/dg_sys_info.h>
15462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15463 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15465 grep -v '^ *+' conftest.er1
>conftest.err
15467 cat conftest.err
>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } >/dev
/null
; then
15470 if test -s conftest.err
; then
15471 ac_cpp_err
=$ac_c_preproc_warn_flag
15472 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15479 if test -z "$ac_cpp_err"; then
15480 ac_header_preproc
=yes
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.
$ac_ext >&5
15485 ac_header_preproc
=no
15487 rm -f conftest.err conftest.
$ac_ext
15488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15489 echo "${ECHO_T}$ac_header_preproc" >&6
15491 # So? What about this header?
15492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15495 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15497 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15498 ac_header_preproc
=yes
15501 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15502 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15504 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15506 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15508 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15510 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15512 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15515 ## ------------------------------------------ ##
15516 ## Report this to the AC_PACKAGE_NAME lists. ##
15517 ## ------------------------------------------ ##
15520 sed "s/^/$as_me: WARNING: /" >&2
15523 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15524 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15525 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15531 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15534 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15537 cat >>confdefs.h
<<\_ACEOF
15542 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15543 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15544 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 ac_check_lib_save_LIBS
=$LIBS
15549 cat >conftest.
$ac_ext <<_ACEOF
15552 cat confdefs.h
>>conftest.
$ac_ext
15553 cat >>conftest.
$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15556 /* Override any gcc2 internal prototype to avoid an error. */
15560 /* We use char because int might match the return type of a gcc2
15561 builtin and then its argument prototype would still apply. */
15562 char dg_sys_info ();
15571 rm -f conftest.
$ac_objext conftest
$ac_exeext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573 (eval $ac_link) 2>conftest.er1
15575 grep -v '^ *+' conftest.er1
>conftest.err
15577 cat conftest.err
>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try
='test -s conftest$ac_exeext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_cv_lib_dgc_dg_sys_info
=yes
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.
$ac_ext >&5
15597 ac_cv_lib_dgc_dg_sys_info
=no
15599 rm -f conftest.err conftest.
$ac_objext \
15600 conftest
$ac_exeext conftest.
$ac_ext
15601 LIBS
=$ac_check_lib_save_LIBS
15603 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15604 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15605 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15606 cat >>confdefs.h
<<_ACEOF
15607 #define HAVE_LIBDGC 1
15618 if test "${ac_cv_header_locale_h+set}" = set; then
15619 echo "$as_me:$LINENO: checking for locale.h" >&5
15620 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15621 if test "${ac_cv_header_locale_h+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15625 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15627 # Is the header compilable?
15628 echo "$as_me:$LINENO: checking locale.h usability" >&5
15629 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15630 cat >conftest.
$ac_ext <<_ACEOF
15633 cat confdefs.h
>>conftest.
$ac_ext
15634 cat >>conftest.
$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 $ac_includes_default
15637 #include <locale.h>
15639 rm -f conftest.
$ac_objext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>conftest.er1
15643 grep -v '^ *+' conftest.er1
>conftest.err
15645 cat conftest.err
>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; } &&
15654 { ac_try
='test -s conftest.$ac_objext'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_header_compiler
=yes
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.
$ac_ext >&5
15665 ac_header_compiler
=no
15667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15669 echo "${ECHO_T}$ac_header_compiler" >&6
15671 # Is the header present?
15672 echo "$as_me:$LINENO: checking locale.h presence" >&5
15673 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15674 cat >conftest.
$ac_ext <<_ACEOF
15677 cat confdefs.h
>>conftest.
$ac_ext
15678 cat >>conftest.
$ac_ext <<_ACEOF
15679 /* end confdefs.h. */
15680 #include <locale.h>
15682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15683 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15685 grep -v '^ *+' conftest.er1
>conftest.err
15687 cat conftest.err
>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } >/dev
/null
; then
15690 if test -s conftest.err
; then
15691 ac_cpp_err
=$ac_c_preproc_warn_flag
15692 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15699 if test -z "$ac_cpp_err"; then
15700 ac_header_preproc
=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.
$ac_ext >&5
15705 ac_header_preproc
=no
15707 rm -f conftest.err conftest.
$ac_ext
15708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6
15711 # So? What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15714 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15715 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15717 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15718 ac_header_preproc
=yes
15721 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15722 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15724 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15726 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15728 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15730 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15732 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15735 ## ------------------------------------------ ##
15736 ## Report this to the AC_PACKAGE_NAME lists. ##
15737 ## ------------------------------------------ ##
15740 sed "s/^/$as_me: WARNING: /" >&2
15743 echo "$as_me:$LINENO: checking for locale.h" >&5
15744 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15745 if test "${ac_cv_header_locale_h+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 ac_cv_header_locale_h
=$ac_header_preproc
15750 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15751 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15757 for ac_func
in setlocale
15759 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15760 echo "$as_me:$LINENO: checking for $ac_func" >&5
15761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15762 if eval "test \"\${$as_ac_var+set}\" = set"; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 cat >conftest.
$ac_ext <<_ACEOF
15768 cat confdefs.h
>>conftest.
$ac_ext
15769 cat >>conftest.
$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15773 #define $ac_func innocuous_$ac_func
15775 /* System header to define __stub macros and hopefully few prototypes,
15776 which can conflict with char $ac_func (); below.
15777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15778 <limits.h> exists even on freestanding compilers. */
15781 # include <limits.h>
15783 # include <assert.h>
15788 /* Override any gcc2 internal prototype to avoid an error. */
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15796 /* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15802 char (*f) () = $ac_func;
15811 return f != $ac_func;
15816 rm -f conftest.
$ac_objext conftest
$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>conftest.er1
15820 grep -v '^ *+' conftest.er1
>conftest.err
15822 cat conftest.err
>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try
='test -s conftest$ac_exeext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 eval "$as_ac_var=yes"
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.
$ac_ext >&5
15842 eval "$as_ac_var=no"
15844 rm -f conftest.err conftest.
$ac_objext \
15845 conftest
$ac_exeext conftest.
$ac_ext
15847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15849 if test `eval echo '${'$as_ac_var'}'` = yes; then
15850 cat >>confdefs.h
<<_ACEOF
15851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15858 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15859 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15860 # Irix 4.0.5F has the header but not the library.
15861 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15864 cat >>confdefs.h
<<\_ACEOF
15870 if test $ac_have_func = no
; then
15871 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15872 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15873 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15874 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15878 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15880 # Is the header compilable?
15881 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15882 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15883 cat >conftest.
$ac_ext <<_ACEOF
15886 cat confdefs.h
>>conftest.
$ac_ext
15887 cat >>conftest.
$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 $ac_includes_default
15890 #include <inq_stats/cpustats.h>
15892 rm -f conftest.
$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>conftest.er1
15896 grep -v '^ *+' conftest.er1
>conftest.err
15898 cat conftest.err
>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; } &&
15907 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
15913 ac_header_compiler
=yes
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.
$ac_ext >&5
15918 ac_header_compiler
=no
15920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15922 echo "${ECHO_T}$ac_header_compiler" >&6
15924 # Is the header present?
15925 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15926 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15927 cat >conftest.
$ac_ext <<_ACEOF
15930 cat confdefs.h
>>conftest.
$ac_ext
15931 cat >>conftest.
$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 #include <inq_stats/cpustats.h>
15935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15936 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15938 grep -v '^ *+' conftest.er1
>conftest.err
15940 cat conftest.err
>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } >/dev
/null
; then
15943 if test -s conftest.err
; then
15944 ac_cpp_err
=$ac_c_preproc_warn_flag
15945 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15952 if test -z "$ac_cpp_err"; then
15953 ac_header_preproc
=yes
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.
$ac_ext >&5
15958 ac_header_preproc
=no
15960 rm -f conftest.err conftest.
$ac_ext
15961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15962 echo "${ECHO_T}$ac_header_preproc" >&6
15964 # So? What about this header?
15965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15967 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15968 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15970 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15971 ac_header_preproc
=yes
15974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15975 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15977 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15979 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15981 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15983 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15985 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15988 ## ------------------------------------------ ##
15989 ## Report this to the AC_PACKAGE_NAME lists. ##
15990 ## ------------------------------------------ ##
15993 sed "s/^/$as_me: WARNING: /" >&2
15996 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15997 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15998 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16003 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16004 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16007 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16010 cat >>confdefs.h
<<\_ACEOF
16015 cat >>confdefs.h
<<\_ACEOF
16024 if test $ac_have_func = no
; then
16025 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16026 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16027 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16028 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16032 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16034 # Is the header compilable?
16035 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16036 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16037 cat >conftest.
$ac_ext <<_ACEOF
16040 cat confdefs.h
>>conftest.
$ac_ext
16041 cat >>conftest.
$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <sys/cpustats.h>
16046 rm -f conftest.
$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>conftest.er1
16050 grep -v '^ *+' conftest.er1
>conftest.err
16052 cat conftest.err
>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try
='test -s conftest.$ac_objext'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_header_compiler
=yes
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.
$ac_ext >&5
16072 ac_header_compiler
=no
16074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 echo "${ECHO_T}$ac_header_compiler" >&6
16078 # Is the header present?
16079 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16080 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16081 cat >conftest.
$ac_ext <<_ACEOF
16084 cat confdefs.h
>>conftest.
$ac_ext
16085 cat >>conftest.
$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <sys/cpustats.h>
16089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16090 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16092 grep -v '^ *+' conftest.er1
>conftest.err
16094 cat conftest.err
>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } >/dev
/null
; then
16097 if test -s conftest.err
; then
16098 ac_cpp_err
=$ac_c_preproc_warn_flag
16099 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16106 if test -z "$ac_cpp_err"; then
16107 ac_header_preproc
=yes
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.
$ac_ext >&5
16112 ac_header_preproc
=no
16114 rm -f conftest.err conftest.
$ac_ext
16115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116 echo "${ECHO_T}$ac_header_preproc" >&6
16118 # So? What about this header?
16119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16122 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc
=yes
16128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16129 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16131 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16133 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16135 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16137 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16139 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16142 ## ------------------------------------------ ##
16143 ## Report this to the AC_PACKAGE_NAME lists. ##
16144 ## ------------------------------------------ ##
16147 sed "s/^/$as_me: WARNING: /" >&2
16150 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16151 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16152 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16158 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16161 if test $ac_cv_header_sys_cpustats_h = yes; then
16162 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16171 if test $ac_have_func = no
; then
16173 for ac_header
in mach
/mach.h
16175 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16177 echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16185 # Is the header compilable?
16186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16188 cat >conftest.
$ac_ext <<_ACEOF
16191 cat confdefs.h
>>conftest.
$ac_ext
16192 cat >>conftest.
$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 $ac_includes_default
16195 #include <$ac_header>
16197 rm -f conftest.
$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>conftest.er1
16201 grep -v '^ *+' conftest.er1
>conftest.err
16203 cat conftest.err
>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try
='test -s conftest.$ac_objext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_header_compiler
=yes
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.
$ac_ext >&5
16223 ac_header_compiler
=no
16225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16227 echo "${ECHO_T}$ac_header_compiler" >&6
16229 # Is the header present?
16230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16232 cat >conftest.
$ac_ext <<_ACEOF
16235 cat confdefs.h
>>conftest.
$ac_ext
16236 cat >>conftest.
$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 #include <$ac_header>
16240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16243 grep -v '^ *+' conftest.er1
>conftest.err
16245 cat conftest.err
>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } >/dev
/null
; then
16248 if test -s conftest.err
; then
16249 ac_cpp_err
=$ac_c_preproc_warn_flag
16250 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16257 if test -z "$ac_cpp_err"; then
16258 ac_header_preproc
=yes
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.
$ac_ext >&5
16263 ac_header_preproc
=no
16265 rm -f conftest.err conftest.
$ac_ext
16266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16267 echo "${ECHO_T}$ac_header_preproc" >&6
16269 # So? What about this header?
16270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16276 ac_header_preproc
=yes
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16293 ## ------------------------------------------ ##
16294 ## Report this to the AC_PACKAGE_NAME lists. ##
16295 ## ------------------------------------------ ##
16298 sed "s/^/$as_me: WARNING: /" >&2
16301 echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 eval "$as_ac_Header=\$ac_header_preproc"
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313 cat >>confdefs.h
<<_ACEOF
16314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16324 for ac_header
in nlist.h
16326 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16328 echo "$as_me:$LINENO: checking for $ac_header" >&5
16329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16336 # Is the header compilable?
16337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16339 cat >conftest.
$ac_ext <<_ACEOF
16342 cat confdefs.h
>>conftest.
$ac_ext
16343 cat >>conftest.
$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 #include <$ac_header>
16348 rm -f conftest.
$ac_objext
16349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350 (eval $ac_compile) 2>conftest.er1
16352 grep -v '^ *+' conftest.er1
>conftest.err
16354 cat conftest.err
>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try
='test -s conftest.$ac_objext'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_header_compiler
=yes
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.
$ac_ext >&5
16374 ac_header_compiler
=no
16376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378 echo "${ECHO_T}$ac_header_compiler" >&6
16380 # Is the header present?
16381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16383 cat >conftest.
$ac_ext <<_ACEOF
16386 cat confdefs.h
>>conftest.
$ac_ext
16387 cat >>conftest.
$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <$ac_header>
16391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16392 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16394 grep -v '^ *+' conftest.er1
>conftest.err
16396 cat conftest.err
>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } >/dev
/null
; then
16399 if test -s conftest.err
; then
16400 ac_cpp_err
=$ac_c_preproc_warn_flag
16401 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16408 if test -z "$ac_cpp_err"; then
16409 ac_header_preproc
=yes
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.
$ac_ext >&5
16414 ac_header_preproc
=no
16416 rm -f conftest.err conftest.
$ac_ext
16417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16418 echo "${ECHO_T}$ac_header_preproc" >&6
16420 # So? What about this header?
16421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16427 ac_header_preproc
=yes
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16444 ## ------------------------------------------ ##
16445 ## Report this to the AC_PACKAGE_NAME lists. ##
16446 ## ------------------------------------------ ##
16449 sed "s/^/$as_me: WARNING: /" >&2
16452 echo "$as_me:$LINENO: checking for $ac_header" >&5
16453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 eval "$as_ac_Header=\$ac_header_preproc"
16459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16464 cat >>confdefs.h
<<_ACEOF
16465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16467 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16468 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16469 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 cat >conftest.
$ac_ext <<_ACEOF
16475 cat confdefs.h
>>conftest.
$ac_ext
16476 cat >>conftest.
$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16483 static struct nlist ac_aggr;
16484 if (ac_aggr.n_un.n_name)
16490 rm -f conftest.
$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>conftest.er1
16494 grep -v '^ *+' conftest.er1
>conftest.err
16496 cat conftest.err
>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try
='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_member_struct_nlist_n_un_n_name
=yes
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.
$ac_ext >&5
16516 cat >conftest.
$ac_ext <<_ACEOF
16519 cat confdefs.h
>>conftest.
$ac_ext
16520 cat >>conftest.
$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16527 static struct nlist ac_aggr;
16528 if (sizeof ac_aggr.n_un.n_name)
16534 rm -f conftest.
$ac_objext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16536 (eval $ac_compile) 2>conftest.er1
16538 grep -v '^ *+' conftest.er1
>conftest.err
16540 cat conftest.err
>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try
='test -s conftest.$ac_objext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_member_struct_nlist_n_un_n_name
=yes
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.
$ac_ext >&5
16560 ac_cv_member_struct_nlist_n_un_n_name
=no
16562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16566 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16567 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16568 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16570 cat >>confdefs.h
<<_ACEOF
16571 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16575 cat >>confdefs.h
<<\_ACEOF
16576 #define NLIST_NAME_UNION 1
16590 # Some definitions of getloadavg require that the program be installed setgid.
16591 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16592 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16593 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 cat >conftest.
$ac_ext <<_ACEOF
16599 cat confdefs.h
>>conftest.
$ac_ext
16600 cat >>conftest.
$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16603 #ifdef LDAV_PRIVILEGED
16604 Yowza Am I SETGID yet
16607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16608 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16609 ac_cv_func_getloadavg_setgid
=yes
16611 ac_cv_func_getloadavg_setgid
=no
16616 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16617 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16618 if test $ac_cv_func_getloadavg_setgid = yes; then
16621 cat >>confdefs.h
<<\_ACEOF
16622 #define GETLOADAVG_PRIVILEGED 1
16629 if test $ac_cv_func_getloadavg_setgid = yes; then
16630 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16631 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16632 if test "${ac_cv_group_kmem+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16636 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16637 # If we got an error (system does not support symlinks), try without -L.
16638 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16639 ac_cv_group_kmem
=`echo $ac_ls_output \
16640 | sed -ne 's/[ ][ ]*/ /g;
16641 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16645 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16646 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16647 KMEM_GROUP
=$ac_cv_group_kmem
16649 if test "x$ac_save_LIBS" = x
; then
16650 GETLOADAVG_LIBS
=$LIBS
16652 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16658 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16659 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16660 if test "${ac_cv_sys_largefile_source+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 ac_cv_sys_largefile_source
=no
16665 cat >conftest.
$ac_ext <<_ACEOF
16668 cat confdefs.h
>>conftest.
$ac_ext
16669 cat >>conftest.
$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16680 rm -f conftest.
$ac_objext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16682 (eval $ac_compile) 2>conftest.er1
16684 grep -v '^ *+' conftest.er1
>conftest.err
16686 cat conftest.err
>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try
='test -s conftest.$ac_objext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.
$ac_ext >&5
16707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16708 cat >conftest.
$ac_ext <<_ACEOF
16711 cat confdefs.h
>>conftest.
$ac_ext
16712 cat >>conftest.
$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #define _LARGEFILE_SOURCE 1
16724 rm -f conftest.
$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>conftest.er1
16728 grep -v '^ *+' conftest.er1
>conftest.err
16730 cat conftest.err
>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try
='test -s conftest.$ac_objext'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16745 ac_cv_sys_largefile_source
=1; break
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.
$ac_ext >&5
16751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16755 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16756 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16757 if test "$ac_cv_sys_largefile_source" != no
; then
16759 cat >>confdefs.h
<<_ACEOF
16760 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16766 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16767 # in glibc 2.1.3, but that breaks too many other things.
16768 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16769 echo "$as_me:$LINENO: checking for fseeko" >&5
16770 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16771 if test "${ac_cv_func_fseeko+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 cat >conftest.
$ac_ext <<_ACEOF
16777 cat confdefs.h
>>conftest.
$ac_ext
16778 cat >>conftest.
$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16784 return fseeko && fseeko (stdin, 0, 0);
16789 rm -f conftest.
$ac_objext conftest
$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791 (eval $ac_link) 2>conftest.er1
16793 grep -v '^ *+' conftest.er1
>conftest.err
16795 cat conftest.err
>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try
='test -s conftest$ac_exeext'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 ac_cv_func_fseeko
=yes
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.
$ac_ext >&5
16815 ac_cv_func_fseeko
=no
16817 rm -f conftest.err conftest.
$ac_objext \
16818 conftest
$ac_exeext conftest.
$ac_ext
16820 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16821 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16822 if test $ac_cv_func_fseeko = yes; then
16824 cat >>confdefs.h
<<\_ACEOF
16825 #define HAVE_FSEEKO 1
16831 # Configure getopt.
16832 # getopt.m4 serial 10
16834 # The getopt module assume you want GNU getopt, with getopt_long etc,
16835 # rather than vanilla POSIX getopt. This means your your code should
16836 # always include <getopt.h> for the getopt prototypes.
16848 # Prerequisites of lib/getopt*.
16854 for ac_header
in getopt.h
16856 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16858 echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16866 # Is the header compilable?
16867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16869 cat >conftest.
$ac_ext <<_ACEOF
16872 cat confdefs.h
>>conftest.
$ac_ext
16873 cat >>conftest.
$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 $ac_includes_default
16876 #include <$ac_header>
16878 rm -f conftest.
$ac_objext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880 (eval $ac_compile) 2>conftest.er1
16882 grep -v '^ *+' conftest.er1
>conftest.err
16884 cat conftest.err
>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try
='test -s conftest.$ac_objext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_header_compiler
=yes
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.
$ac_ext >&5
16904 ac_header_compiler
=no
16906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16908 echo "${ECHO_T}$ac_header_compiler" >&6
16910 # Is the header present?
16911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16913 cat >conftest.
$ac_ext <<_ACEOF
16916 cat confdefs.h
>>conftest.
$ac_ext
16917 cat >>conftest.
$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 #include <$ac_header>
16921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16922 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16924 grep -v '^ *+' conftest.er1
>conftest.err
16926 cat conftest.err
>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } >/dev
/null
; then
16929 if test -s conftest.err
; then
16930 ac_cpp_err
=$ac_c_preproc_warn_flag
16931 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16938 if test -z "$ac_cpp_err"; then
16939 ac_header_preproc
=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.
$ac_ext >&5
16944 ac_header_preproc
=no
16946 rm -f conftest.err conftest.
$ac_ext
16947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16948 echo "${ECHO_T}$ac_header_preproc" >&6
16950 # So? What about this header?
16951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16957 ac_header_preproc
=yes
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16974 ## ------------------------------------------ ##
16975 ## Report this to the AC_PACKAGE_NAME lists. ##
16976 ## ------------------------------------------ ##
16979 sed "s/^/$as_me: WARNING: /" >&2
16982 echo "$as_me:$LINENO: checking for $ac_header" >&5
16983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 eval "$as_ac_Header=\$ac_header_preproc"
16989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16994 cat >>confdefs.h
<<_ACEOF
16995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17004 if test -z "$GETOPT_H"; then
17006 for ac_func
in getopt_long_only
17008 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17009 echo "$as_me:$LINENO: checking for $ac_func" >&5
17010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17011 if eval "test \"\${$as_ac_var+set}\" = set"; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 cat >conftest.
$ac_ext <<_ACEOF
17017 cat confdefs.h
>>conftest.
$ac_ext
17018 cat >>conftest.
$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17022 #define $ac_func innocuous_$ac_func
17024 /* System header to define __stub macros and hopefully few prototypes,
17025 which can conflict with char $ac_func (); below.
17026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17027 <limits.h> exists even on freestanding compilers. */
17030 # include <limits.h>
17032 # include <assert.h>
17037 /* Override any gcc2 internal prototype to avoid an error. */
17042 /* We use char because int might match the return type of a gcc2
17043 builtin and then its argument prototype would still apply. */
17045 /* The GNU C library defines this for functions which it implements
17046 to always fail with ENOSYS. Some functions are actually named
17047 something starting with __ and the normal name is an alias. */
17048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17051 char (*f) () = $ac_func;
17060 return f != $ac_func;
17065 rm -f conftest.
$ac_objext conftest
$ac_exeext
17066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17067 (eval $ac_link) 2>conftest.er1
17069 grep -v '^ *+' conftest.er1
>conftest.err
17071 cat conftest.err
>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } &&
17074 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try
='test -s conftest$ac_exeext'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 eval "$as_ac_var=yes"
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.
$ac_ext >&5
17091 eval "$as_ac_var=no"
17093 rm -f conftest.err conftest.
$ac_objext \
17094 conftest
$ac_exeext conftest.
$ac_ext
17096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17098 if test `eval echo '${'$as_ac_var'}'` = yes; then
17099 cat >>confdefs.h
<<_ACEOF
17100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17110 if test -z "$GETOPT_H"; then
17111 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17112 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17113 if test "${ac_cv_have_decl_optreset+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 cat >conftest.
$ac_ext <<_ACEOF
17119 cat confdefs.h
>>conftest.
$ac_ext
17120 cat >>conftest.
$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 #include <getopt.h>
17128 char *p = (char *) optreset;
17135 rm -f conftest.
$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137 (eval $ac_compile) 2>conftest.er1
17139 grep -v '^ *+' conftest.er1
>conftest.err
17141 cat conftest.err
>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try
='test -s conftest.$ac_objext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_have_decl_optreset
=yes
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.
$ac_ext >&5
17161 ac_cv_have_decl_optreset
=no
17163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17165 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17166 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17167 if test $ac_cv_have_decl_optreset = yes; then
17173 if test -z "$GETOPT_H"; then
17174 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17175 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17176 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 if test "$cross_compiling" = yes; then
17180 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17181 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17182 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17185 cat >conftest.
$ac_ext <<_ACEOF
17188 cat confdefs.h
>>conftest.
$ac_ext
17189 cat >>conftest.
$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 #include <getopt.h>
17196 #ifndef getopt_clip
17197 char *p = (char *) getopt_clip;
17204 rm -f conftest.
$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>conftest.er1
17208 grep -v '^ *+' conftest.er1
>conftest.err
17210 cat conftest.err
>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try
='test -s conftest.$ac_objext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_have_decl_getopt_clip
=yes
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.
$ac_ext >&5
17230 ac_cv_have_decl_getopt_clip
=no
17232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17234 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17235 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17236 if test $ac_cv_have_decl_getopt_clip = yes; then
17237 gl_cv_func_gnu_getopt
=no
17239 gl_cv_func_gnu_getopt
=yes
17243 cat >conftest.
$ac_ext <<_ACEOF
17246 cat confdefs.h
>>conftest.
$ac_ext
17247 cat >>conftest.
$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17249 #include <getopt.h>
17255 myargv[0] = "conftest";
17258 return getopt (2, myargv, "+a") != '?';
17264 rm -f conftest
$ac_exeext
17265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17266 (eval $ac_link) 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 gl_cv_func_gnu_getopt
=yes
17277 echo "$as_me: program exited with status $ac_status" >&5
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.
$ac_ext >&5
17281 ( exit $ac_status )
17282 gl_cv_func_gnu_getopt
=no
17284 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17287 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17288 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17289 if test "$gl_cv_func_gnu_getopt" = "no"; then
17296 if test -n "$GETOPT_H"; then
17301 cat >>confdefs.h
<<\_ACEOF
17302 #define __GETOPT_PREFIX rpl_
17308 GETOPTOBJS
='getopt.o getopt1.o'
17315 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17316 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17317 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 # Use it with a single arg.
17321 cat >conftest.
$ac_ext <<_ACEOF
17324 cat confdefs.h
>>conftest.
$ac_ext
17325 cat >>conftest.
$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 $ac_includes_default
17336 rm -f conftest.
$ac_objext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17338 (eval $ac_compile) 2>conftest.er1
17340 grep -v '^ *+' conftest.er1
>conftest.err
17342 cat conftest.err
>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try
='test -s conftest.$ac_objext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_func_getpgrp_void
=no
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.
$ac_ext >&5
17362 ac_cv_func_getpgrp_void
=yes
17364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17367 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17368 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17369 if test $ac_cv_func_getpgrp_void = yes; then
17371 cat >>confdefs.h
<<\_ACEOF
17372 #define GETPGRP_VOID 1
17379 for ac_func
in strftime
17381 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17382 echo "$as_me:$LINENO: checking for $ac_func" >&5
17383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17384 if eval "test \"\${$as_ac_var+set}\" = set"; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17387 cat >conftest.
$ac_ext <<_ACEOF
17390 cat confdefs.h
>>conftest.
$ac_ext
17391 cat >>conftest.
$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17395 #define $ac_func innocuous_$ac_func
17397 /* System header to define __stub macros and hopefully few prototypes,
17398 which can conflict with char $ac_func (); below.
17399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17400 <limits.h> exists even on freestanding compilers. */
17403 # include <limits.h>
17405 # include <assert.h>
17410 /* Override any gcc2 internal prototype to avoid an error. */
17415 /* We use char because int might match the return type of a gcc2
17416 builtin and then its argument prototype would still apply. */
17418 /* The GNU C library defines this for functions which it implements
17419 to always fail with ENOSYS. Some functions are actually named
17420 something starting with __ and the normal name is an alias. */
17421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17424 char (*f) () = $ac_func;
17433 return f != $ac_func;
17438 rm -f conftest.
$ac_objext conftest
$ac_exeext
17439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17440 (eval $ac_link) 2>conftest.er1
17442 grep -v '^ *+' conftest.er1
>conftest.err
17444 cat conftest.err
>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); } &&
17447 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; } &&
17453 { ac_try
='test -s conftest$ac_exeext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 eval "$as_ac_var=yes"
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.
$ac_ext >&5
17464 eval "$as_ac_var=no"
17466 rm -f conftest.err conftest.
$ac_objext \
17467 conftest
$ac_exeext conftest.
$ac_ext
17469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17471 if test `eval echo '${'$as_ac_var'}'` = yes; then
17472 cat >>confdefs.h
<<_ACEOF
17473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17477 # strftime is in -lintl on SCO UNIX.
17478 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17479 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17480 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 ac_check_lib_save_LIBS
=$LIBS
17484 LIBS
="-lintl $LIBS"
17485 cat >conftest.
$ac_ext <<_ACEOF
17488 cat confdefs.h
>>conftest.
$ac_ext
17489 cat >>conftest.
$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17492 /* Override any gcc2 internal prototype to avoid an error. */
17496 /* We use char because int might match the return type of a gcc2
17497 builtin and then its argument prototype would still apply. */
17507 rm -f conftest.
$ac_objext conftest
$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>conftest.er1
17511 grep -v '^ *+' conftest.er1
>conftest.err
17513 cat conftest.err
>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
17516 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try
='test -s conftest$ac_exeext'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 ac_cv_lib_intl_strftime
=yes
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.
$ac_ext >&5
17533 ac_cv_lib_intl_strftime
=no
17535 rm -f conftest.err conftest.
$ac_objext \
17536 conftest
$ac_exeext conftest.
$ac_ext
17537 LIBS
=$ac_check_lib_save_LIBS
17539 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17540 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17541 if test $ac_cv_lib_intl_strftime = yes; then
17542 cat >>confdefs.h
<<\_ACEOF
17543 #define HAVE_STRFTIME 1
17546 LIBS
="-lintl $LIBS"
17555 for ac_func
in grantpt
17557 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17558 echo "$as_me:$LINENO: checking for $ac_func" >&5
17559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17560 if eval "test \"\${$as_ac_var+set}\" = set"; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 cat >conftest.
$ac_ext <<_ACEOF
17566 cat confdefs.h
>>conftest.
$ac_ext
17567 cat >>conftest.
$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17571 #define $ac_func innocuous_$ac_func
17573 /* System header to define __stub macros and hopefully few prototypes,
17574 which can conflict with char $ac_func (); below.
17575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17576 <limits.h> exists even on freestanding compilers. */
17579 # include <limits.h>
17581 # include <assert.h>
17586 /* Override any gcc2 internal prototype to avoid an error. */
17591 /* We use char because int might match the return type of a gcc2
17592 builtin and then its argument prototype would still apply. */
17594 /* The GNU C library defines this for functions which it implements
17595 to always fail with ENOSYS. Some functions are actually named
17596 something starting with __ and the normal name is an alias. */
17597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17600 char (*f) () = $ac_func;
17609 return f != $ac_func;
17614 rm -f conftest.
$ac_objext conftest
$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616 (eval $ac_link) 2>conftest.er1
17618 grep -v '^ *+' conftest.er1
>conftest.err
17620 cat conftest.err
>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try
='test -s conftest$ac_exeext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 eval "$as_ac_var=yes"
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.
$ac_ext >&5
17640 eval "$as_ac_var=no"
17642 rm -f conftest.err conftest.
$ac_objext \
17643 conftest
$ac_exeext conftest.
$ac_ext
17645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17647 if test `eval echo '${'$as_ac_var'}'` = yes; then
17648 cat >>confdefs.h
<<_ACEOF
17649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656 # PTY-related GNU extensions.
17658 for ac_func
in getpt
17660 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17661 echo "$as_me:$LINENO: checking for $ac_func" >&5
17662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17663 if eval "test \"\${$as_ac_var+set}\" = set"; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 cat >conftest.
$ac_ext <<_ACEOF
17669 cat confdefs.h
>>conftest.
$ac_ext
17670 cat >>conftest.
$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17674 #define $ac_func innocuous_$ac_func
17676 /* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char $ac_func (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17682 # include <limits.h>
17684 # include <assert.h>
17689 /* Override any gcc2 internal prototype to avoid an error. */
17694 /* We use char because int might match the return type of a gcc2
17695 builtin and then its argument prototype would still apply. */
17697 /* The GNU C library defines this for functions which it implements
17698 to always fail with ENOSYS. Some functions are actually named
17699 something starting with __ and the normal name is an alias. */
17700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17703 char (*f) () = $ac_func;
17712 return f != $ac_func;
17717 rm -f conftest.
$ac_objext conftest
$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17721 grep -v '^ *+' conftest.er1
>conftest.err
17723 cat conftest.err
>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try
='test -s conftest$ac_exeext'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 eval "$as_ac_var=yes"
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.
$ac_ext >&5
17743 eval "$as_ac_var=no"
17745 rm -f conftest.err conftest.
$ac_objext \
17746 conftest
$ac_exeext conftest.
$ac_ext
17748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17750 if test `eval echo '${'$as_ac_var'}'` = yes; then
17751 cat >>confdefs.h
<<_ACEOF
17752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17759 # Check this now, so that we will NOT find the above functions in ncurses.
17760 # That is because we have not set up to link ncurses in lib-src.
17761 # It's better to believe a function is not available
17762 # than to expect to find it in ncurses.
17764 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17765 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17766 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 ac_check_lib_save_LIBS
=$LIBS
17770 LIBS
="-lncurses $LIBS"
17771 cat >conftest.
$ac_ext <<_ACEOF
17774 cat confdefs.h
>>conftest.
$ac_ext
17775 cat >>conftest.
$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17778 /* Override any gcc2 internal prototype to avoid an error. */
17782 /* We use char because int might match the return type of a gcc2
17783 builtin and then its argument prototype would still apply. */
17793 rm -f conftest.
$ac_objext conftest
$ac_exeext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17795 (eval $ac_link) 2>conftest.er1
17797 grep -v '^ *+' conftest.er1
>conftest.err
17799 cat conftest.err
>&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try
='test -s conftest$ac_exeext'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_cv_lib_ncurses_tparm
=yes
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.
$ac_ext >&5
17819 ac_cv_lib_ncurses_tparm
=no
17821 rm -f conftest.err conftest.
$ac_objext \
17822 conftest
$ac_exeext conftest.
$ac_ext
17823 LIBS
=$ac_check_lib_save_LIBS
17825 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17826 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17827 if test $ac_cv_lib_ncurses_tparm = yes; then
17828 cat >>confdefs.h
<<_ACEOF
17829 #define HAVE_LIBNCURSES 1
17832 LIBS
="-lncurses $LIBS"
17837 # Do we need the Hesiod library to provide the support routines?
17838 if test "$with_hesiod" = yes ; then
17839 # Don't set $LIBS here -- see comments above.
17841 echo "$as_me:$LINENO: checking for res_send" >&5
17842 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17843 if test "${ac_cv_func_res_send+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 cat >conftest.
$ac_ext <<_ACEOF
17849 cat confdefs.h
>>conftest.
$ac_ext
17850 cat >>conftest.
$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17852 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17854 #define res_send innocuous_res_send
17856 /* System header to define __stub macros and hopefully few prototypes,
17857 which can conflict with char res_send (); below.
17858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17859 <limits.h> exists even on freestanding compilers. */
17862 # include <limits.h>
17864 # include <assert.h>
17869 /* Override any gcc2 internal prototype to avoid an error. */
17874 /* We use char because int might match the return type of a gcc2
17875 builtin and then its argument prototype would still apply. */
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined (__stub_res_send) || defined (__stub___res_send)
17883 char (*f) () = res_send;
17892 return f != res_send;
17897 rm -f conftest.
$ac_objext conftest
$ac_exeext
17898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17899 (eval $ac_link) 2>conftest.er1
17901 grep -v '^ *+' conftest.er1
>conftest.err
17903 cat conftest.err
>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try
='test -s conftest$ac_exeext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_func_res_send
=yes
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.
$ac_ext >&5
17923 ac_cv_func_res_send
=no
17925 rm -f conftest.err conftest.
$ac_objext \
17926 conftest
$ac_exeext conftest.
$ac_ext
17928 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17929 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17930 if test $ac_cv_func_res_send = yes; then
17933 echo "$as_me:$LINENO: checking for __res_send" >&5
17934 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17935 if test "${ac_cv_func___res_send+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 cat >conftest.
$ac_ext <<_ACEOF
17941 cat confdefs.h
>>conftest.
$ac_ext
17942 cat >>conftest.
$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17946 #define __res_send innocuous___res_send
17948 /* System header to define __stub macros and hopefully few prototypes,
17949 which can conflict with char __res_send (); below.
17950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17951 <limits.h> exists even on freestanding compilers. */
17954 # include <limits.h>
17956 # include <assert.h>
17961 /* Override any gcc2 internal prototype to avoid an error. */
17966 /* We use char because int might match the return type of a gcc2
17967 builtin and then its argument prototype would still apply. */
17968 char __res_send ();
17969 /* The GNU C library defines this for functions which it implements
17970 to always fail with ENOSYS. Some functions are actually named
17971 something starting with __ and the normal name is an alias. */
17972 #if defined (__stub___res_send) || defined (__stub_____res_send)
17975 char (*f) () = __res_send;
17984 return f != __res_send;
17989 rm -f conftest.
$ac_objext conftest
$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>conftest.er1
17993 grep -v '^ *+' conftest.er1
>conftest.err
17995 cat conftest.err
>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try
='test -s conftest$ac_exeext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ac_cv_func___res_send
=yes
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.
$ac_ext >&5
18015 ac_cv_func___res_send
=no
18017 rm -f conftest.err conftest.
$ac_objext \
18018 conftest
$ac_exeext conftest.
$ac_ext
18020 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18021 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18022 if test $ac_cv_func___res_send = yes; then
18025 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18026 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18027 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 ac_check_lib_save_LIBS
=$LIBS
18031 LIBS
="-lresolv $LIBS"
18032 cat >conftest.
$ac_ext <<_ACEOF
18035 cat confdefs.h
>>conftest.
$ac_ext
18036 cat >>conftest.
$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18039 /* Override any gcc2 internal prototype to avoid an error. */
18043 /* We use char because int might match the return type of a gcc2
18044 builtin and then its argument prototype would still apply. */
18054 rm -f conftest.
$ac_objext conftest
$ac_exeext
18055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18056 (eval $ac_link) 2>conftest.er1
18058 grep -v '^ *+' conftest.er1
>conftest.err
18060 cat conftest.err
>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
18063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
18075 ac_cv_lib_resolv_res_send
=yes
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.
$ac_ext >&5
18080 ac_cv_lib_resolv_res_send
=no
18082 rm -f conftest.err conftest.
$ac_objext \
18083 conftest
$ac_exeext conftest.
$ac_ext
18084 LIBS
=$ac_check_lib_save_LIBS
18086 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18087 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18088 if test $ac_cv_lib_resolv_res_send = yes; then
18091 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18092 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18093 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18096 ac_check_lib_save_LIBS
=$LIBS
18097 LIBS
="-lresolv $LIBS"
18098 cat >conftest.
$ac_ext <<_ACEOF
18101 cat confdefs.h
>>conftest.
$ac_ext
18102 cat >>conftest.
$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18105 /* Override any gcc2 internal prototype to avoid an error. */
18109 /* We use char because int might match the return type of a gcc2
18110 builtin and then its argument prototype would still apply. */
18111 char __res_send ();
18120 rm -f conftest.
$ac_objext conftest
$ac_exeext
18121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18122 (eval $ac_link) 2>conftest.er1
18124 grep -v '^ *+' conftest.er1
>conftest.err
18126 cat conftest.err
>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; } &&
18135 { ac_try
='test -s conftest$ac_exeext'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141 ac_cv_lib_resolv___res_send
=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.
$ac_ext >&5
18146 ac_cv_lib_resolv___res_send
=no
18148 rm -f conftest.err conftest.
$ac_objext \
18149 conftest
$ac_exeext conftest.
$ac_ext
18150 LIBS
=$ac_check_lib_save_LIBS
18152 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18153 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18154 if test $ac_cv_lib_resolv___res_send = yes; then
18164 if test "$resolv" = yes ; then
18167 cat >>confdefs.h
<<\_ACEOF
18168 #define HAVE_LIBRESOLV 1
18174 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18175 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18176 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 cat >conftest.
$ac_ext <<_ACEOF
18182 cat confdefs.h
>>conftest.
$ac_ext
18183 cat >>conftest.
$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18187 #define hes_getmailhost innocuous_hes_getmailhost
18189 /* System header to define __stub macros and hopefully few prototypes,
18190 which can conflict with char hes_getmailhost (); below.
18191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18192 <limits.h> exists even on freestanding compilers. */
18195 # include <limits.h>
18197 # include <assert.h>
18200 #undef hes_getmailhost
18202 /* Override any gcc2 internal prototype to avoid an error. */
18207 /* We use char because int might match the return type of a gcc2
18208 builtin and then its argument prototype would still apply. */
18209 char hes_getmailhost ();
18210 /* The GNU C library defines this for functions which it implements
18211 to always fail with ENOSYS. Some functions are actually named
18212 something starting with __ and the normal name is an alias. */
18213 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18216 char (*f) () = hes_getmailhost;
18225 return f != hes_getmailhost;
18230 rm -f conftest.
$ac_objext conftest
$ac_exeext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18232 (eval $ac_link) 2>conftest.er1
18234 grep -v '^ *+' conftest.er1
>conftest.err
18236 cat conftest.err
>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try
='test -s conftest$ac_exeext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_func_hes_getmailhost
=yes
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.
$ac_ext >&5
18256 ac_cv_func_hes_getmailhost
=no
18258 rm -f conftest.err conftest.
$ac_objext \
18259 conftest
$ac_exeext conftest.
$ac_ext
18261 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18262 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18263 if test $ac_cv_func_hes_getmailhost = yes; then
18266 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18267 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18268 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 ac_check_lib_save_LIBS
=$LIBS
18272 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18273 cat >conftest.
$ac_ext <<_ACEOF
18276 cat confdefs.h
>>conftest.
$ac_ext
18277 cat >>conftest.
$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18280 /* Override any gcc2 internal prototype to avoid an error. */
18284 /* We use char because int might match the return type of a gcc2
18285 builtin and then its argument prototype would still apply. */
18286 char hes_getmailhost ();
18290 hes_getmailhost ();
18295 rm -f conftest.
$ac_objext conftest
$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>conftest.er1
18299 grep -v '^ *+' conftest.er1
>conftest.err
18301 cat conftest.err
>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306 (eval $ac_try) 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; } &&
18310 { ac_try
='test -s conftest$ac_exeext'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316 ac_cv_lib_hesiod_hes_getmailhost
=yes
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.
$ac_ext >&5
18321 ac_cv_lib_hesiod_hes_getmailhost
=no
18323 rm -f conftest.err conftest.
$ac_objext \
18324 conftest
$ac_exeext conftest.
$ac_ext
18325 LIBS
=$ac_check_lib_save_LIBS
18327 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18328 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18329 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18331 cat >>confdefs.h
<<\_ACEOF
18332 #define HAVE_LIBHESIOD 1
18343 # These tell us which Kerberos-related libraries to use.
18344 if test "${with_kerberos+set}" = set; then
18346 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18347 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18348 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 ac_check_lib_save_LIBS
=$LIBS
18352 LIBS
="-lcom_err $LIBS"
18353 cat >conftest.
$ac_ext <<_ACEOF
18356 cat confdefs.h
>>conftest.
$ac_ext
18357 cat >>conftest.
$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18360 /* Override any gcc2 internal prototype to avoid an error. */
18364 /* We use char because int might match the return type of a gcc2
18365 builtin and then its argument prototype would still apply. */
18375 rm -f conftest.
$ac_objext conftest
$ac_exeext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>conftest.er1
18379 grep -v '^ *+' conftest.er1
>conftest.err
18381 cat conftest.err
>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try
='test -s conftest$ac_exeext'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_cv_lib_com_err_com_err
=yes
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.
$ac_ext >&5
18401 ac_cv_lib_com_err_com_err
=no
18403 rm -f conftest.err conftest.
$ac_objext \
18404 conftest
$ac_exeext conftest.
$ac_ext
18405 LIBS
=$ac_check_lib_save_LIBS
18407 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18408 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18409 if test $ac_cv_lib_com_err_com_err = yes; then
18410 cat >>confdefs.h
<<_ACEOF
18411 #define HAVE_LIBCOM_ERR 1
18414 LIBS
="-lcom_err $LIBS"
18419 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18420 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18421 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 ac_check_lib_save_LIBS
=$LIBS
18425 LIBS
="-lk5crypto $LIBS"
18426 cat >conftest.
$ac_ext <<_ACEOF
18429 cat confdefs.h
>>conftest.
$ac_ext
18430 cat >>conftest.
$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18433 /* Override any gcc2 internal prototype to avoid an error. */
18437 /* We use char because int might match the return type of a gcc2
18438 builtin and then its argument prototype would still apply. */
18439 char mit_des_cbc_encrypt ();
18443 mit_des_cbc_encrypt ();
18448 rm -f conftest.
$ac_objext conftest
$ac_exeext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18450 (eval $ac_link) 2>conftest.er1
18452 grep -v '^ *+' conftest.er1
>conftest.err
18454 cat conftest.err
>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try
='test -s conftest$ac_exeext'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.
$ac_ext >&5
18474 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18476 rm -f conftest.err conftest.
$ac_objext \
18477 conftest
$ac_exeext conftest.
$ac_ext
18478 LIBS
=$ac_check_lib_save_LIBS
18480 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18481 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18482 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18483 cat >>confdefs.h
<<_ACEOF
18484 #define HAVE_LIBK5CRYPTO 1
18487 LIBS
="-lk5crypto $LIBS"
18492 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18493 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18494 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 ac_check_lib_save_LIBS
=$LIBS
18498 LIBS
="-lcrypto $LIBS"
18499 cat >conftest.
$ac_ext <<_ACEOF
18502 cat confdefs.h
>>conftest.
$ac_ext
18503 cat >>conftest.
$ac_ext <<_ACEOF
18504 /* end confdefs.h. */
18506 /* Override any gcc2 internal prototype to avoid an error. */
18510 /* We use char because int might match the return type of a gcc2
18511 builtin and then its argument prototype would still apply. */
18512 char mit_des_cbc_encrypt ();
18516 mit_des_cbc_encrypt ();
18521 rm -f conftest.
$ac_objext conftest
$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18525 grep -v '^ *+' conftest.er1
>conftest.err
18527 cat conftest.err
>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try
='test -s conftest$ac_exeext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.
$ac_ext >&5
18547 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18549 rm -f conftest.err conftest.
$ac_objext \
18550 conftest
$ac_exeext conftest.
$ac_ext
18551 LIBS
=$ac_check_lib_save_LIBS
18553 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18554 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18555 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18556 cat >>confdefs.h
<<_ACEOF
18557 #define HAVE_LIBCRYPTO 1
18560 LIBS
="-lcrypto $LIBS"
18565 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18566 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18567 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 ac_check_lib_save_LIBS
=$LIBS
18571 LIBS
="-lkrb5 $LIBS"
18572 cat >conftest.
$ac_ext <<_ACEOF
18575 cat confdefs.h
>>conftest.
$ac_ext
18576 cat >>conftest.
$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18579 /* Override any gcc2 internal prototype to avoid an error. */
18583 /* We use char because int might match the return type of a gcc2
18584 builtin and then its argument prototype would still apply. */
18585 char krb5_init_context ();
18589 krb5_init_context ();
18594 rm -f conftest.
$ac_objext conftest
$ac_exeext
18595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18596 (eval $ac_link) 2>conftest.er1
18598 grep -v '^ *+' conftest.er1
>conftest.err
18600 cat conftest.err
>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } &&
18603 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try
='test -s conftest$ac_exeext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_lib_krb5_krb5_init_context
=yes
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.
$ac_ext >&5
18620 ac_cv_lib_krb5_krb5_init_context
=no
18622 rm -f conftest.err conftest.
$ac_objext \
18623 conftest
$ac_exeext conftest.
$ac_ext
18624 LIBS
=$ac_check_lib_save_LIBS
18626 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18627 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18628 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18629 cat >>confdefs.h
<<_ACEOF
18630 #define HAVE_LIBKRB5 1
18633 LIBS
="-lkrb5 $LIBS"
18637 if test "${with_kerberos5+set}" != set; then
18639 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18640 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18641 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 ac_check_lib_save_LIBS
=$LIBS
18645 LIBS
="-ldes425 $LIBS"
18646 cat >conftest.
$ac_ext <<_ACEOF
18649 cat confdefs.h
>>conftest.
$ac_ext
18650 cat >>conftest.
$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18653 /* Override any gcc2 internal prototype to avoid an error. */
18657 /* We use char because int might match the return type of a gcc2
18658 builtin and then its argument prototype would still apply. */
18659 char des_cbc_encrypt ();
18663 des_cbc_encrypt ();
18668 rm -f conftest.
$ac_objext conftest
$ac_exeext
18669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18670 (eval $ac_link) 2>conftest.er1
18672 grep -v '^ *+' conftest.er1
>conftest.err
18674 cat conftest.err
>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try
='test -s conftest$ac_exeext'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 ac_cv_lib_des425_des_cbc_encrypt
=yes
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.
$ac_ext >&5
18694 ac_cv_lib_des425_des_cbc_encrypt
=no
18696 rm -f conftest.err conftest.
$ac_objext \
18697 conftest
$ac_exeext conftest.
$ac_ext
18698 LIBS
=$ac_check_lib_save_LIBS
18700 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18701 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18702 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18703 cat >>confdefs.h
<<_ACEOF
18704 #define HAVE_LIBDES425 1
18707 LIBS
="-ldes425 $LIBS"
18711 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18712 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18713 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 ac_check_lib_save_LIBS
=$LIBS
18718 cat >conftest.
$ac_ext <<_ACEOF
18721 cat confdefs.h
>>conftest.
$ac_ext
18722 cat >>conftest.
$ac_ext <<_ACEOF
18723 /* end confdefs.h. */
18725 /* Override any gcc2 internal prototype to avoid an error. */
18729 /* We use char because int might match the return type of a gcc2
18730 builtin and then its argument prototype would still apply. */
18731 char des_cbc_encrypt ();
18735 des_cbc_encrypt ();
18740 rm -f conftest.
$ac_objext conftest
$ac_exeext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18742 (eval $ac_link) 2>conftest.er1
18744 grep -v '^ *+' conftest.er1
>conftest.err
18746 cat conftest.err
>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; } &&
18755 { ac_try
='test -s conftest$ac_exeext'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_lib_des_des_cbc_encrypt
=yes
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.
$ac_ext >&5
18766 ac_cv_lib_des_des_cbc_encrypt
=no
18768 rm -f conftest.err conftest.
$ac_objext \
18769 conftest
$ac_exeext conftest.
$ac_ext
18770 LIBS
=$ac_check_lib_save_LIBS
18772 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18773 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18774 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18775 cat >>confdefs.h
<<_ACEOF
18776 #define HAVE_LIBDES 1
18786 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18787 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18788 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 ac_check_lib_save_LIBS
=$LIBS
18792 LIBS
="-lkrb4 $LIBS"
18793 cat >conftest.
$ac_ext <<_ACEOF
18796 cat confdefs.h
>>conftest.
$ac_ext
18797 cat >>conftest.
$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18800 /* Override any gcc2 internal prototype to avoid an error. */
18804 /* We use char because int might match the return type of a gcc2
18805 builtin and then its argument prototype would still apply. */
18806 char krb_get_cred ();
18815 rm -f conftest.
$ac_objext conftest
$ac_exeext
18816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18817 (eval $ac_link) 2>conftest.er1
18819 grep -v '^ *+' conftest.er1
>conftest.err
18821 cat conftest.err
>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } &&
18830 { ac_try
='test -s conftest$ac_exeext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_lib_krb4_krb_get_cred
=yes
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.
$ac_ext >&5
18841 ac_cv_lib_krb4_krb_get_cred
=no
18843 rm -f conftest.err conftest.
$ac_objext \
18844 conftest
$ac_exeext conftest.
$ac_ext
18845 LIBS
=$ac_check_lib_save_LIBS
18847 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18848 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18849 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18850 cat >>confdefs.h
<<_ACEOF
18851 #define HAVE_LIBKRB4 1
18854 LIBS
="-lkrb4 $LIBS"
18858 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18859 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18860 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 ac_check_lib_save_LIBS
=$LIBS
18865 cat >conftest.
$ac_ext <<_ACEOF
18868 cat confdefs.h
>>conftest.
$ac_ext
18869 cat >>conftest.
$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18872 /* Override any gcc2 internal prototype to avoid an error. */
18876 /* We use char because int might match the return type of a gcc2
18877 builtin and then its argument prototype would still apply. */
18878 char krb_get_cred ();
18887 rm -f conftest.
$ac_objext conftest
$ac_exeext
18888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18889 (eval $ac_link) 2>conftest.er1
18891 grep -v '^ *+' conftest.er1
>conftest.err
18893 cat conftest.err
>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; } &&
18902 { ac_try
='test -s conftest$ac_exeext'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; }; then
18908 ac_cv_lib_krb_krb_get_cred
=yes
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.
$ac_ext >&5
18913 ac_cv_lib_krb_krb_get_cred
=no
18915 rm -f conftest.err conftest.
$ac_objext \
18916 conftest
$ac_exeext conftest.
$ac_ext
18917 LIBS
=$ac_check_lib_save_LIBS
18919 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18920 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18921 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18922 cat >>confdefs.h
<<_ACEOF
18923 #define HAVE_LIBKRB 1
18934 if test "${with_kerberos5+set}" = set; then
18936 for ac_header
in krb5.h
18938 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940 echo "$as_me:$LINENO: checking for $ac_header" >&5
18941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18948 # Is the header compilable?
18949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18951 cat >conftest.
$ac_ext <<_ACEOF
18954 cat confdefs.h
>>conftest.
$ac_ext
18955 cat >>conftest.
$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 $ac_includes_default
18958 #include <$ac_header>
18960 rm -f conftest.
$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>conftest.er1
18964 grep -v '^ *+' conftest.er1
>conftest.err
18966 cat conftest.err
>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; } &&
18975 { ac_try
='test -s conftest.$ac_objext'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
18981 ac_header_compiler
=yes
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.
$ac_ext >&5
18986 ac_header_compiler
=no
18988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18990 echo "${ECHO_T}$ac_header_compiler" >&6
18992 # Is the header present?
18993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18995 cat >conftest.
$ac_ext <<_ACEOF
18998 cat confdefs.h
>>conftest.
$ac_ext
18999 cat >>conftest.
$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 #include <$ac_header>
19003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19004 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19006 grep -v '^ *+' conftest.er1
>conftest.err
19008 cat conftest.err
>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } >/dev
/null
; then
19011 if test -s conftest.err
; then
19012 ac_cpp_err
=$ac_c_preproc_warn_flag
19013 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19020 if test -z "$ac_cpp_err"; then
19021 ac_header_preproc
=yes
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.
$ac_ext >&5
19026 ac_header_preproc
=no
19028 rm -f conftest.err conftest.
$ac_ext
19029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19030 echo "${ECHO_T}$ac_header_preproc" >&6
19032 # So? What about this header?
19033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19039 ac_header_preproc
=yes
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19056 ## ------------------------------------------ ##
19057 ## Report this to the AC_PACKAGE_NAME lists. ##
19058 ## ------------------------------------------ ##
19061 sed "s/^/$as_me: WARNING: /" >&2
19064 echo "$as_me:$LINENO: checking for $ac_header" >&5
19065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 eval "$as_ac_Header=\$ac_header_preproc"
19071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19076 cat >>confdefs.h
<<_ACEOF
19077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19086 for ac_header
in des.h
19088 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19090 echo "$as_me:$LINENO: checking for $ac_header" >&5
19091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19098 # Is the header compilable?
19099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19101 cat >conftest.
$ac_ext <<_ACEOF
19104 cat confdefs.h
>>conftest.
$ac_ext
19105 cat >>conftest.
$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 $ac_includes_default
19108 #include <$ac_header>
19110 rm -f conftest.
$ac_objext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19112 (eval $ac_compile) 2>conftest.er1
19114 grep -v '^ *+' conftest.er1
>conftest.err
19116 cat conftest.err
>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try
='test -s conftest.$ac_objext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 ac_header_compiler
=yes
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.
$ac_ext >&5
19136 ac_header_compiler
=no
19138 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19140 echo "${ECHO_T}$ac_header_compiler" >&6
19142 # Is the header present?
19143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19145 cat >conftest.
$ac_ext <<_ACEOF
19148 cat confdefs.h
>>conftest.
$ac_ext
19149 cat >>conftest.
$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 #include <$ac_header>
19153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19154 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19156 grep -v '^ *+' conftest.er1
>conftest.err
19158 cat conftest.err
>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } >/dev
/null
; then
19161 if test -s conftest.err
; then
19162 ac_cpp_err
=$ac_c_preproc_warn_flag
19163 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19170 if test -z "$ac_cpp_err"; then
19171 ac_header_preproc
=yes
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.
$ac_ext >&5
19176 ac_header_preproc
=no
19178 rm -f conftest.err conftest.
$ac_ext
19179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19180 echo "${ECHO_T}$ac_header_preproc" >&6
19182 # So? What about this header?
19183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19189 ac_header_preproc
=yes
19192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19206 ## ------------------------------------------ ##
19207 ## Report this to the AC_PACKAGE_NAME lists. ##
19208 ## ------------------------------------------ ##
19211 sed "s/^/$as_me: WARNING: /" >&2
19214 echo "$as_me:$LINENO: checking for $ac_header" >&5
19215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 eval "$as_ac_Header=\$ac_header_preproc"
19221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19226 cat >>confdefs.h
<<_ACEOF
19227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19232 for ac_header
in kerberosIV
/des.h
19234 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19236 echo "$as_me:$LINENO: checking for $ac_header" >&5
19237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19244 # Is the header compilable?
19245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19247 cat >conftest.
$ac_ext <<_ACEOF
19250 cat confdefs.h
>>conftest.
$ac_ext
19251 cat >>conftest.
$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 $ac_includes_default
19254 #include <$ac_header>
19256 rm -f conftest.
$ac_objext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19258 (eval $ac_compile) 2>conftest.er1
19260 grep -v '^ *+' conftest.er1
>conftest.err
19262 cat conftest.err
>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try
='test -s conftest.$ac_objext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_header_compiler
=yes
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.
$ac_ext >&5
19282 ac_header_compiler
=no
19284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19286 echo "${ECHO_T}$ac_header_compiler" >&6
19288 # Is the header present?
19289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19291 cat >conftest.
$ac_ext <<_ACEOF
19294 cat confdefs.h
>>conftest.
$ac_ext
19295 cat >>conftest.
$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 #include <$ac_header>
19299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19302 grep -v '^ *+' conftest.er1
>conftest.err
19304 cat conftest.err
>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } >/dev
/null
; then
19307 if test -s conftest.err
; then
19308 ac_cpp_err
=$ac_c_preproc_warn_flag
19309 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19316 if test -z "$ac_cpp_err"; then
19317 ac_header_preproc
=yes
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.
$ac_ext >&5
19322 ac_header_preproc
=no
19324 rm -f conftest.err conftest.
$ac_ext
19325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19326 echo "${ECHO_T}$ac_header_preproc" >&6
19328 # So? What about this header?
19329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19335 ac_header_preproc
=yes
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19352 ## ------------------------------------------ ##
19353 ## Report this to the AC_PACKAGE_NAME lists. ##
19354 ## ------------------------------------------ ##
19357 sed "s/^/$as_me: WARNING: /" >&2
19360 echo "$as_me:$LINENO: checking for $ac_header" >&5
19361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 eval "$as_ac_Header=\$ac_header_preproc"
19367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19372 cat >>confdefs.h
<<_ACEOF
19373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19378 for ac_header
in kerberos
/des.h
19380 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19382 echo "$as_me:$LINENO: checking for $ac_header" >&5
19383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19390 # Is the header compilable?
19391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19393 cat >conftest.
$ac_ext <<_ACEOF
19396 cat confdefs.h
>>conftest.
$ac_ext
19397 cat >>conftest.
$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 $ac_includes_default
19400 #include <$ac_header>
19402 rm -f conftest.
$ac_objext
19403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404 (eval $ac_compile) 2>conftest.er1
19406 grep -v '^ *+' conftest.er1
>conftest.err
19408 cat conftest.err
>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } &&
19411 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try
='test -s conftest.$ac_objext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_header_compiler
=yes
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.
$ac_ext >&5
19428 ac_header_compiler
=no
19430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19432 echo "${ECHO_T}$ac_header_compiler" >&6
19434 # Is the header present?
19435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19437 cat >conftest.
$ac_ext <<_ACEOF
19440 cat confdefs.h
>>conftest.
$ac_ext
19441 cat >>conftest.
$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 #include <$ac_header>
19445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19448 grep -v '^ *+' conftest.er1
>conftest.err
19450 cat conftest.err
>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } >/dev
/null
; then
19453 if test -s conftest.err
; then
19454 ac_cpp_err
=$ac_c_preproc_warn_flag
19455 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19462 if test -z "$ac_cpp_err"; then
19463 ac_header_preproc
=yes
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.
$ac_ext >&5
19468 ac_header_preproc
=no
19470 rm -f conftest.err conftest.
$ac_ext
19471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19472 echo "${ECHO_T}$ac_header_preproc" >&6
19474 # So? What about this header?
19475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19481 ac_header_preproc
=yes
19484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19498 ## ------------------------------------------ ##
19499 ## Report this to the AC_PACKAGE_NAME lists. ##
19500 ## ------------------------------------------ ##
19503 sed "s/^/$as_me: WARNING: /" >&2
19506 echo "$as_me:$LINENO: checking for $ac_header" >&5
19507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 eval "$as_ac_Header=\$ac_header_preproc"
19513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19518 cat >>confdefs.h
<<_ACEOF
19519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19535 for ac_header
in krb.h
19537 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19539 echo "$as_me:$LINENO: checking for $ac_header" >&5
19540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19547 # Is the header compilable?
19548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19550 cat >conftest.
$ac_ext <<_ACEOF
19553 cat confdefs.h
>>conftest.
$ac_ext
19554 cat >>conftest.
$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 $ac_includes_default
19557 #include <$ac_header>
19559 rm -f conftest.
$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>conftest.er1
19563 grep -v '^ *+' conftest.er1
>conftest.err
19565 cat conftest.err
>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try
='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_header_compiler
=yes
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.
$ac_ext >&5
19585 ac_header_compiler
=no
19587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19589 echo "${ECHO_T}$ac_header_compiler" >&6
19591 # Is the header present?
19592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19594 cat >conftest.
$ac_ext <<_ACEOF
19597 cat confdefs.h
>>conftest.
$ac_ext
19598 cat >>conftest.
$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 #include <$ac_header>
19602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19605 grep -v '^ *+' conftest.er1
>conftest.err
19607 cat conftest.err
>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } >/dev
/null
; then
19610 if test -s conftest.err
; then
19611 ac_cpp_err
=$ac_c_preproc_warn_flag
19612 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19619 if test -z "$ac_cpp_err"; then
19620 ac_header_preproc
=yes
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.
$ac_ext >&5
19625 ac_header_preproc
=no
19627 rm -f conftest.err conftest.
$ac_ext
19628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19629 echo "${ECHO_T}$ac_header_preproc" >&6
19631 # So? What about this header?
19632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19638 ac_header_preproc
=yes
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19655 ## ------------------------------------------ ##
19656 ## Report this to the AC_PACKAGE_NAME lists. ##
19657 ## ------------------------------------------ ##
19660 sed "s/^/$as_me: WARNING: /" >&2
19663 echo "$as_me:$LINENO: checking for $ac_header" >&5
19664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 eval "$as_ac_Header=\$ac_header_preproc"
19670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19675 cat >>confdefs.h
<<_ACEOF
19676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19681 for ac_header
in kerberosIV
/krb.h
19683 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19685 echo "$as_me:$LINENO: checking for $ac_header" >&5
19686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19693 # Is the header compilable?
19694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19696 cat >conftest.
$ac_ext <<_ACEOF
19699 cat confdefs.h
>>conftest.
$ac_ext
19700 cat >>conftest.
$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 $ac_includes_default
19703 #include <$ac_header>
19705 rm -f conftest.
$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19709 grep -v '^ *+' conftest.er1
>conftest.err
19711 cat conftest.err
>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try
='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_header_compiler
=yes
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.
$ac_ext >&5
19731 ac_header_compiler
=no
19733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19735 echo "${ECHO_T}$ac_header_compiler" >&6
19737 # Is the header present?
19738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19740 cat >conftest.
$ac_ext <<_ACEOF
19743 cat confdefs.h
>>conftest.
$ac_ext
19744 cat >>conftest.
$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 #include <$ac_header>
19748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19751 grep -v '^ *+' conftest.er1
>conftest.err
19753 cat conftest.err
>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } >/dev
/null
; then
19756 if test -s conftest.err
; then
19757 ac_cpp_err
=$ac_c_preproc_warn_flag
19758 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19765 if test -z "$ac_cpp_err"; then
19766 ac_header_preproc
=yes
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.
$ac_ext >&5
19771 ac_header_preproc
=no
19773 rm -f conftest.err conftest.
$ac_ext
19774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19775 echo "${ECHO_T}$ac_header_preproc" >&6
19777 # So? What about this header?
19778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19784 ac_header_preproc
=yes
19787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19801 ## ------------------------------------------ ##
19802 ## Report this to the AC_PACKAGE_NAME lists. ##
19803 ## ------------------------------------------ ##
19806 sed "s/^/$as_me: WARNING: /" >&2
19809 echo "$as_me:$LINENO: checking for $ac_header" >&5
19810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 eval "$as_ac_Header=\$ac_header_preproc"
19816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19821 cat >>confdefs.h
<<_ACEOF
19822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19827 for ac_header
in kerberos
/krb.h
19829 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19831 echo "$as_me:$LINENO: checking for $ac_header" >&5
19832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19839 # Is the header compilable?
19840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19842 cat >conftest.
$ac_ext <<_ACEOF
19845 cat confdefs.h
>>conftest.
$ac_ext
19846 cat >>conftest.
$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 $ac_includes_default
19849 #include <$ac_header>
19851 rm -f conftest.
$ac_objext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19853 (eval $ac_compile) 2>conftest.er1
19855 grep -v '^ *+' conftest.er1
>conftest.err
19857 cat conftest.err
>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19866 { ac_try
='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_header_compiler
=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.
$ac_ext >&5
19877 ac_header_compiler
=no
19879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19881 echo "${ECHO_T}$ac_header_compiler" >&6
19883 # Is the header present?
19884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19886 cat >conftest.
$ac_ext <<_ACEOF
19889 cat confdefs.h
>>conftest.
$ac_ext
19890 cat >>conftest.
$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <$ac_header>
19894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19897 grep -v '^ *+' conftest.er1
>conftest.err
19899 cat conftest.err
>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } >/dev
/null
; then
19902 if test -s conftest.err
; then
19903 ac_cpp_err
=$ac_c_preproc_warn_flag
19904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19911 if test -z "$ac_cpp_err"; then
19912 ac_header_preproc
=yes
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.
$ac_ext >&5
19917 ac_header_preproc
=no
19919 rm -f conftest.err conftest.
$ac_ext
19920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19921 echo "${ECHO_T}$ac_header_preproc" >&6
19923 # So? What about this header?
19924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19930 ac_header_preproc
=yes
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19947 ## ------------------------------------------ ##
19948 ## Report this to the AC_PACKAGE_NAME lists. ##
19949 ## ------------------------------------------ ##
19952 sed "s/^/$as_me: WARNING: /" >&2
19955 echo "$as_me:$LINENO: checking for $ac_header" >&5
19956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 eval "$as_ac_Header=\$ac_header_preproc"
19962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967 cat >>confdefs.h
<<_ACEOF
19968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19985 for ac_header
in com_err.h
19987 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19989 echo "$as_me:$LINENO: checking for $ac_header" >&5
19990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19997 # Is the header compilable?
19998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20000 cat >conftest.
$ac_ext <<_ACEOF
20003 cat confdefs.h
>>conftest.
$ac_ext
20004 cat >>conftest.
$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 $ac_includes_default
20007 #include <$ac_header>
20009 rm -f conftest.
$ac_objext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>conftest.er1
20013 grep -v '^ *+' conftest.er1
>conftest.err
20015 cat conftest.err
>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try
='test -s conftest.$ac_objext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 ac_header_compiler
=yes
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.
$ac_ext >&5
20035 ac_header_compiler
=no
20037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20039 echo "${ECHO_T}$ac_header_compiler" >&6
20041 # Is the header present?
20042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20044 cat >conftest.
$ac_ext <<_ACEOF
20047 cat confdefs.h
>>conftest.
$ac_ext
20048 cat >>conftest.
$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 #include <$ac_header>
20052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20053 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20055 grep -v '^ *+' conftest.er1
>conftest.err
20057 cat conftest.err
>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } >/dev
/null
; then
20060 if test -s conftest.err
; then
20061 ac_cpp_err
=$ac_c_preproc_warn_flag
20062 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20069 if test -z "$ac_cpp_err"; then
20070 ac_header_preproc
=yes
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.
$ac_ext >&5
20075 ac_header_preproc
=no
20077 rm -f conftest.err conftest.
$ac_ext
20078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20079 echo "${ECHO_T}$ac_header_preproc" >&6
20081 # So? What about this header?
20082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20088 ac_header_preproc
=yes
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20105 ## ------------------------------------------ ##
20106 ## Report this to the AC_PACKAGE_NAME lists. ##
20107 ## ------------------------------------------ ##
20110 sed "s/^/$as_me: WARNING: /" >&2
20113 echo "$as_me:$LINENO: checking for $ac_header" >&5
20114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 eval "$as_ac_Header=\$ac_header_preproc"
20120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20125 cat >>confdefs.h
<<_ACEOF
20126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20135 # Solaris requires -lintl if you want strerror (which calls dgettext)
20136 # to return localized messages.
20138 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20139 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20140 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 ac_check_lib_save_LIBS
=$LIBS
20144 LIBS
="-lintl $LIBS"
20145 cat >conftest.
$ac_ext <<_ACEOF
20148 cat confdefs.h
>>conftest.
$ac_ext
20149 cat >>conftest.
$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20152 /* Override any gcc2 internal prototype to avoid an error. */
20156 /* We use char because int might match the return type of a gcc2
20157 builtin and then its argument prototype would still apply. */
20167 rm -f conftest.
$ac_objext conftest
$ac_exeext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169 (eval $ac_link) 2>conftest.er1
20171 grep -v '^ *+' conftest.er1
>conftest.err
20173 cat conftest.err
>&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try
='test -s conftest$ac_exeext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_cv_lib_intl_dgettext
=yes
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.
$ac_ext >&5
20193 ac_cv_lib_intl_dgettext
=no
20195 rm -f conftest.err conftest.
$ac_objext \
20196 conftest
$ac_exeext conftest.
$ac_ext
20197 LIBS
=$ac_check_lib_save_LIBS
20199 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20200 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20201 if test $ac_cv_lib_intl_dgettext = yes; then
20202 cat >>confdefs.h
<<_ACEOF
20203 #define HAVE_LIBINTL 1
20206 LIBS
="-lintl $LIBS"
20211 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20212 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20213 if test "${emacs_cv_localtime_cache+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 if test x
$ac_cv_func_tzset = xyes
; then
20217 if test "$cross_compiling" = yes; then
20218 # If we have tzset, assume the worst when cross-compiling.
20219 emacs_cv_localtime_cache
=yes
20221 cat >conftest.
$ac_ext <<_ACEOF
20224 cat confdefs.h
>>conftest.
$ac_ext
20225 cat >>conftest.
$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20228 extern char **environ;
20232 for (to = from = environ; (*to = *from); from++)
20233 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20236 char TZ_GMT0[] = "TZ=GMT0";
20237 char TZ_PST8[] = "TZ=PST8";
20240 time_t now = time ((time_t *) 0);
20241 int hour_GMT0, hour_unset;
20242 if (putenv (TZ_GMT0) != 0)
20244 hour_GMT0 = localtime (&now)->tm_hour;
20246 hour_unset = localtime (&now)->tm_hour;
20247 if (putenv (TZ_PST8) != 0)
20249 if (localtime (&now)->tm_hour == hour_GMT0)
20252 if (localtime (&now)->tm_hour != hour_unset)
20257 rm -f conftest
$ac_exeext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20259 (eval $ac_link) 2>&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 emacs_cv_localtime_cache
=no
20270 echo "$as_me: program exited with status $ac_status" >&5
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.
$ac_ext >&5
20274 ( exit $ac_status )
20275 emacs_cv_localtime_cache
=yes
20277 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20280 # If we lack tzset, report that localtime does not cache TZ,
20281 # since we can't invalidate the cache if we don't have tzset.
20282 emacs_cv_localtime_cache
=no
20285 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20286 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20287 if test $emacs_cv_localtime_cache = yes; then
20289 cat >>confdefs.h
<<\_ACEOF
20290 #define LOCALTIME_CACHE 1
20295 if test "x$HAVE_TIMEVAL" = xyes
; then
20297 for ac_func
in gettimeofday
20299 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20300 echo "$as_me:$LINENO: checking for $ac_func" >&5
20301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20302 if eval "test \"\${$as_ac_var+set}\" = set"; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 cat >conftest.
$ac_ext <<_ACEOF
20308 cat confdefs.h
>>conftest.
$ac_ext
20309 cat >>conftest.
$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20313 #define $ac_func innocuous_$ac_func
20315 /* System header to define __stub macros and hopefully few prototypes,
20316 which can conflict with char $ac_func (); below.
20317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20318 <limits.h> exists even on freestanding compilers. */
20321 # include <limits.h>
20323 # include <assert.h>
20328 /* Override any gcc2 internal prototype to avoid an error. */
20333 /* We use char because int might match the return type of a gcc2
20334 builtin and then its argument prototype would still apply. */
20336 /* The GNU C library defines this for functions which it implements
20337 to always fail with ENOSYS. Some functions are actually named
20338 something starting with __ and the normal name is an alias. */
20339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20342 char (*f) () = $ac_func;
20351 return f != $ac_func;
20356 rm -f conftest.
$ac_objext conftest
$ac_exeext
20357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20358 (eval $ac_link) 2>conftest.er1
20360 grep -v '^ *+' conftest.er1
>conftest.err
20362 cat conftest.err
>&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
20365 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try
='test -s conftest$ac_exeext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 eval "$as_ac_var=yes"
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.
$ac_ext >&5
20382 eval "$as_ac_var=no"
20384 rm -f conftest.err conftest.
$ac_objext \
20385 conftest
$ac_exeext conftest.
$ac_ext
20387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20389 if test `eval echo '${'$as_ac_var'}'` = yes; then
20390 cat >>confdefs.h
<<_ACEOF
20391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20397 if test $ac_cv_func_gettimeofday = yes; then
20398 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20399 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20400 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 cat >conftest.
$ac_ext <<_ACEOF
20406 cat confdefs.h
>>conftest.
$ac_ext
20407 cat >>conftest.
$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20410 #ifdef TIME_WITH_SYS_TIME
20411 #include <sys/time.h>
20414 #ifdef HAVE_SYS_TIME_H
20415 #include <sys/time.h>
20423 struct timeval time;
20424 gettimeofday (&time, 0);
20429 rm -f conftest.
$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>conftest.er1
20433 grep -v '^ *+' conftest.er1
>conftest.err
20435 cat conftest.err
>&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try
='test -s conftest.$ac_objext'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 emacs_cv_gettimeofday_two_arguments
=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.
$ac_ext >&5
20455 emacs_cv_gettimeofday_two_arguments
=no
20457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20459 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20460 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20461 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20463 cat >>confdefs.h
<<\_ACEOF
20464 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20471 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20472 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20473 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20474 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 cat >conftest.
$ac_ext <<_ACEOF
20480 cat confdefs.h
>>conftest.
$ac_ext
20481 cat >>conftest.
$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 #include <sys/types.h>
20484 #include <$ac_cv_struct_tm>
20490 static struct tm ac_aggr;
20491 if (ac_aggr.tm_zone)
20497 rm -f conftest.
$ac_objext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20499 (eval $ac_compile) 2>conftest.er1
20501 grep -v '^ *+' conftest.er1
>conftest.err
20503 cat conftest.err
>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
20506 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try
='test -s conftest.$ac_objext'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_member_struct_tm_tm_zone
=yes
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.
$ac_ext >&5
20523 cat >conftest.
$ac_ext <<_ACEOF
20526 cat confdefs.h
>>conftest.
$ac_ext
20527 cat >>conftest.
$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 #include <sys/types.h>
20530 #include <$ac_cv_struct_tm>
20536 static struct tm ac_aggr;
20537 if (sizeof ac_aggr.tm_zone)
20543 rm -f conftest.
$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>conftest.er1
20547 grep -v '^ *+' conftest.er1
>conftest.err
20549 cat conftest.err
>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
20552 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; } &&
20558 { ac_try
='test -s conftest.$ac_objext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_cv_member_struct_tm_tm_zone
=yes
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.
$ac_ext >&5
20569 ac_cv_member_struct_tm_tm_zone
=no
20571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20575 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20576 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20577 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20579 cat >>confdefs.h
<<_ACEOF
20580 #define HAVE_STRUCT_TM_TM_ZONE 1
20586 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20588 cat >>confdefs.h
<<\_ACEOF
20589 #define HAVE_TM_ZONE 1
20593 echo "$as_me:$LINENO: checking for tzname" >&5
20594 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20595 if test "${ac_cv_var_tzname+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20598 cat >conftest.
$ac_ext <<_ACEOF
20601 cat confdefs.h
>>conftest.
$ac_ext
20602 cat >>conftest.
$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20605 #ifndef tzname /* For SGI. */
20606 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20617 rm -f conftest.
$ac_objext conftest
$ac_exeext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>conftest.er1
20621 grep -v '^ *+' conftest.er1
>conftest.err
20623 cat conftest.err
>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; } &&
20632 { ac_try
='test -s conftest$ac_exeext'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 ac_cv_var_tzname
=yes
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.
$ac_ext >&5
20643 ac_cv_var_tzname
=no
20645 rm -f conftest.err conftest.
$ac_objext \
20646 conftest
$ac_exeext conftest.
$ac_ext
20648 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20649 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20650 if test $ac_cv_var_tzname = yes; then
20652 cat >>confdefs.h
<<\_ACEOF
20653 #define HAVE_TZNAME 1
20660 if test "$ac_cv_func_gettimeofday" = yes; then
20661 echo "$as_me:$LINENO: checking for struct timezone" >&5
20662 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20663 if test "${emacs_cv_struct_timezone+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 cat >conftest.
$ac_ext <<_ACEOF
20669 cat confdefs.h
>>conftest.
$ac_ext
20670 cat >>conftest.
$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 #include <sys/time.h>
20676 struct timezone tz;
20681 rm -f conftest.
$ac_objext
20682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20683 (eval $ac_compile) 2>conftest.er1
20685 grep -v '^ *+' conftest.er1
>conftest.err
20687 cat conftest.err
>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } &&
20690 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try
='test -s conftest.$ac_objext'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20702 if test "$cross_compiling" = yes; then
20703 emacs_cv_struct_timezone
=yes
20705 cat >conftest.
$ac_ext <<_ACEOF
20708 cat confdefs.h
>>conftest.
$ac_ext
20709 cat >>conftest.
$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20712 #ifdef TIME_WITH_SYS_TIME
20713 #include <sys/time.h>
20716 #ifdef HAVE_SYS_TIME_H
20717 #include <sys/time.h>
20723 struct timeval time;
20724 struct timezone dummy;
20725 exit (gettimeofday (&time, &dummy));
20728 rm -f conftest
$ac_exeext
20729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20730 (eval $ac_link) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 emacs_cv_struct_timezone
=yes
20741 echo "$as_me: program exited with status $ac_status" >&5
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.
$ac_ext >&5
20745 ( exit $ac_status )
20746 emacs_cv_struct_timezone
=no
20748 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.
$ac_ext >&5
20754 emacs_cv_struct_timezone
=no
20756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20758 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20759 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20763 echo "$as_me:$LINENO: checking for socket" >&5
20764 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20765 if test "${ac_cv_func_socket+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 cat >conftest.
$ac_ext <<_ACEOF
20771 cat confdefs.h
>>conftest.
$ac_ext
20772 cat >>conftest.
$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20776 #define socket innocuous_socket
20778 /* System header to define __stub macros and hopefully few prototypes,
20779 which can conflict with char socket (); below.
20780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20781 <limits.h> exists even on freestanding compilers. */
20784 # include <limits.h>
20786 # include <assert.h>
20791 /* Override any gcc2 internal prototype to avoid an error. */
20796 /* We use char because int might match the return type of a gcc2
20797 builtin and then its argument prototype would still apply. */
20799 /* The GNU C library defines this for functions which it implements
20800 to always fail with ENOSYS. Some functions are actually named
20801 something starting with __ and the normal name is an alias. */
20802 #if defined (__stub_socket) || defined (__stub___socket)
20805 char (*f) () = socket;
20814 return f != socket;
20819 rm -f conftest.
$ac_objext conftest
$ac_exeext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20821 (eval $ac_link) 2>conftest.er1
20823 grep -v '^ *+' conftest.er1
>conftest.err
20825 cat conftest.err
>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; } &&
20834 { ac_try
='test -s conftest$ac_exeext'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 ac_cv_func_socket
=yes
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.
$ac_ext >&5
20845 ac_cv_func_socket
=no
20847 rm -f conftest.err conftest.
$ac_objext \
20848 conftest
$ac_exeext conftest.
$ac_ext
20850 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20851 echo "${ECHO_T}$ac_cv_func_socket" >&6
20852 if test $ac_cv_func_socket = yes; then
20858 if test $ok_so_far = yes; then
20859 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20860 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20861 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20862 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20866 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20868 # Is the header compilable?
20869 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20870 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20871 cat >conftest.
$ac_ext <<_ACEOF
20874 cat confdefs.h
>>conftest.
$ac_ext
20875 cat >>conftest.
$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 $ac_includes_default
20878 #include <netinet/in.h>
20880 rm -f conftest.
$ac_objext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20882 (eval $ac_compile) 2>conftest.er1
20884 grep -v '^ *+' conftest.er1
>conftest.err
20886 cat conftest.err
>&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } &&
20889 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; } &&
20895 { ac_try
='test -s conftest.$ac_objext'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; }; then
20901 ac_header_compiler
=yes
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.
$ac_ext >&5
20906 ac_header_compiler
=no
20908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20910 echo "${ECHO_T}$ac_header_compiler" >&6
20912 # Is the header present?
20913 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20914 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20915 cat >conftest.
$ac_ext <<_ACEOF
20918 cat confdefs.h
>>conftest.
$ac_ext
20919 cat >>conftest.
$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <netinet/in.h>
20923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20926 grep -v '^ *+' conftest.er1
>conftest.err
20928 cat conftest.err
>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } >/dev
/null
; then
20931 if test -s conftest.err
; then
20932 ac_cpp_err
=$ac_c_preproc_warn_flag
20933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20940 if test -z "$ac_cpp_err"; then
20941 ac_header_preproc
=yes
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.
$ac_ext >&5
20946 ac_header_preproc
=no
20948 rm -f conftest.err conftest.
$ac_ext
20949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20950 echo "${ECHO_T}$ac_header_preproc" >&6
20952 # So? What about this header?
20953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20955 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20956 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20957 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20958 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20959 ac_header_preproc
=yes
20962 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20963 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20965 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20967 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20969 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20971 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20973 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20976 ## ------------------------------------------ ##
20977 ## Report this to the AC_PACKAGE_NAME lists. ##
20978 ## ------------------------------------------ ##
20981 sed "s/^/$as_me: WARNING: /" >&2
20984 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20985 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20986 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 ac_cv_header_netinet_in_h
=$ac_header_preproc
20991 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20992 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20995 if test $ac_cv_header_netinet_in_h = yes; then
21003 if test $ok_so_far = yes; then
21004 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21005 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21006 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21007 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21011 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21013 # Is the header compilable?
21014 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21015 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21016 cat >conftest.
$ac_ext <<_ACEOF
21019 cat confdefs.h
>>conftest.
$ac_ext
21020 cat >>conftest.
$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 $ac_includes_default
21023 #include <arpa/inet.h>
21025 rm -f conftest.
$ac_objext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21027 (eval $ac_compile) 2>conftest.er1
21029 grep -v '^ *+' conftest.er1
>conftest.err
21031 cat conftest.err
>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
21034 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try
='test -s conftest.$ac_objext'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ac_header_compiler
=yes
21048 echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.
$ac_ext >&5
21051 ac_header_compiler
=no
21053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21055 echo "${ECHO_T}$ac_header_compiler" >&6
21057 # Is the header present?
21058 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21059 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21060 cat >conftest.
$ac_ext <<_ACEOF
21063 cat confdefs.h
>>conftest.
$ac_ext
21064 cat >>conftest.
$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 #include <arpa/inet.h>
21068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21071 grep -v '^ *+' conftest.er1
>conftest.err
21073 cat conftest.err
>&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } >/dev
/null
; then
21076 if test -s conftest.err
; then
21077 ac_cpp_err
=$ac_c_preproc_warn_flag
21078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21085 if test -z "$ac_cpp_err"; then
21086 ac_header_preproc
=yes
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.
$ac_ext >&5
21091 ac_header_preproc
=no
21093 rm -f conftest.err conftest.
$ac_ext
21094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21095 echo "${ECHO_T}$ac_header_preproc" >&6
21097 # So? What about this header?
21098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21100 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21101 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21103 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21104 ac_header_preproc
=yes
21107 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21108 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21110 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21112 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21113 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21114 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21115 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21116 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21117 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21118 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21121 ## ------------------------------------------ ##
21122 ## Report this to the AC_PACKAGE_NAME lists. ##
21123 ## ------------------------------------------ ##
21126 sed "s/^/$as_me: WARNING: /" >&2
21129 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21130 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21131 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21136 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21137 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21140 if test $ac_cv_header_arpa_inet_h = yes; then
21148 if test $ok_so_far = yes; then
21150 cat >>confdefs.h
<<\_ACEOF
21151 #define HAVE_INET_SOCKETS 1
21157 for ac_header
in sys
/ioctl.h
21159 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21161 echo "$as_me:$LINENO: checking for $ac_header" >&5
21162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21169 # Is the header compilable?
21170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21172 cat >conftest.
$ac_ext <<_ACEOF
21175 cat confdefs.h
>>conftest.
$ac_ext
21176 cat >>conftest.
$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 $ac_includes_default
21179 #include <$ac_header>
21181 rm -f conftest.
$ac_objext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21183 (eval $ac_compile) 2>conftest.er1
21185 grep -v '^ *+' conftest.er1
>conftest.err
21187 cat conftest.err
>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try
='test -s conftest.$ac_objext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_header_compiler
=yes
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.
$ac_ext >&5
21207 ac_header_compiler
=no
21209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21211 echo "${ECHO_T}$ac_header_compiler" >&6
21213 # Is the header present?
21214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21216 cat >conftest.
$ac_ext <<_ACEOF
21219 cat confdefs.h
>>conftest.
$ac_ext
21220 cat >>conftest.
$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 #include <$ac_header>
21224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21225 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21227 grep -v '^ *+' conftest.er1
>conftest.err
21229 cat conftest.err
>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } >/dev
/null
; then
21232 if test -s conftest.err
; then
21233 ac_cpp_err
=$ac_c_preproc_warn_flag
21234 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21241 if test -z "$ac_cpp_err"; then
21242 ac_header_preproc
=yes
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.
$ac_ext >&5
21247 ac_header_preproc
=no
21249 rm -f conftest.err conftest.
$ac_ext
21250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21251 echo "${ECHO_T}$ac_header_preproc" >&6
21253 # So? What about this header?
21254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21260 ac_header_preproc
=yes
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21277 ## ------------------------------------------ ##
21278 ## Report this to the AC_PACKAGE_NAME lists. ##
21279 ## ------------------------------------------ ##
21282 sed "s/^/$as_me: WARNING: /" >&2
21285 echo "$as_me:$LINENO: checking for $ac_header" >&5
21286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21290 eval "$as_ac_Header=\$ac_header_preproc"
21292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21297 cat >>confdefs.h
<<_ACEOF
21298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21306 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21308 cat >>confdefs.h
<<\_ACEOF
21309 #define HAVE_AIX_SMT_EXP 1
21314 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21315 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21316 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21317 echo "$as_me:$LINENO: result: yes" >&5
21318 echo "${ECHO_T}yes" >&6
21320 cat >>confdefs.h
<<\_ACEOF
21321 #define HAVE_DEV_PTMX 1
21325 echo "$as_me:$LINENO: result: no" >&5
21326 echo "${ECHO_T}no" >&6
21329 echo "$as_me:$LINENO: checking for pid_t" >&5
21330 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21331 if test "${ac_cv_type_pid_t+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 cat >conftest.
$ac_ext <<_ACEOF
21337 cat confdefs.h
>>conftest.
$ac_ext
21338 cat >>conftest.
$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 $ac_includes_default
21346 if (sizeof (pid_t))
21352 rm -f conftest.
$ac_objext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21354 (eval $ac_compile) 2>conftest.er1
21356 grep -v '^ *+' conftest.er1
>conftest.err
21358 cat conftest.err
>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
21361 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; } &&
21367 { ac_try
='test -s conftest.$ac_objext'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; }; then
21373 ac_cv_type_pid_t
=yes
21375 echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.
$ac_ext >&5
21378 ac_cv_type_pid_t
=no
21380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21382 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21383 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21384 if test $ac_cv_type_pid_t = yes; then
21388 cat >>confdefs.h
<<_ACEOF
21396 for ac_header
in unistd.h vfork.h
21398 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21400 echo "$as_me:$LINENO: checking for $ac_header" >&5
21401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21408 # Is the header compilable?
21409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21411 cat >conftest.
$ac_ext <<_ACEOF
21414 cat confdefs.h
>>conftest.
$ac_ext
21415 cat >>conftest.
$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 $ac_includes_default
21418 #include <$ac_header>
21420 rm -f conftest.
$ac_objext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422 (eval $ac_compile) 2>conftest.er1
21424 grep -v '^ *+' conftest.er1
>conftest.err
21426 cat conftest.err
>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try
='test -s conftest.$ac_objext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 ac_header_compiler
=yes
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.
$ac_ext >&5
21446 ac_header_compiler
=no
21448 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21450 echo "${ECHO_T}$ac_header_compiler" >&6
21452 # Is the header present?
21453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21455 cat >conftest.
$ac_ext <<_ACEOF
21458 cat confdefs.h
>>conftest.
$ac_ext
21459 cat >>conftest.
$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <$ac_header>
21463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21464 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21466 grep -v '^ *+' conftest.er1
>conftest.err
21468 cat conftest.err
>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } >/dev
/null
; then
21471 if test -s conftest.err
; then
21472 ac_cpp_err
=$ac_c_preproc_warn_flag
21473 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21480 if test -z "$ac_cpp_err"; then
21481 ac_header_preproc
=yes
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.
$ac_ext >&5
21486 ac_header_preproc
=no
21488 rm -f conftest.err conftest.
$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21490 echo "${ECHO_T}$ac_header_preproc" >&6
21492 # So? What about this header?
21493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21499 ac_header_preproc
=yes
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21516 ## ------------------------------------------ ##
21517 ## Report this to the AC_PACKAGE_NAME lists. ##
21518 ## ------------------------------------------ ##
21521 sed "s/^/$as_me: WARNING: /" >&2
21524 echo "$as_me:$LINENO: checking for $ac_header" >&5
21525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 eval "$as_ac_Header=\$ac_header_preproc"
21531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21536 cat >>confdefs.h
<<_ACEOF
21537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21546 for ac_func
in fork vfork
21548 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21549 echo "$as_me:$LINENO: checking for $ac_func" >&5
21550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21551 if eval "test \"\${$as_ac_var+set}\" = set"; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 cat >conftest.
$ac_ext <<_ACEOF
21557 cat confdefs.h
>>conftest.
$ac_ext
21558 cat >>conftest.
$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21562 #define $ac_func innocuous_$ac_func
21564 /* System header to define __stub macros and hopefully few prototypes,
21565 which can conflict with char $ac_func (); below.
21566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21567 <limits.h> exists even on freestanding compilers. */
21570 # include <limits.h>
21572 # include <assert.h>
21577 /* Override any gcc2 internal prototype to avoid an error. */
21582 /* We use char because int might match the return type of a gcc2
21583 builtin and then its argument prototype would still apply. */
21585 /* The GNU C library defines this for functions which it implements
21586 to always fail with ENOSYS. Some functions are actually named
21587 something starting with __ and the normal name is an alias. */
21588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21591 char (*f) () = $ac_func;
21600 return f != $ac_func;
21605 rm -f conftest.
$ac_objext conftest
$ac_exeext
21606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21607 (eval $ac_link) 2>conftest.er1
21609 grep -v '^ *+' conftest.er1
>conftest.err
21611 cat conftest.err
>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } &&
21614 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; } &&
21620 { ac_try
='test -s conftest$ac_exeext'
21621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 (eval $ac_try) 2>&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; }; then
21626 eval "$as_ac_var=yes"
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.
$ac_ext >&5
21631 eval "$as_ac_var=no"
21633 rm -f conftest.err conftest.
$ac_objext \
21634 conftest
$ac_exeext conftest.
$ac_ext
21636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21638 if test `eval echo '${'$as_ac_var'}'` = yes; then
21639 cat >>confdefs.h
<<_ACEOF
21640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21646 if test "x$ac_cv_func_fork" = xyes
; then
21647 echo "$as_me:$LINENO: checking for working fork" >&5
21648 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21649 if test "${ac_cv_func_fork_works+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 if test "$cross_compiling" = yes; then
21653 ac_cv_func_fork_works
=cross
21655 cat >conftest.
$ac_ext <<_ACEOF
21656 /* By Ruediger Kuhlmann. */
21657 #include <sys/types.h>
21659 # include <unistd.h>
21661 /* Some systems only have a dummy stub for fork() */
21669 rm -f conftest
$ac_exeext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21671 (eval $ac_link) 2>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_func_fork_works
=yes
21682 echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.
$ac_ext >&5
21686 ( exit $ac_status )
21687 ac_cv_func_fork_works
=no
21689 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21692 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21693 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21696 ac_cv_func_fork_works
=$ac_cv_func_fork
21698 if test "x$ac_cv_func_fork_works" = xcross
; then
21700 *-*-amigaos* |
*-*-msdosdjgpp*)
21701 # Override, as these systems have only a dummy fork() stub
21702 ac_cv_func_fork_works
=no
21705 ac_cv_func_fork_works
=yes
21708 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21709 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21711 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21712 if test "x$ac_cv_func_vfork" = xyes
; then
21713 echo "$as_me:$LINENO: checking for working vfork" >&5
21714 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21715 if test "${ac_cv_func_vfork_works+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21718 if test "$cross_compiling" = yes; then
21719 ac_cv_func_vfork_works
=cross
21721 cat >conftest.
$ac_ext <<_ACEOF
21724 cat confdefs.h
>>conftest.
$ac_ext
21725 cat >>conftest.
$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21727 /* Thanks to Paul Eggert for this test. */
21729 #include <stdlib.h>
21730 #include <sys/types.h>
21731 #include <sys/stat.h>
21732 #include <sys/wait.h>
21734 # include <unistd.h>
21737 # include <vfork.h>
21739 /* On some sparc systems, changes by the child to local and incoming
21740 argument registers are propagated back to the parent. The compiler
21741 is told about this with #include <vfork.h>, but some compilers
21742 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21743 static variable whose address is put into a register that is
21744 clobbered by the vfork. */
21747 sparc_address_test (int arg)
21749 sparc_address_test (arg) int arg;
21752 static pid_t child;
21770 pid_t parent = getpid ();
21773 sparc_address_test (0);
21778 /* Here is another test for sparc vfork register problems. This
21779 test uses lots of local variables, at least as many local
21780 variables as main has allocated so far including compiler
21781 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21782 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21783 reuse the register of parent for one of the local variables,
21784 since it will think that parent can't possibly be used any more
21785 in this routine. Assigning to the local variable will thus
21786 munge parent in the parent process. */
21788 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21789 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21790 /* Convince the compiler that p..p7 are live; otherwise, it might
21791 use the same hardware register for all 8 local variables. */
21792 if (p != p1 || p != p2 || p != p3 || p != p4
21793 || p != p5 || p != p6 || p != p7)
21796 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21797 from child file descriptors. If the child closes a descriptor
21798 before it execs or exits, this munges the parent's descriptor
21799 as well. Test for this by closing stdout in the child. */
21800 _exit(close(fileno(stdout)) != 0);
21805 while (wait(&status) != child)
21808 /* Was there some problem with vforking? */
21811 /* Did the child fail? (This shouldn't happen.) */
21814 /* Did the vfork/compiler bug occur? */
21815 || parent != getpid()
21817 /* Did the file descriptor bug occur? */
21818 || fstat(fileno(stdout), &st) != 0
21823 rm -f conftest
$ac_exeext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825 (eval $ac_link) 2>&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_func_vfork_works
=yes
21836 echo "$as_me: program exited with status $ac_status" >&5
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.
$ac_ext >&5
21840 ( exit $ac_status )
21841 ac_cv_func_vfork_works
=no
21843 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21846 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21847 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21850 if test "x$ac_cv_func_fork_works" = xcross
; then
21851 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21852 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21853 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21856 if test "x$ac_cv_func_vfork_works" = xyes
; then
21858 cat >>confdefs.h
<<\_ACEOF
21859 #define HAVE_WORKING_VFORK 1
21864 cat >>confdefs.h
<<\_ACEOF
21869 if test "x$ac_cv_func_fork_works" = xyes
; then
21871 cat >>confdefs.h
<<\_ACEOF
21872 #define HAVE_WORKING_FORK 1
21878 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21879 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21880 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 cat >conftest.
$ac_ext <<_ACEOF
21886 cat confdefs.h
>>conftest.
$ac_ext
21887 cat >>conftest.
$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 #include <langinfo.h>
21893 char* cs = nl_langinfo(CODESET);
21898 rm -f conftest.
$ac_objext conftest
$ac_exeext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21900 (eval $ac_link) 2>conftest.er1
21902 grep -v '^ *+' conftest.er1
>conftest.err
21904 cat conftest.err
>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
21907 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; } &&
21913 { ac_try
='test -s conftest$ac_exeext'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 emacs_cv_langinfo_codeset
=yes
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.
$ac_ext >&5
21924 emacs_cv_langinfo_codeset
=no
21926 rm -f conftest.err conftest.
$ac_objext \
21927 conftest
$ac_exeext conftest.
$ac_ext
21930 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21931 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21932 if test $emacs_cv_langinfo_codeset = yes; then
21934 cat >>confdefs.h
<<\_ACEOF
21935 #define HAVE_LANGINFO_CODESET 1
21940 echo "$as_me:$LINENO: checking for size_t" >&5
21941 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21942 if test "${ac_cv_type_size_t+set}" = set; then
21943 echo $ECHO_N "(cached) $ECHO_C" >&6
21945 cat >conftest.
$ac_ext <<_ACEOF
21948 cat confdefs.h
>>conftest.
$ac_ext
21949 cat >>conftest.
$ac_ext <<_ACEOF
21950 /* end confdefs.h. */
21951 $ac_includes_default
21957 if (sizeof (size_t))
21963 rm -f conftest.
$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965 (eval $ac_compile) 2>conftest.er1
21967 grep -v '^ *+' conftest.er1
>conftest.err
21969 cat conftest.err
>&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; } &&
21978 { ac_try
='test -s conftest.$ac_objext'
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21984 ac_cv_type_size_t
=yes
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.
$ac_ext >&5
21989 ac_cv_type_size_t
=no
21991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21993 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21994 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21995 if test $ac_cv_type_size_t = yes; then
21997 cat >>confdefs.h
<<_ACEOF
21998 #define HAVE_SIZE_T 1
22005 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22006 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22007 if test "${ac_cv_type_mbstate_t+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 cat >conftest.
$ac_ext <<_ACEOF
22013 cat confdefs.h
>>conftest.
$ac_ext
22014 cat >>conftest.
$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22017 # include <wchar.h>
22021 mbstate_t x; return sizeof x;
22026 rm -f conftest.
$ac_objext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22028 (eval $ac_compile) 2>conftest.er1
22030 grep -v '^ *+' conftest.er1
>conftest.err
22032 cat conftest.err
>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try
='test -s conftest.$ac_objext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ac_cv_type_mbstate_t
=yes
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.
$ac_ext >&5
22052 ac_cv_type_mbstate_t
=no
22054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22056 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22057 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22058 if test $ac_cv_type_mbstate_t = yes; then
22060 cat >>confdefs.h
<<\_ACEOF
22061 #define HAVE_MBSTATE_T 1
22066 cat >>confdefs.h
<<\_ACEOF
22067 #define mbstate_t int
22072 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22073 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22074 if test "${emacs_cv_c_restrict+set}" = set; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 cat >conftest.
$ac_ext <<_ACEOF
22080 cat confdefs.h
>>conftest.
$ac_ext
22081 cat >>conftest.
$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 void fred (int *restrict x);
22092 rm -f conftest.
$ac_objext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22094 (eval $ac_compile) 2>conftest.er1
22096 grep -v '^ *+' conftest.er1
>conftest.err
22098 cat conftest.err
>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try
='test -s conftest.$ac_objext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 emacs_cv_c_restrict
=yes
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.
$ac_ext >&5
22118 cat >conftest.
$ac_ext <<_ACEOF
22121 cat confdefs.h
>>conftest.
$ac_ext
22122 cat >>conftest.
$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 void fred (int *__restrict x);
22133 rm -f conftest.
$ac_objext
22134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22135 (eval $ac_compile) 2>conftest.er1
22137 grep -v '^ *+' conftest.er1
>conftest.err
22139 cat conftest.err
>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
22142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try
='test -s conftest.$ac_objext'
22149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22154 emacs_cv_c_restrict
=__restrict
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.
$ac_ext >&5
22159 emacs_cv_c_restrict
=no
22161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22165 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22166 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22167 case "$emacs_cv_c_restrict" in
22168 yes) emacs_restrict
=restrict
;;
22169 no
) emacs_restrict
="";;
22170 *) emacs_restrict
="$emacs_cv_c_restrict";;
22172 if test "$emacs_restrict" != __restrict
; then
22174 cat >>confdefs.h
<<_ACEOF
22175 #define __restrict $emacs_restrict
22180 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22181 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22182 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 cat >conftest.
$ac_ext <<_ACEOF
22188 cat confdefs.h
>>conftest.
$ac_ext
22189 cat >>conftest.
$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 void fred (int x[__restrict]);
22200 rm -f conftest.
$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1
>conftest.err
22206 cat conftest.err
>&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; } &&
22215 { ac_try
='test -s conftest.$ac_objext'
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }; then
22221 emacs_cv_c_restrict_arr
=yes
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.
$ac_ext >&5
22226 emacs_cv_c_restrict_arr
=no
22228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22230 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22231 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22232 if test "$emacs_cv_c_restrict_arr" = yes; then
22234 cat >>confdefs.h
<<\_ACEOF
22235 #define __restrict_arr __restrict
22242 # Set up the CFLAGS for real compilation, so we can substitute it.
22243 CFLAGS
="$REAL_CFLAGS"
22244 CPPFLAGS
="$REAL_CPPFLAGS"
22246 #### Find out which version of Emacs this is.
22247 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22248 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22249 if test x
"${version}" = x
; then
22250 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22251 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22252 { (exit 1); exit 1; }; }
22255 ### Specify what sort of things we'll be editing into Makefile and config.h.
22256 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22292 cat >>confdefs.h
<<_ACEOF
22293 #define EMACS_CONFIGURATION "${canonical}"
22297 cat >>confdefs.h
<<_ACEOF
22298 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22302 cat >>confdefs.h
<<_ACEOF
22303 #define config_machfile "${machfile}"
22307 cat >>confdefs.h
<<_ACEOF
22308 #define config_opsysfile "${opsysfile}"
22312 cat >>confdefs.h
<<_ACEOF
22313 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22317 cat >>confdefs.h
<<_ACEOF
22318 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22322 cat >>confdefs.h
<<_ACEOF
22323 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22327 cat >>confdefs.h
<<_ACEOF
22328 #define UNEXEC_SRC ${UNEXEC_SRC}
22332 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22334 cat >>confdefs.h
<<\_ACEOF
22335 #define HAVE_X_WINDOWS 1
22339 if test "${USE_X_TOOLKIT}" != "none" ; then
22341 cat >>confdefs.h
<<\_ACEOF
22342 #define USE_X_TOOLKIT 1
22346 if test "${HAVE_X11}" = "yes" ; then
22348 cat >>confdefs.h
<<\_ACEOF
22353 if test "${HAVE_XFREE386}" = "yes" ; then
22355 cat >>confdefs.h
<<\_ACEOF
22356 #define HAVE_XFREE386 1
22360 if test "${HAVE_MENUS}" = "yes" ; then
22362 cat >>confdefs.h
<<\_ACEOF
22363 #define HAVE_MENUS 1
22367 if test "${GNU_MALLOC}" = "yes" ; then
22369 cat >>confdefs.h
<<\_ACEOF
22370 #define GNU_MALLOC 1
22374 if test "${REL_ALLOC}" = "yes" ; then
22376 cat >>confdefs.h
<<\_ACEOF
22377 #define REL_ALLOC 1
22386 #### Report on what we decided to do.
22387 #### Report GTK as a toolkit, even if it doesn't use Xt.
22388 #### It makes printing result more understandable as using GTK sets
22389 #### toolkit_scroll_bars to yes by default.
22390 if test "${HAVE_GTK}" = "yes"; then
22395 Configured for \`${canonical}'.
22397 Where should the build process find the source code? ${srcdir}
22398 What operating system and machine description files should Emacs use?
22399 \`${opsysfile}' and \`${machfile}'
22400 What compiler should emacs be built with? ${CC} ${CFLAGS}
22401 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22402 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22403 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22404 What window system should Emacs use? ${window_system}
22405 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22407 if test -n "${x_includes}"; then
22408 echo " Where do we find X Windows header files? ${x_includes}"
22410 echo " Where do we find X Windows header files? Standard dirs"
22412 if test -n "${x_libraries}"; then
22413 echo " Where do we find X Windows libraries? ${x_libraries}"
22415 echo " Where do we find X Windows libraries? Standard dirs"
22418 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22419 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22420 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22421 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22422 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22423 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22424 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22427 if test $USE_XASSERTS = yes; then
22428 echo " Compiling with asserts turned on."
22429 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22435 # Remove any trailing slashes in these variables.
22436 test "${prefix}" != NONE
&&
22437 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22438 test "${exec_prefix}" != NONE
&&
22439 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22441 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22442 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22443 ## from Makefile.c can correctly provide the arg `-traditional' to the
22446 cat >conftest.
$ac_ext <<_ACEOF
22449 cat confdefs.h
>>conftest.
$ac_ext
22450 cat >>conftest.
$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22455 $EGREP "yes..yes" >/dev
/null
2>&1; then
22456 CPP_NEED_TRADITIONAL
=no
22458 CPP_NEED_TRADITIONAL
=yes
22463 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"
22464 ac_config_commands
="$ac_config_commands default"
22465 cat >confcache
<<\_ACEOF
22466 # This file is a shell script that caches the results of configure
22467 # tests run on this system so they can be shared between configure
22468 # scripts and configure runs, see configure's option --config-cache.
22469 # It is not useful on other systems. If it contains results you don't
22470 # want to keep, you may remove or edit it.
22472 # config.status only pays attention to the cache file if you give it
22473 # the --recheck option to rerun configure.
22475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22477 # following values.
22481 # The following way of writing the cache mishandles newlines in values,
22482 # but we know of no workaround that is simple, portable, and efficient.
22483 # So, don't put newlines in cache variables' values.
22484 # Ultrix sh set writes to stderr and can't be redirected directly,
22485 # and sets the high bit in the cache file unless we assign to the vars.
22488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22490 # `set' does not quote correctly, so add quotes (double-quote
22491 # substitution turns \\\\ into \\, and sed turns \\ into \).
22494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22497 # `set' quotes correctly as required by POSIX, so do not add quotes.
22499 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22508 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22510 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22511 if test -w $cache_file; then
22512 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22513 cat confcache
>$cache_file
22515 echo "not updating unwritable cache $cache_file"
22520 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22521 # Let make expand exec_prefix.
22522 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22524 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22525 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22526 # trailing colons and then remove the whole line if VPATH becomes empty
22527 # (actually we leave an empty line to preserve line numbers).
22528 if test "x$srcdir" = x.
; then
22529 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22530 s/:*\$(srcdir):*/:/;
22531 s/:*\${srcdir}:*/:/;
22533 s/^\([^=]*=[ ]*\):*/\1/;
22539 DEFS
=-DHAVE_CONFIG_H
22543 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22544 # 1. Remove the extension, and $U if already installed.
22545 ac_i
=`echo "$ac_i" |
22546 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22548 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22549 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22551 LIBOBJS
=$ac_libobjs
22553 LTLIBOBJS
=$ac_ltlibobjs
22557 : ${CONFIG_STATUS=./config.status}
22558 ac_clean_files_save
=$ac_clean_files
22559 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22560 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22562 cat >$CONFIG_STATUS <<_ACEOF
22564 # Generated by $as_me.
22565 # Run this file to recreate the current configuration.
22566 # Compiler output produced by configure, useful for debugging
22567 # configure, is in config.log if it exists.
22570 ac_cs_recheck=false
22572 SHELL=\${CONFIG_SHELL-$SHELL}
22575 cat >>$CONFIG_STATUS <<\_ACEOF
22576 ## --------------------- ##
22577 ## M4sh Initialization. ##
22578 ## --------------------- ##
22580 # Be Bourne compatible
22581 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22585 # is contrary to our usage. Disable this feature.
22586 alias -g '${1+"$@"}'='"$@"'
22587 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22590 DUALCASE
=1; export DUALCASE
# for MKS sh
22592 # Support unset when possible.
22593 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22600 # Work around bugs in pre-3.0 UWIN ksh.
22601 $as_unset ENV MAIL MAILPATH
22608 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22609 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22610 LC_TELEPHONE LC_TIME
22612 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22613 eval $as_var=C
; export $as_var
22619 # Required to use basename.
22620 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22626 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22627 as_basename
=basename
22633 # Name of the executable.
22634 as_me
=`$as_basename "$0" ||
22635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22636 X"$0" : 'X\(//\)$' \| \
22637 X"$0" : 'X\(/\)$' \| \
22638 . : '\(.\)' 2>/dev/null ||
22640 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22641 /^X\/\(\/\/\)$/{ s//\1/; q; }
22642 /^X\/\(\/\).*/{ s//\1/; q; }
22646 # PATH needs CR, and LINENO needs CR and PATH.
22647 # Avoid depending upon Character Ranges.
22648 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22649 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22650 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22651 as_cr_digits
='0123456789'
22652 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22654 # The user is always right.
22655 if test "${PATH_SEPARATOR+set}" != set; then
22656 echo "#! /bin/sh" >conf$$.sh
22657 echo "exit 0" >>conf$$.sh
22659 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22668 as_lineno_1
=$LINENO
22669 as_lineno_2
=$LINENO
22670 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22671 test "x$as_lineno_1" != "x$as_lineno_2" &&
22672 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22673 # Find who we are. Look in the path if we contain no path at all
22676 *[\\/]* ) as_myself
=$0 ;;
22677 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22678 for as_dir
in $PATH
22681 test -z "$as_dir" && as_dir
=.
22682 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22687 # We did not find ourselves, most probably we were run as `sh COMMAND'
22688 # in which case we are not to be found in the path.
22689 if test "x$as_myself" = x
; then
22692 if test ! -f "$as_myself"; then
22693 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22694 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22695 { (exit 1); exit 1; }; }
22697 case $CONFIG_SHELL in
22699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22700 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22703 test -z "$as_dir" && as_dir
=.
22704 for as_base
in sh bash ksh sh5
; do
22707 if ("$as_dir/$as_base" -c '
22708 as_lineno_1=$LINENO
22709 as_lineno_2=$LINENO
22710 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22711 test "x$as_lineno_1" != "x$as_lineno_2" &&
22712 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22713 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22714 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22715 CONFIG_SHELL
=$as_dir/$as_base
22716 export CONFIG_SHELL
22717 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22726 # uniformly replaced by the line number. The first 'sed' inserts a
22727 # line-number line before each line; the second 'sed' does the real
22728 # work. The second script uses 'N' to pair each line-number line
22729 # with the numbered line, and appends trailing '-' during
22730 # substitution so that $LINENO is not a special case at line end.
22731 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22732 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22733 sed '=' <$as_myself |
22738 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22741 s,^['$as_cr_digits']*\n,,
22742 ' >$as_me.lineno
&&
22743 chmod +x
$as_me.lineno ||
22744 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22745 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22746 { (exit 1); exit 1; }; }
22748 # Don't try to exec as it changes $[0], causing all sort of problems
22749 # (the dirname of $[0] is not the place where we might find the
22750 # original and so on. Autoconf is especially sensible to this).
22752 # Exit status is that of the last command.
22757 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22758 *c
*,-n*) ECHO_N
= ECHO_C
='
22760 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22761 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22764 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22770 rm -f conf$$ conf$$.exe conf$$.
file
22772 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22773 # We could just check for DJGPP; but this test a) works b) is more generic
22774 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22775 if test -f conf$$.exe
; then
22776 # Don't use ln at all; we don't have any links
22781 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22786 rm -f conf$$ conf$$.exe conf$$.
file
22788 if mkdir
-p .
2>/dev
/null
; then
22791 test -d .
/-p && rmdir .
/-p
22795 as_executable_p
="test -f"
22797 # Sed expression to map a string onto a valid CPP name.
22798 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22800 # Sed expression to map a string onto a valid variable name.
22801 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22805 # We need space, tab and new line, in precisely that order.
22815 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22816 # report actual input values of CONFIG_FILES etc. instead of their
22817 # values after options handling. Logging --version etc. is OK.
22821 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22822 ## Running $as_me. ##
22827 This file was extended by $as_me, which was
22828 generated by GNU Autoconf 2.59. Invocation command line was
22830 CONFIG_FILES = $CONFIG_FILES
22831 CONFIG_HEADERS = $CONFIG_HEADERS
22832 CONFIG_LINKS = $CONFIG_LINKS
22833 CONFIG_COMMANDS = $CONFIG_COMMANDS
22837 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22841 # Files that config.status was made for.
22842 if test -n "$ac_config_files"; then
22843 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22846 if test -n "$ac_config_headers"; then
22847 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22850 if test -n "$ac_config_links"; then
22851 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22854 if test -n "$ac_config_commands"; then
22855 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22858 cat >>$CONFIG_STATUS <<\_ACEOF
22861 \`$as_me' instantiates files from templates according to the
22862 current configuration.
22864 Usage: $0 [OPTIONS] [FILE]...
22866 -h, --help print this help, then exit
22867 -V, --version print version number, then exit
22868 -q, --quiet do not print progress messages
22869 -d, --debug don't remove temporary files
22870 --recheck update $as_me by reconfiguring in the same conditions
22871 --file=FILE[:TEMPLATE]
22872 instantiate the configuration file FILE
22873 --header=FILE[:TEMPLATE]
22874 instantiate the configuration header FILE
22876 Configuration files:
22879 Configuration headers:
22882 Configuration commands:
22885 Report bugs to <bug-autoconf@gnu.org>."
22888 cat >>$CONFIG_STATUS <<_ACEOF
22891 configured by $0, generated by GNU Autoconf 2.59,
22892 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22894 Copyright (C) 2003 Free Software Foundation, Inc.
22895 This config.status script is free software; the Free Software Foundation
22896 gives unlimited permission to copy, distribute and modify it."
22901 cat >>$CONFIG_STATUS <<\_ACEOF
22902 # If no file are specified by the user, then we need to provide default
22903 # value. By we need to know if files were specified by the user.
22909 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22910 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22918 *) # This is not an option, so the user has probably given explicit
22921 ac_need_defaults
=false
;;
22925 # Handling of the options.
22927 cat >>$CONFIG_STATUS <<\_ACEOF
22928 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22930 --version |
--vers* |
-V )
22931 echo "$ac_cs_version"; exit 0 ;;
22933 # Conflict between --help and --header
22934 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22935 Try \`$0 --help' for more information." >&5
22936 echo "$as_me: error: ambiguous option: $1
22937 Try \`$0 --help' for more information." >&2;}
22938 { (exit 1); exit 1; }; };;
22939 --help |
--hel |
-h )
22940 echo "$ac_cs_usage"; exit 0 ;;
22941 --debug |
--d* |
-d )
22943 --file |
--fil |
--fi |
--f )
22945 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22946 ac_need_defaults
=false
;;
22947 --header |
--heade |
--head |
--hea )
22949 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22950 ac_need_defaults
=false
;;
22951 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22952 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22955 # This is an error.
22956 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22957 Try \`$0 --help' for more information." >&5
22958 echo "$as_me: error: unrecognized option: $1
22959 Try \`$0 --help' for more information." >&2;}
22960 { (exit 1); exit 1; }; } ;;
22962 *) ac_config_targets
="$ac_config_targets $1" ;;
22968 ac_configure_extra_args
=
22970 if $ac_cs_silent; then
22972 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22976 cat >>$CONFIG_STATUS <<_ACEOF
22977 if \$ac_cs_recheck; then
22978 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22979 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22984 cat >>$CONFIG_STATUS <<_ACEOF
22986 # INIT-COMMANDS section.
22989 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22995 cat >>$CONFIG_STATUS <<\_ACEOF
22996 for ac_config_target
in $ac_config_targets
22998 case "$ac_config_target" in
22999 # Handling of arguments.
23000 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23001 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23002 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23003 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23004 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23005 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23006 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23007 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23008 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23009 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23010 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23011 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23012 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23013 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23014 { (exit 1); exit 1; }; };;
23018 # If the user did not use the arguments to specify the items to instantiate,
23019 # then the envvar interface is used. Set only those that are not.
23020 # We use the long form for the default assignment because of an extremely
23021 # bizarre bug on SunOS 4.1.3.
23022 if $ac_need_defaults; then
23023 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23024 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23025 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23028 # Have a temporary directory for convenience. Make it in the build tree
23029 # simply because there is no reason to put it here, and in addition,
23030 # creating and moving files from /tmp can sometimes cause problems.
23031 # Create a temporary directory, and hook for its removal unless debugging.
23034 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23035 trap '{ (exit 1); exit 1; }' 1 2 13 15
23038 # Create a (secure) tmp directory for tmp files.
23041 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23042 test -n "$tmp" && test -d "$tmp"
23045 tmp
=.
/confstat$$
-$RANDOM
23046 (umask 077 && mkdir
$tmp)
23049 echo "$me: cannot create a temporary directory in ." >&2
23050 { (exit 1); exit 1; }
23055 cat >>$CONFIG_STATUS <<_ACEOF
23058 # CONFIG_FILES section.
23061 # No need to generate the scripts if there are no CONFIG_FILES.
23062 # This happens for instance when ./config.status config.h
23063 if test -n "\$CONFIG_FILES"; then
23064 # Protect against being on the right side of a sed subst in config.status.
23065 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23066 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23067 s,@SHELL@,$SHELL,;t t
23068 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23069 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23070 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23071 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23072 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23073 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23074 s,@exec_prefix@,$exec_prefix,;t t
23075 s,@prefix@,$prefix,;t t
23076 s,@program_transform_name@,$program_transform_name,;t t
23077 s,@bindir@,$bindir,;t t
23078 s,@sbindir@,$sbindir,;t t
23079 s,@libexecdir@,$libexecdir,;t t
23080 s,@datadir@,$datadir,;t t
23081 s,@sysconfdir@,$sysconfdir,;t t
23082 s,@sharedstatedir@,$sharedstatedir,;t t
23083 s,@localstatedir@,$localstatedir,;t t
23084 s,@libdir@,$libdir,;t t
23085 s,@includedir@,$includedir,;t t
23086 s,@oldincludedir@,$oldincludedir,;t t
23087 s,@infodir@,$infodir,;t t
23088 s,@mandir@,$mandir,;t t
23089 s,@build_alias@,$build_alias,;t t
23090 s,@host_alias@,$host_alias,;t t
23091 s,@target_alias@,$target_alias,;t t
23092 s,@DEFS@,$DEFS,;t t
23093 s,@ECHO_C@,$ECHO_C,;t t
23094 s,@ECHO_N@,$ECHO_N,;t t
23095 s,@ECHO_T@,$ECHO_T,;t t
23096 s,@LIBS@,$LIBS,;t t
23097 s,@MAINT@,$MAINT,;t t
23098 s,@build@,$build,;t t
23099 s,@build_cpu@,$build_cpu,;t t
23100 s,@build_vendor@,$build_vendor,;t t
23101 s,@build_os@,$build_os,;t t
23102 s,@host@,$host,;t t
23103 s,@host_cpu@,$host_cpu,;t t
23104 s,@host_vendor@,$host_vendor,;t t
23105 s,@host_os@,$host_os,;t t
23107 s,@CFLAGS@,$CFLAGS,;t t
23108 s,@LDFLAGS@,$LDFLAGS,;t t
23109 s,@CPPFLAGS@,$CPPFLAGS,;t t
23110 s,@ac_ct_CC@,$ac_ct_CC,;t t
23111 s,@EXEEXT@,$EXEEXT,;t t
23112 s,@OBJEXT@,$OBJEXT,;t t
23113 s,@LN_S@,$LN_S,;t t
23115 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23116 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23117 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23118 s,@RANLIB@,$RANLIB,;t t
23119 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23120 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23121 s,@EGREP@,$EGREP,;t t
23122 s,@LIBSOUND@,$LIBSOUND,;t t
23123 s,@SET_MAKE@,$SET_MAKE,;t t
23124 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23125 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23126 s,@GTK_LIBS@,$GTK_LIBS,;t t
23127 s,@ALLOCA@,$ALLOCA,;t t
23128 s,@liblockfile@,$liblockfile,;t t
23129 s,@LIBOBJS@,$LIBOBJS,;t t
23130 s,@NEED_SETGID@,$NEED_SETGID,;t t
23131 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23132 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23133 s,@GETOPT_H@,$GETOPT_H,;t t
23134 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23135 s,@version@,$version,;t t
23136 s,@configuration@,$configuration,;t t
23137 s,@canonical@,$canonical,;t t
23138 s,@srcdir@,$srcdir,;t t
23139 s,@lispdir@,$lispdir,;t t
23140 s,@locallisppath@,$locallisppath,;t t
23141 s,@lisppath@,$lisppath,;t t
23142 s,@x_default_search_path@,$x_default_search_path,;t t
23143 s,@etcdir@,$etcdir,;t t
23144 s,@archlibdir@,$archlibdir,;t t
23145 s,@docdir@,$docdir,;t t
23146 s,@bitmapdir@,$bitmapdir,;t t
23147 s,@gamedir@,$gamedir,;t t
23148 s,@gameuser@,$gameuser,;t t
23149 s,@c_switch_system@,$c_switch_system,;t t
23150 s,@c_switch_machine@,$c_switch_machine,;t t
23151 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23152 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23153 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23154 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23155 s,@machfile@,$machfile,;t t
23156 s,@opsysfile@,$opsysfile,;t t
23157 s,@carbon_appdir@,$carbon_appdir,;t t
23158 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23163 cat >>$CONFIG_STATUS <<\_ACEOF
23164 # Split the substitutions into bite-sized pieces for seds with
23165 # small command number limits, like on Digital OSF/1 and HP-UX.
23166 ac_max_sed_lines
=48
23167 ac_sed_frag
=1 # Number of current file.
23168 ac_beg
=1 # First line for current file.
23169 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23172 while $ac_more_lines; do
23173 if test $ac_beg -gt 1; then
23174 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23176 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23178 if test ! -s $tmp/subs.frag
; then
23179 ac_more_lines
=false
23181 # The purpose of the label and of the branching condition is to
23182 # speed up the sed processing (if there are no `@' at all, there
23183 # is no need to browse any of the substitutions).
23184 # These are the two extra sed commands mentioned above.
23186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23187 if test -z "$ac_sed_cmds"; then
23188 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23190 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23192 ac_sed_frag
=`expr $ac_sed_frag + 1`
23194 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23197 if test -z "$ac_sed_cmds"; then
23200 fi # test -n "$CONFIG_FILES"
23203 cat >>$CONFIG_STATUS <<\_ACEOF
23204 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23205 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23207 - |
*:- |
*:-:* ) # input from stdin
23209 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23210 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23211 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23212 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23213 * ) ac_file_in
=$ac_file.
in ;;
23216 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23217 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23219 X"$ac_file" : 'X\(//\)[^/]' \| \
23220 X"$ac_file" : 'X\(//\)$' \| \
23221 X"$ac_file" : 'X\(/\)' \| \
23222 . : '\(.\)' 2>/dev/null ||
23224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23226 /^X\(\/\/\)$/{ s//\1/; q; }
23227 /^X\(\/\).*/{ s//\1/; q; }
23229 { if $as_mkdir_p; then
23234 while test ! -d "$as_dir"; do
23235 as_dirs
="$as_dir $as_dirs"
23236 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23238 X"$as_dir" : 'X\(//\)[^/]' \| \
23239 X"$as_dir" : 'X\(//\)$' \| \
23240 X"$as_dir" : 'X\(/\)' \| \
23241 . : '\(.\)' 2>/dev/null ||
23243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23245 /^X\(\/\/\)$/{ s//\1/; q; }
23246 /^X\(\/\).*/{ s//\1/; q; }
23249 test ! -n "$as_dirs" || mkdir
$as_dirs
23250 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23252 { (exit 1); exit 1; }; }; }
23256 if test "$ac_dir" != .
; then
23257 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23258 # A "../" for each directory in $ac_dir_suffix.
23259 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23261 ac_dir_suffix
= ac_top_builddir
=
23265 .
) # No --srcdir option. We are building in place.
23267 if test -z "$ac_top_builddir"; then
23270 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23272 [\\/]* | ?
:[\\/]* ) # Absolute path.
23273 ac_srcdir
=$srcdir$ac_dir_suffix;
23274 ac_top_srcdir
=$srcdir ;;
23275 *) # Relative path.
23276 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23277 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23280 # Do not use `cd foo && pwd` to compute absolute paths, because
23281 # the directories may not exist.
23283 .
) ac_abs_builddir
="$ac_dir";;
23286 .
) ac_abs_builddir
=`pwd`;;
23287 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23288 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23291 case $ac_abs_builddir in
23292 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23294 case ${ac_top_builddir}.
in
23295 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23296 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23297 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23300 case $ac_abs_builddir in
23301 .
) ac_abs_srcdir
=$ac_srcdir;;
23304 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23305 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23306 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23309 case $ac_abs_builddir in
23310 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23312 case $ac_top_srcdir in
23313 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23314 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23315 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23321 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23322 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23325 # Let's still pretend it is `configure' which instantiates (i.e., don't
23326 # use $as_me), people would be surprised to read:
23327 # /* config.h. Generated by config.status. */
23328 if test x
"$ac_file" = x-
; then
23331 configure_input
="$ac_file. "
23333 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23334 sed 's,.*/,,'` by configure."
23336 # First look for the input files in the build tree, otherwise in the
23338 ac_file_inputs
=`IFS=:
23339 for f in $ac_file_in; do
23341 -) echo $tmp/stdin ;;
23343 # Absolute (can't be DOS-style, as IFS=:)
23344 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23345 echo "$as_me: error: cannot find input file: $f" >&2;}
23346 { (exit 1); exit 1; }; }
23349 if test -f "$f"; then
23352 elif test -f "$srcdir/$f"; then
23357 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23358 echo "$as_me: error: cannot find input file: $f" >&2;}
23359 { (exit 1); exit 1; }; }
23362 done` ||
{ (exit 1); exit 1; }
23364 if test x
"$ac_file" != x-
; then
23365 { echo "$as_me:$LINENO: creating $ac_file" >&5
23366 echo "$as_me: creating $ac_file" >&6;}
23370 cat >>$CONFIG_STATUS <<_ACEOF
23374 cat >>$CONFIG_STATUS <<\_ACEOF
23376 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23377 s
,@configure_input@
,$configure_input,;t t
23378 s
,@srcdir@
,$ac_srcdir,;t t
23379 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23380 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23381 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23382 s
,@builddir@
,$ac_builddir,;t t
23383 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23384 s
,@top_builddir@
,$ac_top_builddir,;t t
23385 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23386 s
,@INSTALL@
,$ac_INSTALL,;t t
23387 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23389 if test x"$ac_file" != x-; then
23390 mv $tmp/out $ac_file
23398 cat >>$CONFIG_STATUS <<\_ACEOF
23401 # CONFIG_HEADER section.
23404 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23405 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23407 # ac_d sets the value in "#define NAME VALUE" lines.
23408 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23409 ac_dB
='[ ].*$,\1#\2'
23412 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23413 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23414 ac_uB
='$,\1#\2define\3'
23418 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23421 - |
*:- |
*:-:* ) # input from stdin
23423 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23424 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23425 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23426 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23427 * ) ac_file_in
=$ac_file.
in ;;
23430 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23431 echo "$as_me: creating $ac_file" >&6;}
23433 # First look for the input files in the build tree, otherwise in the
23435 ac_file_inputs
=`IFS=:
23436 for f in $ac_file_in; do
23438 -) echo $tmp/stdin ;;
23440 # Absolute (can't be DOS-style, as IFS=:)
23441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23442 echo "$as_me: error: cannot find input file: $f" >&2;}
23443 { (exit 1); exit 1; }; }
23444 # Do quote $f, to prevent DOS paths from being IFS'd.
23447 if test -f "$f"; then
23450 elif test -f "$srcdir/$f"; then
23455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23456 echo "$as_me: error: cannot find input file: $f" >&2;}
23457 { (exit 1); exit 1; }; }
23460 done` ||
{ (exit 1); exit 1; }
23461 # Remove the trailing spaces.
23462 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23466 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23467 # `conftest.undefs', that substitutes the proper values into
23468 # config.h.in to produce config.h. The first handles `#define'
23469 # templates, and the second `#undef' templates.
23470 # And first: Protect against being on the right side of a sed subst in
23471 # config.status. Protect against being in an unquoted here document
23472 # in config.status.
23473 rm -f conftest.defines conftest.undefs
23474 # Using a here document instead of a string reduces the quoting nightmare.
23475 # Putting comments in sed scripts is not portable.
23477 # `end' is used to avoid that the second main sed command (meant for
23478 # 0-ary CPP macros) applies to n-ary macro definitions.
23479 # See the Autoconf documentation for `clear'.
23480 cat >confdef2sed.
sed <<\_ACEOF
23485 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23487 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23490 # If some macros were called several times there might be several times
23491 # the same #defines, which is useless. Nevertheless, we may not want to
23492 # sort them, since we want the *last* AC-DEFINE to be honored.
23493 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23494 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23495 rm -f confdef2sed.sed
23497 # This sed command replaces #undef with comments. This is necessary, for
23498 # example, in the case of _POSIX_SOURCE, which is predefined and required
23499 # on some systems where configure will not decide to define it.
23500 cat >>conftest.undefs <<\_ACEOF
23501 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23504 # Break up conftest.defines because some shells have a limit on the size
23505 # of here documents, and old seds have small limits too (100 cmds).
23506 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23507 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23508 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23509 echo ' :' >>$CONFIG_STATUS
23510 rm -f conftest.tail
23511 while grep . conftest.defines >/dev/null
23513 # Write a limited-size here document to $tmp/defines.sed.
23514 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23515 # Speed up: don't consider the non `#define' lines.
23516 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23517 # Work around the forget-to-reset-the-flag bug.
23518 echo 't clr' >>$CONFIG_STATUS
23519 echo ': clr' >>$CONFIG_STATUS
23520 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23522 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23524 mv $tmp/out $tmp/in
23526 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23527 rm -f conftest.defines
23528 mv conftest.
tail conftest.defines
23530 rm -f conftest.defines
23531 echo ' fi # grep' >>$CONFIG_STATUS
23532 echo >>$CONFIG_STATUS
23534 # Break up conftest.undefs because some shells have a limit on the size
23535 # of here documents, and old seds have small limits too (100 cmds).
23536 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23537 rm -f conftest.
tail
23538 while grep . conftest.undefs
>/dev
/null
23540 # Write a limited-size here document to $tmp/undefs.sed.
23541 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23542 # Speed up: don't consider the non
`#undef'
23543 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23544 # Work around the forget-to-reset-the-flag bug.
23545 echo 't clr' >>$CONFIG_STATUS
23546 echo ': clr' >>$CONFIG_STATUS
23547 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23549 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23551 mv $tmp/out $tmp/in
23553 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23554 rm -f conftest.undefs
23555 mv conftest.tail conftest.undefs
23557 rm -f conftest.undefs
23559 cat >>$CONFIG_STATUS <<\_ACEOF
23560 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23561 # use $as_me), people would be surprised to read:
23562 # /* config.h. Generated by config.status. */
23563 if test x
"$ac_file" = x-
; then
23564 echo "/* Generated by configure. */" >$tmp/config.h
23566 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23568 cat $tmp/in >>$tmp/config.h
23570 if test x
"$ac_file" != x-
; then
23571 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23573 echo "$as_me: $ac_file is unchanged" >&6;}
23575 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23577 X"$ac_file" : 'X\(//\)[^/]' \| \
23578 X"$ac_file" : 'X\(//\)$' \| \
23579 X"$ac_file" : 'X\(/\)' \| \
23580 . : '\(.\)' 2>/dev/null ||
23582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23584 /^X\(\/\/\)$/{ s//\1/; q; }
23585 /^X\(\/\).*/{ s//\1/; q; }
23587 { if $as_mkdir_p; then
23592 while test ! -d "$as_dir"; do
23593 as_dirs
="$as_dir $as_dirs"
23594 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23596 X"$as_dir" : 'X\(//\)[^/]' \| \
23597 X"$as_dir" : 'X\(//\)$' \| \
23598 X"$as_dir" : 'X\(/\)' \| \
23599 . : '\(.\)' 2>/dev/null ||
23601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23603 /^X\(\/\/\)$/{ s//\1/; q; }
23604 /^X\(\/\).*/{ s//\1/; q; }
23607 test ! -n "$as_dirs" || mkdir
$as_dirs
23608 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23610 { (exit 1); exit 1; }; }; }
23613 mv $tmp/config.h
$ac_file
23617 rm -f $tmp/config.h
23621 cat >>$CONFIG_STATUS <<\_ACEOF
23624 # CONFIG_COMMANDS section.
23626 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23627 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23628 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23629 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23630 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23631 X"$ac_dest" : 'X\(//\)[^/]' \| \
23632 X"$ac_dest" : 'X\(//\)$' \| \
23633 X"$ac_dest" : 'X\(/\)' \| \
23634 . : '\(.\)' 2>/dev/null ||
23636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23638 /^X\(\/\/\)$/{ s//\1/; q; }
23639 /^X\(\/\).*/{ s//\1/; q; }
23641 { if $as_mkdir_p; then
23646 while test ! -d "$as_dir"; do
23647 as_dirs
="$as_dir $as_dirs"
23648 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23650 X"$as_dir" : 'X\(//\)[^/]' \| \
23651 X"$as_dir" : 'X\(//\)$' \| \
23652 X"$as_dir" : 'X\(/\)' \| \
23653 . : '\(.\)' 2>/dev/null ||
23655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23657 /^X\(\/\/\)$/{ s//\1/; q; }
23658 /^X\(\/\).*/{ s//\1/; q; }
23661 test ! -n "$as_dirs" || mkdir
$as_dirs
23662 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23664 { (exit 1); exit 1; }; }; }
23668 if test "$ac_dir" != .
; then
23669 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23670 # A "../" for each directory in $ac_dir_suffix.
23671 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23673 ac_dir_suffix
= ac_top_builddir
=
23677 .
) # No --srcdir option. We are building in place.
23679 if test -z "$ac_top_builddir"; then
23682 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23684 [\\/]* | ?
:[\\/]* ) # Absolute path.
23685 ac_srcdir
=$srcdir$ac_dir_suffix;
23686 ac_top_srcdir
=$srcdir ;;
23687 *) # Relative path.
23688 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23689 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23692 # Do not use `cd foo && pwd` to compute absolute paths, because
23693 # the directories may not exist.
23695 .
) ac_abs_builddir
="$ac_dir";;
23698 .
) ac_abs_builddir
=`pwd`;;
23699 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23700 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23703 case $ac_abs_builddir in
23704 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23706 case ${ac_top_builddir}.
in
23707 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23708 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23709 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23712 case $ac_abs_builddir in
23713 .
) ac_abs_srcdir
=$ac_srcdir;;
23716 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23717 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23718 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23721 case $ac_abs_builddir in
23722 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23724 case $ac_top_srcdir in
23725 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23726 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23727 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23732 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23733 echo "$as_me: executing $ac_dest commands" >&6;}
23737 ### Make the necessary directories, if they don't exist.
23738 for dir
in etc lisp
; do
23739 test -d ${dir} || mkdir
${dir}
23742 # Build src/Makefile from ${srcdir}/src/Makefile.c
23743 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23744 # This must be done after src/config.h is built, since we rely on that file.
23746 # Now get this: Some word that is part of the ${srcdir} directory name
23747 # or the ${configuration} value might, just might, happen to be an
23748 # identifier like `sun4' or `i386' or something, and be predefined by
23749 # the C preprocessor to some helpful value like 1, or maybe the empty
23750 # string. Needless to say consequent macro substitutions are less
23751 # than conducive to the makefile finding the correct directory.
23752 undefs
="`echo $top_srcdir $configuration $canonical |
23753 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23754 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23757 echo creating src
/epaths.h
23758 ${MAKE-make} epaths-force
23760 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23761 # `..' to `. .' unless invoked with -traditional
23763 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23764 CPPFLAGS
="$CPPFLAGS -traditional"
23767 echo creating lib-src
/Makefile
23769 rm -f junk.c junk1.c junk2.c
23770 sed -e '/start of cpp stuff/q' \
23771 < Makefile.c
> junk1.c
23772 sed -e '1,/start of cpp stuff/d'\
23773 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23774 < Makefile.c
> junk.c
23775 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23776 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23777 cat junk1.c junk2.c
> Makefile.new
23778 rm -f junk.c junk1.c junk2.c
23779 chmod 444 Makefile.new
23780 mv -f Makefile.new Makefile
23783 echo creating src
/Makefile
23785 rm -f junk.c junk1.c junk2.c
23786 sed -e '/start of cpp stuff/q' \
23787 < Makefile.c
> junk1.c
23788 sed -e '1,/start of cpp stuff/d'\
23789 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23790 < Makefile.c
> junk.c
23791 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23792 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23793 cat junk1.c junk2.c
> Makefile.new
23794 rm -f junk.c junk1.c junk2.c
23795 chmod 444 Makefile.new
23796 mv -f Makefile.new Makefile
23799 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23800 echo creating src
/.gdbinit
23801 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23804 # This is how we know whether to re-run configure in certain cases.
23805 touch src
/config.stamp
23812 cat >>$CONFIG_STATUS <<\_ACEOF
23814 { (exit 0); exit 0; }
23816 chmod +x
$CONFIG_STATUS
23817 ac_clean_files
=$ac_clean_files_save
23820 # configure is writing to config.log, and then calls config.status.
23821 # config.status does its own redirection, appending to config.log.
23822 # Unfortunately, on DOS this fails, as config.log is still kept open
23823 # by configure, so config.status won't be able to write to it; its
23824 # output is simply discarded. So we exec the FD to /dev/null,
23825 # effectively closing config.log, so it can be properly (re)opened and
23826 # appended to by config.status. When coming back to configure, we
23827 # need to make the FD available again.
23828 if test "$no_create" != yes; then
23830 ac_config_status_args
=
23831 test "$silent" = yes &&
23832 ac_config_status_args
="$ac_config_status_args --quiet"
23834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23837 # would make configure fail if this is the last instruction.
23838 $ac_cs_success ||
{ (exit 1); exit 1; }