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 GZIP_PROG 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
;;
1721 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1728 if test -f /usr
/lib
/crti.o
; then
1730 cat >>confdefs.h
<<\_ACEOF
1736 case "${canonical}" in
1737 alpha
*-*-netbsd*) machine
=alpha
;;
1738 i
[3456]86-*-netbsd*) machine
=intel386
;;
1740 # This is somewhat bogus.
1741 machine
=hp9000s300
;;
1742 powerpc-apple-netbsd
*) machine
=macppc
;;
1743 mips-
*-netbsd*) machine
=pmax
;;
1744 mipsel-
*-netbsd*) machine
=pmax
;;
1745 mipseb-
*-netbsd*) machine
=pmax
;;
1746 ns32k-
*-netbsd*) machine
=ns32000
;;
1747 powerpc-
*-netbsd*) machine
=macppc
;;
1748 sparc
*-*-netbsd*) machine
=sparc
;;
1749 vax-
*-netbsd*) machine
=vax
;;
1750 arm-
*-netbsd*) machine
=arm
;;
1757 case "${canonical}" in
1758 alpha
*-*-openbsd*) machine
=alpha
;;
1759 i386-
*-openbsd*) machine
=intel386
;;
1760 m68k-
*-openbsd*) machine
=hp9000s300
;;
1761 mipsel-
*-openbsd*) machine
=pmax
;;
1762 ns32k-
*-openbsd*) machine
=ns32000
;;
1763 sparc-
*-openbsd*) machine
=sparc
;;
1764 vax-
*-openbsd*) machine
=vax
;;
1771 case "${canonical}" in
1772 i
[3456]86-*-lynxos*) machine
=intel386
;;
1773 powerpc-
*-lynxos*) machine
=powerpc
;;
1778 arm-acorn-riscix1.1
* )
1779 machine
=acorn opsys
=riscix1-1
1781 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine
=acorn opsys
=riscix12
1790 case "${canonical}" in
1791 i
[345]86-*-bsdi*) machine
=intel386
;;
1792 sparc-
*-bsdi*) machine
=sparc
;;
1793 powerpc-
*-bsdi*) machine
=macppc
;;
1795 case "${canonical}" in
1796 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1797 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1798 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1799 *-*-bsdi3* ) opsys
=bsdos3
;;
1800 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1811 machine
=alliant4 opsys
=bsd4-2
1814 machine
=alliant-2800 opsys
=bsd4-3
1817 ## Alpha (DEC) machines.
1819 machine
=alpha opsys
=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP
=/usr
/bin
/cpp
1828 case "${canonical}" in
1829 alpha
*-dec-osf[5-9]*)
1834 alpha
*-*-linux-gnu* )
1835 machine
=alpha opsys
=gnu-linux
1839 machine
=arm opsys
=gnu-linux
1844 machine
=altos opsys
=usg5-2
1849 machine
=amdahl opsys
=usg5-2-2
1852 ## Apollo, Domain/OS
1854 machine
=apollo opsys
=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1859 machine
=att3b opsys
=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1864 machine
=7300 opsys
=usg5-2-2
1869 machine
=ibmrs6000 opsys
=aix3-2
1874 machine
=dpx2 opsys
=usg5-3
1879 machine
=sps7 opsys
=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd
* )
1889 machine
=celerity opsys
=bsd4-2
1893 ## What operating systems does this chip run that Emacs has been
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1902 mips-compaq-nonstopux
* )
1903 machine
=nonstopux opsys
=nonstopux
1907 *-convex-bsd* |
*-convex-convexos* )
1908 machine
=convex opsys
=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP
="cc -E -P"
1914 i
[3456]86-cubix-sysv* )
1915 machine
=intel386 opsys
=usg5-3
1919 cydra
*-cydrome-sysv* )
1920 machine
=cydra5 opsys
=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1930 machine
=aviion opsys
=dgux4
1932 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine
=aviion opsys
=dgux5-4-3
1937 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1938 machine
=aviion opsys
=dgux5-4r2
1941 machine
=aviion opsys
=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i
[345]86-dg-dguxR4* )
1948 machine
=aviion-intel opsys
=dgux4
1952 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1953 machine
=pmax opsys
=bsd4-2
1955 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1956 machine
=pmax opsys
=bsd4-3
1959 machine
=pmax opsys
=ultrix4-3
1962 machine
=pmax opsys
=osf1
1964 mips-dec-mach_bsd4.3
* )
1965 machine
=pmax opsys
=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1970 machine
=delta opsys
=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1973 if test -s /etc
/167config
1974 then CC
="gnucc -m68040"
1975 else CC
="gnucc -m68881"
1978 if test -z "`type gcc | grep 'not found'`"
1984 m88k-motorola-sysv4
* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine
=delta88k opsys
=usg5-4-2
1991 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1992 machine
=delta88k opsys
=usg5-3
1997 machine
=dual opsys
=usg5-2
1999 m68
*-dual-uniplus* )
2000 machine
=dual opsys
=unipl5-2
2005 machine
=elxsi opsys
=usg5-2
2010 machine
=ns16000 opsys
=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2018 machine
=gould opsys
=bsd4-2
2021 machine
=gould opsys
=bsd4-3
2024 machine
=gould-np1 opsys
=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2033 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2035 NON_GNU_CPP
="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2039 machine
=nh3000 opsys
=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix
)
2043 machine
=nh6000 opsys
=powerunix
2044 NON_GNU_CPP
="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1
-hitachi-hiuxmpp* )
2048 machine
=sr2k opsys
=hiuxmpp
2050 hppa1.1
-hitachi-hiuxwe2* )
2051 machine
=sr2k opsys
=hiuxwe2
2054 xps
*-honeywell-sysv* )
2055 machine
=xps100 opsys
=usg5-2
2058 ## HP 9000 series 200 or 300
2060 machine
=hp9000s300 opsys
=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2069 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2070 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2071 *) machine
=hp9000s300 opsys
=hpux
;;
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 machine
=hp800 opsys
=hpux
2080 machine
=hp800 opsys
=hpux8
2082 hppa
*-hp-hpux9shr* )
2083 machine
=hp800 opsys
=hpux9shr
2086 machine
=hp800 opsys
=hpux9
2088 hppa
*-hp-hpux10.2
* )
2089 machine
=hp800 opsys
=hpux10-20
2092 machine
=hp800 opsys
=hpux10
2094 hppa
*-hp-hpux1[1-9]* )
2095 machine
=hp800 opsys
=hpux11
2098 hppa
*-*-linux-gnu* )
2099 machine
=hp800 opsys
=gnu-linux
2102 ## HP 9000 series 700 and 800, running HP/UX
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2109 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2111 *) machine
=hp800 opsys
=hpux10
;;
2115 machine
=hp800 opsys
=nextstep
2120 machine
=orion opsys
=bsd4-2
2122 clipper-orion-bsd
* )
2123 machine
=orion105 opsys
=bsd4-2
2127 i
[3456]86-ibm-aix1.1
* )
2128 machine
=ibmps2-aix opsys
=usg5-2-2
2130 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2131 machine
=ibmps2-aix opsys
=usg5-3
2134 machine
=ibm370aix opsys
=usg5-3
2137 machine
=ibms390 opsys
=gnu-linux
2139 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2140 machine
=ibmrs6000 opsys
=aix3-1
2142 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2143 machine
=ibmrs6000 opsys
=aix3-2-5
2145 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2146 machine
=ibmrs6000 opsys
=aix4-1
2148 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2149 machine
=ibmrs6000 opsys
=aix4-2
2151 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2152 machine
=ibmrs6000 opsys
=aix4-2
2154 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2155 machine
=ibmrs6000 opsys
=aix4
2157 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2158 machine
=ibmrs6000 opsys
=aix4-1
2160 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2161 machine
=ibmrs6000 opsys
=aix3-2
2164 machine
=ibmrt opsys
=bsd4-3
2167 machine
=ibmrt opsys
=bsd4-2
2170 machine
=ibmrt opsys
=bsd4-3
2173 machine
=ibmrt opsys
=bsd4-2
2176 machine
=ibmrt opsys
=bsd4-3
2179 machine
=ibmrt opsys
=bsd4-3
2182 machine
=ibmrt-aix opsys
=usg5-2-2
2185 ## Integrated Solutions `Optimum V'
2187 machine
=isi-ov opsys
=bsd4-2
2190 machine
=isi-ov opsys
=bsd4-3
2193 ## Intel 386 machines where we do care about the manufacturer
2194 i
[3456]86-intsys-sysv* )
2195 machine
=is386 opsys
=usg5-2-2
2199 i
[3456]86-prime-sysv* )
2200 machine
=i386 opsys
=usg5-3
2203 ## Sequent Symmetry running Dynix
2204 i
[3456]86-sequent-bsd* )
2205 machine
=symmetry opsys
=bsd4-3
2208 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2209 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2210 machine
=sequent-ptx opsys
=ptx4
2211 NON_GNU_CPP
=/lib
/cpp
2214 ## Sequent Symmetry running DYNIX/ptx
2215 ## Use the old cpp rather than the newer ANSI one.
2216 i
[3456]86-sequent-ptx* )
2217 machine
=sequent-ptx opsys
=ptx
2218 NON_GNU_CPP
="/lib/cpp"
2221 ## ncr machine running svr4.3.
2222 i
[3456]86-ncr-sysv4.3
)
2223 machine
=ncr386 opsys
=usg5-4-3
2226 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2227 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2228 i
[3456]86-ncr-sysv* )
2229 machine
=ncr386 opsys
=usg5-4-2
2232 ## Intel Paragon OSF/1
2234 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2239 machine
=i860 opsys
=usg5-4
2240 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2241 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2244 ## Macintosh PowerPC
2245 powerpc
*-*-linux-gnu* )
2246 machine
=macppc opsys
=gnu-linux
2249 ## Masscomp machines
2250 m68
*-masscomp-rtu* )
2251 machine
=masscomp opsys
=rtu
2254 ## Megatest machines
2255 m68
*-megatest-bsd* )
2256 machine
=mega68 opsys
=bsd4-2
2259 ## Workstations sold by MIPS
2260 ## This is not necessarily all workstations using the MIPS processor -
2261 ## Irises are produced by SGI, and DECstations by DEC.
2263 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2264 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2265 ## it gives for choosing between the alternatives seems to be "Use
2266 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2267 ## the BSD world." I'll assume that these are instructions for
2268 ## handling two odd situations, and that every other situation
2269 ## should use mips.h and usg5-2-2, they being listed first.
2272 ## Fall through to the general code at the bottom to decide on the OS.
2274 mips-mips-riscos4
* )
2275 machine
=mips4 opsys
=bsd4-3
2276 NON_GNU_CC
="cc -systype bsd43"
2277 NON_GNU_CPP
="cc -systype bsd43 -E"
2279 mips-mips-riscos5
* )
2280 machine
=mips4 opsys
=riscos5
2281 NON_GNU_CC
="cc -systype bsd43"
2282 NON_GNU_CPP
="cc -systype bsd43 -E"
2285 machine
=mips opsys
=bsd4-3
2288 machine
=mips opsys
=usg5-2-2
2292 m68
*-next-* | m68k-
*-nextstep* )
2293 machine
=m68k opsys
=nextstep
2296 ## The complete machine from National Semiconductor
2298 machine
=ns32000 opsys
=usg5-2
2302 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2303 machine
=tower32 opsys
=usg5-2-2
2305 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2306 machine
=tower32v3 opsys
=usg5-3
2311 machine
=ews4800 opsys
=ux4800
2314 ## Nixdorf Targon 31
2315 m68
*-nixdorf-sysv* )
2316 machine
=targon31 opsys
=usg5-2-2
2321 machine
=nu opsys
=usg5-2
2326 machine
=plexus opsys
=usg5-2
2330 ## I don't really have any idea what sort of processor the Pyramid has,
2331 ## so I'm assuming it is its own architecture.
2332 pyramid-pyramid-bsd
* )
2333 machine
=pyramid opsys
=bsd4-2
2337 ns32k-sequent-bsd4.2
* )
2338 machine
=sequent opsys
=bsd4-2
2340 ns32k-sequent-bsd4.3
* )
2341 machine
=sequent opsys
=bsd4-3
2345 mips-siemens-sysv
* | mips-sni-sysv
*)
2346 machine
=mips-siemens opsys
=usg5-4
2347 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2348 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2351 ## Silicon Graphics machines
2352 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2354 machine
=irist opsys
=iris3-5
2356 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2357 machine
=irist opsys
=iris3-6
2361 machine
=iris4d opsys
=irix3-3
2364 machine
=iris4d opsys
=irix4-0
2367 machine
=iris4d opsys
=irix6-5
2368 # Without defining _LANGUAGE_C, things get masked out in the headers
2369 # so that, for instance, grepping for `free' in stdlib.h fails and
2370 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2371 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2372 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2375 machine
=iris4d opsys
=irix6-0
2376 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2377 # but presumably it does no harm.
2378 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2379 # -32 probably isn't necessary in later v.6s -- anyone know which?
2380 NON_GCC_TEST_OPTIONS
=-32
2382 mips-sgi-irix5.
[01]* )
2383 machine
=iris4d opsys
=irix5-0
2385 mips-sgi-irix5
* | mips-sgi-irix
* )
2386 machine
=iris4d opsys
=irix5-2
2391 machine
=news opsys
=bsd4-2
2394 machine
=news opsys
=bsd4-3
2396 m68
*-sony-newsos3* | m68
*-sony-news3*)
2397 machine
=news opsys
=bsd4-3
2399 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2400 machine
=news-risc opsys
=bsd4-3
2402 mips-sony-newsos6
* )
2403 machine
=news-r6 opsys
=newsos6
2406 machine
=news-risc opsys
=newsos5
2411 machine
=stride opsys
=usg5-2
2415 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2416 machine
=sparc opsys
=gnu-linux
2419 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2420 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2421 | rs6000-
*-solaris2*)
2422 case "${canonical}" in
2423 m68
*-sunos1* ) machine
=sun1
;;
2424 m68
*-sunos2* ) machine
=sun2
;;
2425 m68
* ) machine
=sun3
;;
2426 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2427 i
[3456]86-*-* ) machine
=intel386
;;
2428 powerpcle
* ) machine
=powerpcle
;;
2429 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2430 sparc
* ) machine
=sparc
;;
2433 case "${canonical}" in
2434 ## The Sun386 didn't get past 4.0.
2435 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2436 *-sunos4.0
* ) opsys
=sunos4-0
;;
2437 *-sunos4.1.
[3-9]*noshare
)
2438 ## This name is sunos413 instead of sunos4-1-3
2439 ## to avoid a file name conflict on MSDOS.
2441 NON_GNU_CPP
=/usr
/lib
/cpp
2442 NON_GCC_TEST_OPTIONS
=-Bstatic
2443 GCC_TEST_OPTIONS
=-static
2445 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2447 NON_GNU_CPP
=/usr
/lib
/cpp
2449 *-sunos4* |
*-sunos )
2451 NON_GCC_TEST_OPTIONS
=-Bstatic
2452 GCC_TEST_OPTIONS
=-static
2454 *-sunos5.3
* |
*-solaris2.3
* )
2456 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2458 *-sunos5.4
* |
*-solaris2.4
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2463 *-sunos5.5
* |
*-solaris2.5
* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2468 *-sunos5.6
* |
*-solaris2.6
* )
2470 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2473 *-sunos5* |
*-solaris* )
2475 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2479 ## Watch out for a compiler that we know will not work.
2480 case "${canonical}" in
2481 *-solaris* |
*-sunos5* )
2482 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2483 ## /usr/ucb/cc doesn't work;
2484 ## we should find some other compiler that does work.
2492 machine
=sparc opsys
=nextstep
2496 m68
*-tadpole-sysv* )
2497 machine
=tad68k opsys
=usg5-3
2501 tahoe-tahoe-bsd4.2
* )
2502 machine
=tahoe opsys
=bsd4-2
2504 tahoe-tahoe-bsd4.3
* )
2505 machine
=tahoe opsys
=bsd4-3
2508 ## Tandem Integrity S2
2510 machine
=tandem-s2 opsys
=usg5-3
2514 m88k-tektronix-sysv3
* )
2515 machine
=tekxd88 opsys
=usg5-3
2518 ## Tektronix 16000 box (6130?)
2519 ns16k-tektronix-bsd
* )
2520 machine
=ns16000 opsys
=bsd4-2
2523 ## src/m/tek4300.h hints that this is a m68k machine.
2524 m68
*-tektronix-bsd* )
2525 machine
=tek4300 opsys
=bsd4-3
2529 ## We seem to have lost the machine-description file titan.h!
2531 machine
=titan opsys
=usg5-3
2534 ## Ustation E30 (SS5E)
2535 m68
*-unisys-uniplus* )
2536 machine
=ustation opsystem
=unipl5-2
2542 case "${canonical}" in
2543 *-bsd4.1
* ) opsys
=bsd4-1
;;
2544 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2545 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2546 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2547 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2548 *-vms* ) opsys
=vms
;;
2554 ns16k-whitechapel-
* )
2556 ## We don't know what sort of OS runs on these; we'll let the
2557 ## operating system guessing code below try.
2562 machine
=wicat opsys
=usg5-2
2567 machine
=ia64 opsys
=gnu-linux
2570 ## Intel 386 machines where we don't care about the manufacturer
2573 case "${canonical}" in
2574 *-cygwin ) opsys
=cygwin
;;
2575 *-darwin* ) opsys
=darwin
2576 CPP
="${CC-cc} -E -no-cpp-precomp"
2578 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2579 *-isc2.2
* ) opsys
=isc2-2
;;
2580 *-isc4.0
* ) opsys
=isc4-0
;;
2581 *-isc4.
* ) opsys
=isc4-1
2582 GCC_TEST_OPTIONS
=-posix
2583 NON_GCC_TEST_OPTIONS
=-Xp
2585 *-isc* ) opsys
=isc3-0
;;
2586 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2587 *-esix* ) opsys
=esix
;;
2588 *-xenix* ) opsys
=xenix
;;
2589 *-linux-gnu* ) opsys
=gnu-linux
;;
2590 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2591 *-sco3.2v5
* ) opsys
=sco5
2592 NON_GNU_CPP
=/lib
/cpp
2593 # Prevent -belf from being passed to $CPP.
2594 # /lib/cpp does not accept it.
2595 OVERRIDE_CPPFLAGS
=" "
2597 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2598 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2599 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2600 *-386bsd* ) opsys
=386bsd
;;
2601 *-nextstep* ) opsys
=nextstep
;;
2602 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2606 ## m68k Linux-based GNU system
2608 machine
=m68k opsys
=gnu-linux
2611 ## Mips Linux-based GNU system
2612 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2613 machine
=mips opsys
=gnu-linux
2617 sparc-fujitsu-sysv4
* )
2618 machine
=sparc opsys
=uxpds
2619 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2624 f301-fujitsu-uxpv4.1
)
2625 machine
=f301 opsys
=uxpv
2628 ## Darwin / Mac OS X
2629 powerpc-apple-darwin
* )
2630 machine
=powermac opsys
=darwin
2631 # Define CPP as follows to make autoconf work correctly.
2632 CPP
="${CC-cc} -E -no-cpp-precomp"
2633 # Use fink packages if available.
2634 if test -d /sw
/include
&& test -d /sw
/lib
; then
2635 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2636 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2637 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-
*-linux-gnu* )
2643 machine
=amdx86-64 opsys
=gnu-linux
2651 ### If the code above didn't choose an operating system, just choose
2652 ### an operating system based on the configuration name. You really
2653 ### only want to use this when you have no idea what the right
2654 ### operating system is; if you know what operating systems a machine
2655 ### runs, it's cleaner to make it explicit in the case statement
2657 if test x
"${opsys}" = x
; then
2658 case "${canonical}" in
2659 *-gnu* ) opsys
=gnu
;;
2660 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2661 *-bsd4.2
) opsys
=bsd4-2
;;
2662 *-bsd4.3
) opsys
=bsd4-3
;;
2663 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2664 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2665 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2666 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2667 *-sysv4.2uw
* ) opsys
=unixware
;;
2668 *-sysv5uw* ) opsys
=unixware
;;
2669 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2670 *-sysv4.1
* |
*-sysvr4.1
* )
2671 NON_GNU_CPP
=/usr
/lib
/cpp
2673 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2674 if [ x
$NON_GNU_CPP = x
]; then
2675 if [ -f /usr
/ccs
/lib
/cpp
]; then
2676 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2678 NON_GNU_CPP
=/lib
/cpp
2682 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2699 machfile
="m/${machine}.h"
2700 opsysfile
="s/${opsys}.h"
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified
=yes
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS
="$CFLAGS"
2710 "yes" ) CC
="gcc" GCC
=yes ;;
2711 "no" ) : ${CC=cc} ;;
2715 ac_cpp
='$CPP $CPPFLAGS'
2716 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2722 echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC
="$CC" # Let the user override the test.
2730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir
=.
2735 for ac_exec_ext
in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test -n "$CC"; then
2748 echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2756 if test -z "$ac_cv_prog_CC"; then
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc
; ac_word
=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir
=.
2773 for ac_exec_ext
in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC
="gcc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787 echo "${ECHO_T}$ac_ct_CC" >&6
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC
="$CC" # Let the user override the test.
2810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir
=.
2815 for ac_exec_ext
in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2836 if test -z "$ac_cv_prog_CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc
; ac_word
=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir
=.
2853 for ac_exec_ext
in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC
="cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867 echo "${ECHO_T}$ac_ct_CC" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc
; ac_word
=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC
="$CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected
=yes
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy
$ac_cv_prog_CC
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2918 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2924 if test -n "$CC"; then
2925 echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC
="$CC" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CC"; then
2965 echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$CC" && break
2975 if test -z "$CC"; then
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy
$ac_prog; ac_word
=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CC
="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 echo "${ECHO_T}$ac_ct_CC" >&6
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 test -n "$ac_ct_CC" && break
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO:" \
3031 "checking for C compiler version" >&5
3032 ac_compiler
=`set X $ac_compile; echo $2`
3033 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3034 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3039 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3044 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.
$ac_ext <<_ACEOF
3052 cat confdefs.h
>>conftest.
$ac_ext
3053 cat >>conftest.
$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 ac_clean_files_save
=$ac_clean_files
3065 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3071 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3073 (eval $ac_link_default) 2>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 # Find the output, starting from the most likely. This scheme is
3078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3081 # Be careful to initialize this variable, since it used to be cached.
3082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3084 # b.out is created by i960 compilers.
3085 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3087 test -f "$ac_file" ||
continue
3089 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3092 # This is the source file.
3095 # We found the default executable, but exeext='' is most
3099 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # FIXME: I believe we export ac_cv_exeext for Libtool,
3101 # but it would be cool to find out if it's true. Does anybody
3102 # maintain Libtool? --akim.
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.
$ac_ext >&5
3113 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: C compiler cannot create executables
3116 See \`config.log' for more details." >&2;}
3117 { (exit 77); exit 77; }; }
3120 ac_exeext
=$ac_cv_exeext
3121 echo "$as_me:$LINENO: result: $ac_file" >&5
3122 echo "${ECHO_T}$ac_file" >&6
3124 # Check the compiler produces executables we can run. If not, either
3125 # the compiler is broken, or we cross compile.
3126 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3129 # If not cross compiling, check that we can run a simple program.
3130 if test "$cross_compiling" != yes; then
3131 if { ac_try
='./$ac_file'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 if test "$cross_compiling" = maybe
; then
3142 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3155 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3156 ac_clean_files
=$ac_clean_files_save
3157 # Check the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3160 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3161 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3162 echo "${ECHO_T}$cross_compiling" >&6
3164 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3165 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; then
3171 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3173 # work properly (i.e., refer to `conftest.exe'), while it won't with
3175 for ac_file
in conftest.exe conftest conftest.
*; do
3176 test -f "$ac_file" ||
continue
3178 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3179 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3193 rm -f conftest
$ac_cv_exeext
3194 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3195 echo "${ECHO_T}$ac_cv_exeext" >&6
3197 rm -f conftest.
$ac_ext
3198 EXEEXT
=$ac_cv_exeext
3200 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3201 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3202 if test "${ac_cv_objext+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.
$ac_ext <<_ACEOF
3208 cat confdefs.h
>>conftest.
$ac_ext
3209 cat >>conftest.
$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3220 rm -f conftest.o conftest.obj
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; then
3226 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3228 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3229 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.
$ac_ext >&5
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3244 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247 echo "${ECHO_T}$ac_cv_objext" >&6
3248 OBJEXT
=$ac_cv_objext
3250 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 cat >conftest.
$ac_ext <<_ACEOF
3258 cat confdefs.h
>>conftest.
$ac_ext
3259 cat >>conftest.
$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3273 rm -f conftest.
$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1
>conftest.err
3279 cat conftest.err
>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try
='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.
$ac_ext >&5
3301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3302 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3307 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS
=${CFLAGS+set}
3309 ac_save_CFLAGS
=$CFLAGS
3311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cc_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.
$ac_ext <<_ACEOF
3319 cat confdefs.h
>>conftest.
$ac_ext
3320 cat >>conftest.
$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 rm -f conftest.
$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1
>conftest.err
3337 cat conftest.err
>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try
='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.
$ac_ext >&5
3359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS
=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3372 if test "$GCC" = yes; then
3378 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3379 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3380 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_cv_prog_cc_stdc
=no
3385 cat >conftest.
$ac_ext <<_ACEOF
3388 cat confdefs.h
>>conftest.
$ac_ext
3389 cat >>conftest.
$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3393 #include <sys/types.h>
3394 #include <sys/stat.h>
3395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3396 struct buf { int x; };
3397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398 static char *e (p, i)
3404 static char *f (char * (*g) (char **, int), char **p, ...)
3409 s = g (p, va_arg (v,int));
3414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3415 function prototypes and stuff, but not '\xHH' hex character constants.
3416 These don't provoke an error unfortunately, instead are silently treated
3417 as 'x'. The following induces an error, until -std1 is added to get
3418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3419 array size at least. It's necessary to write '\x00'==0 to get something
3420 that's true only with -std1. */
3421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423 int test (int i, double x);
3424 struct s1 {int (*f) (int a);};
3425 struct s2 {int (*f) (double a);};
3426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3437 # Don't try gcc -ansi; that turns off useful extensions and
3438 # breaks some systems' header files.
3439 # AIX -qlanglvl=ansi
3440 # Ultrix and OSF/1 -std1
3441 # HP-UX 10.20 and later -Ae
3442 # HP-UX older versions -Aa -D_HPUX_SOURCE
3443 # SVR4 -Xc -D__EXTENSIONS__
3444 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446 CC
="$ac_save_CC $ac_arg"
3447 rm -f conftest.
$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>conftest.er1
3451 grep -v '^ *+' conftest.er1
>conftest.err
3453 cat conftest.err
>&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; } &&
3462 { ac_try
='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_prog_cc_stdc
=$ac_arg
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3475 rm -f conftest.err conftest.
$ac_objext
3477 rm -f conftest.
$ac_ext conftest.
$ac_objext
3482 case "x$ac_cv_prog_cc_stdc" in
3484 echo "$as_me:$LINENO: result: none needed" >&5
3485 echo "${ECHO_T}none needed" >&6 ;;
3487 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3489 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3492 # Some people use a C++ compiler to compile C. Since we use `exit',
3493 # in C++ we need to declare it. In case someone uses the same compiler
3494 # for both compiling C and C++ we need to have the C++ compiler decide
3495 # the declaration of exit, since it's the most demanding environment.
3496 cat >conftest.
$ac_ext <<_ACEOF
3501 rm -f conftest.
$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1
>conftest.err
3507 cat conftest.err
>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try
='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 for ac_declaration
in \
3524 'extern "C" void std::exit (int) throw (); using std::exit;' \
3525 'extern "C" void std::exit (int); using std::exit;' \
3526 'extern "C" void exit (int) throw ();' \
3527 'extern "C" void exit (int);' \
3530 cat >conftest.
$ac_ext <<_ACEOF
3533 cat confdefs.h
>>conftest.
$ac_ext
3534 cat >>conftest.
$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3546 rm -f conftest.
$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1
>conftest.err
3552 cat conftest.err
>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try
='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.
$ac_ext >&5
3574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3575 cat >conftest.
$ac_ext <<_ACEOF
3578 cat confdefs.h
>>conftest.
$ac_ext
3579 cat >>conftest.
$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3590 rm -f conftest.
$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1
>conftest.err
3596 cat conftest.err
>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try
='test -s conftest.$ac_objext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.
$ac_ext >&5
3617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3620 if test -n "$ac_declaration"; then
3621 echo '#ifdef __cplusplus' >>confdefs.h
3622 echo $ac_declaration >>confdefs.h
3623 echo '#endif' >>confdefs.h
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.
$ac_ext >&5
3631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3633 ac_cpp
='$CPP $CPPFLAGS'
3634 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3639 # On Suns, sometimes $CPP names a directory.
3640 if test -n "$CPP" && test -d "$CPP"; then
3644 #### Some systems specify a CPP to use unless we are using GCC.
3645 #### Now that we know whether we are using GCC, we can decide whether
3646 #### to use that one.
3647 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3652 #### Some systems specify a CC to use unless we are using GCC.
3653 #### Now that we know whether we are using GCC, we can decide whether
3654 #### to use that one.
3655 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3656 test x
$cc_specified != xyes
3661 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3663 CC
="$CC $GCC_TEST_OPTIONS"
3666 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3668 CC
="$CC $NON_GCC_TEST_OPTIONS"
3671 ### Use -Wno-pointer-sign if the compiler supports it
3672 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3673 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3674 SAVE_CFLAGS
="$CFLAGS"
3675 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3677 cat >conftest.
$ac_ext <<_ACEOF
3680 cat confdefs.h
>>conftest.
$ac_ext
3681 cat >>conftest.
$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.
$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1
>conftest.err
3698 cat conftest.err
>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; } &&
3707 { ac_try
='test -s conftest.$ac_objext'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.
$ac_ext >&5
3720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3721 if test $has_option = yes; then
3722 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
3724 echo "$as_me:$LINENO: result: $has_option" >&5
3725 echo "${ECHO_T}$has_option" >&6
3726 CFLAGS
="$SAVE_CFLAGS"
3730 #### Some other nice autoconf tests.
3732 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3733 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3735 if test "$LN_S" = "ln -s"; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6
3739 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3740 echo "${ECHO_T}no, using $LN_S" >&6
3744 ac_cpp
='$CPP $CPPFLAGS'
3745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3748 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3754 if test -z "$CPP"; then
3755 if test "${ac_cv_prog_CPP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 # Double quotes because CPP needs to be expanded
3759 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762 for ac_c_preproc_warn_flag
in '' yes
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3777 # include <limits.h>
3779 # include <assert.h>
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1
>conftest.err
3788 cat conftest.err
>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev
/null
; then
3791 if test -s conftest.err
; then
3792 ac_cpp_err
=$ac_c_preproc_warn_flag
3793 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3800 if test -z "$ac_cpp_err"; then
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.
$ac_ext >&5
3806 # Broken: fails on valid input.
3809 rm -f conftest.err conftest.
$ac_ext
3811 # OK, works on sane cases. Now check whether non-existent headers
3812 # can be detected and how.
3813 cat >conftest.
$ac_ext <<_ACEOF
3816 cat confdefs.h
>>conftest.
$ac_ext
3817 cat >>conftest.
$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <ac_nonexistent.h>
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3824 grep -v '^ *+' conftest.er1
>conftest.err
3826 cat conftest.err
>&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev
/null
; then
3829 if test -s conftest.err
; then
3830 ac_cpp_err
=$ac_c_preproc_warn_flag
3831 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3838 if test -z "$ac_cpp_err"; then
3839 # Broken: success on invalid input.
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.
$ac_ext >&5
3845 # Passes both tests.
3849 rm -f conftest.err conftest.
$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.
$ac_ext
3854 if $ac_preproc_ok; then
3866 echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6
3869 for ac_c_preproc_warn_flag
in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.
$ac_ext <<_ACEOF
3880 cat confdefs.h
>>conftest.
$ac_ext
3881 cat >>conftest.
$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 # include <limits.h>
3886 # include <assert.h>
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3893 grep -v '^ *+' conftest.er1
>conftest.err
3895 cat conftest.err
>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev
/null
; then
3898 if test -s conftest.err
; then
3899 ac_cpp_err
=$ac_c_preproc_warn_flag
3900 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3907 if test -z "$ac_cpp_err"; then
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.
$ac_ext >&5
3913 # Broken: fails on valid input.
3916 rm -f conftest.err conftest.
$ac_ext
3918 # OK, works on sane cases. Now check whether non-existent headers
3919 # can be detected and how.
3920 cat >conftest.
$ac_ext <<_ACEOF
3923 cat confdefs.h
>>conftest.
$ac_ext
3924 cat >>conftest.
$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3931 grep -v '^ *+' conftest.er1
>conftest.err
3933 cat conftest.err
>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev
/null
; then
3936 if test -s conftest.err
; then
3937 ac_cpp_err
=$ac_c_preproc_warn_flag
3938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3945 if test -z "$ac_cpp_err"; then
3946 # Broken: success on invalid input.
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.
$ac_ext >&5
3952 # Passes both tests.
3956 rm -f conftest.err conftest.
$ac_ext
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.
$ac_ext
3961 if $ac_preproc_ok; then
3964 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&5
3966 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3972 ac_cpp
='$CPP $CPPFLAGS'
3973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3977 # Find a good install program. We prefer a C program (faster),
3978 # so one script is as good as another. But avoid the broken or
3979 # incompatible versions:
3980 # SysV /etc/install, /usr/sbin/install
3981 # SunOS /usr/etc/install
3982 # IRIX /sbin/install
3984 # AmigaOS /C/install, which installs bootblocks on floppy discs
3985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3988 # OS/2's system install, which has a completely different semantic
3989 # ./install, which can be erroneously created by make from ./install.sh.
3990 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3992 if test -z "$INSTALL"; then
3993 if test "${ac_cv_path_install+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir
=.
4001 # Account for people who put trailing slashes in PATH elements.
4003 .
/ | .
// |
/cC
/* | \
4004 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4005 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4008 # OSF1 and SCO ODT 3.0 have their own names for install.
4009 # Don't use installbsd from OSF since it installs stuff as root
4011 for ac_prog
in ginstall scoinst
install; do
4012 for ac_exec_ext
in '' $ac_executable_extensions; do
4013 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4014 if test $ac_prog = install &&
4015 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4016 # AIX install. It has an incompatible calling convention.
4018 elif test $ac_prog = install &&
4019 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4020 # program-specific install script used by HP pwplus--don't use.
4023 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL
=$ac_cv_path_install
4038 # As a last resort, use the slow shell script. We don't cache a
4039 # path for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the path is relative.
4042 INSTALL
=$ac_install_sh
4045 echo "$as_me:$LINENO: result: $INSTALL" >&5
4046 echo "${ECHO_T}$INSTALL" >&6
4048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049 # It thinks the first close brace ends the variable substitution.
4050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4054 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4056 if test "x$RANLIB" = x
; then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4059 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_RANLIB+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 if test -n "$RANLIB"; then
4066 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 RANLIB
=$ac_cv_prog_RANLIB
4085 if test -n "$RANLIB"; then
4086 echo "$as_me:$LINENO: result: $RANLIB" >&5
4087 echo "${ECHO_T}$RANLIB" >&6
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4094 if test -z "$ac_cv_prog_RANLIB"; then
4095 ac_ct_RANLIB
=$RANLIB
4096 # Extract the first word of "ranlib", so it can be a program name with args.
4097 set dummy ranlib
; ac_word
=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 if test -n "$ac_ct_RANLIB"; then
4104 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir
=.
4111 for ac_exec_ext
in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4123 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4124 if test -n "$ac_ct_RANLIB"; then
4125 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4126 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4132 RANLIB
=$ac_ct_RANLIB
4134 RANLIB
="$ac_cv_prog_RANLIB"
4138 # Extract the first word of "install-info", so it can be a program name with args.
4139 set dummy install-info
; ac_word
=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 case $INSTALL_INFO in
4147 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir
=.
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4169 if test -n "$INSTALL_INFO"; then
4170 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4171 echo "${ECHO_T}$INSTALL_INFO" >&6
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4177 # Extract the first word of "install-info", so it can be a program name with args.
4178 set dummy install-info
; ac_word
=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 case $INSTALL_INFO in
4186 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4190 for as_dir
in /usr
/sbin
4193 test -z "$as_dir" && as_dir
=.
4194 for ac_exec_ext
in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4208 if test -n "$INSTALL_INFO"; then
4209 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4210 echo "${ECHO_T}$INSTALL_INFO" >&6
4212 echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4216 # Extract the first word of "install-info", so it can be a program name with args.
4217 set dummy install-info
; ac_word
=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 case $INSTALL_INFO in
4225 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir
=.
4233 for ac_exec_ext
in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4246 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4248 if test -n "$INSTALL_INFO"; then
4249 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4250 echo "${ECHO_T}$INSTALL_INFO" >&6
4252 echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4256 # Extract the first word of "gzip", so it can be a program name with args.
4257 set dummy
gzip; ac_word
=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir
=.
4273 for ac_exec_ext
in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4287 if test -n "$GZIP_PROG"; then
4288 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4289 echo "${ECHO_T}$GZIP_PROG" >&6
4291 echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4297 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4299 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4302 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4304 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4308 late_LDFLAGS
=$LDFLAGS
4309 if test "$GCC" = yes; then
4310 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4312 LDFLAGS
="$LDFLAGS -znocombreloc"
4315 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4316 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4317 cat >conftest.
$ac_ext <<_ACEOF
4320 rm -f conftest.
$ac_objext conftest
$ac_exeext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4322 (eval $ac_link) 2>conftest.er1
4324 grep -v '^ *+' conftest.er1
>conftest.err
4326 cat conftest.err
>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try
='test -s conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.
$ac_ext >&5
4347 LDFLAGS
=$late_LDFLAGS
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4351 rm -f conftest.err conftest.
$ac_objext \
4352 conftest
$ac_exeext conftest.
$ac_ext
4355 echo "$as_me:$LINENO: checking for egrep" >&5
4356 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4357 if test "${ac_cv_prog_egrep+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4361 then ac_cv_prog_egrep
='grep -E'
4362 else ac_cv_prog_egrep
='egrep'
4365 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4366 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4367 EGREP
=$ac_cv_prog_egrep
4371 echo "$as_me:$LINENO: checking for AIX" >&5
4372 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4373 cat >conftest.
$ac_ext <<_ACEOF
4376 cat confdefs.h
>>conftest.
$ac_ext
4377 cat >>conftest.
$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385 $EGREP "yes" >/dev
/null
2>&1; then
4386 echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4388 cat >>confdefs.h
<<\_ACEOF
4389 #define _ALL_SOURCE 1
4393 echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4401 #### Extract some information from the operating system and machine files.
4403 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4404 - which libraries the lib-src programs will want, and
4405 - whether the GNU malloc routines are usable..." >&5
4406 echo "$as_me: checking the machine- and system-dependent files to find out
4407 - which libraries the lib-src programs will want, and
4408 - whether the GNU malloc routines are usable..." >&6;}
4410 ### First figure out CFLAGS (which we use for running the compiler here)
4411 ### and REAL_CFLAGS (which we use for real compilation).
4412 ### The two are the same except on a few systems, where they are made
4413 ### different to work around various lossages. For example,
4414 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4415 ### as implying static linking.
4417 ### If the CFLAGS env var is specified, we use that value
4418 ### instead of the default.
4420 ### It's not important that this name contain the PID; you can't run
4421 ### two configures in the same directory and have anything work
4423 tempcname
="conftest.c"
4426 #include "'${srcdir}'/src/'${opsysfile}'"
4427 #include "'${srcdir}'/src/'${machfile}'"
4428 #ifndef LIBS_MACHINE
4429 #define LIBS_MACHINE
4434 #ifndef C_SWITCH_SYSTEM
4435 #define C_SWITCH_SYSTEM
4437 #ifndef C_SWITCH_MACHINE
4438 #define C_SWITCH_MACHINE
4440 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4441 configure___ c_switch_system=C_SWITCH_SYSTEM
4442 configure___ c_switch_machine=C_SWITCH_MACHINE
4445 #define LIB_X11_LIB -lX11
4448 #ifndef LIBX11_MACHINE
4449 #define LIBX11_MACHINE
4452 #ifndef LIBX11_SYSTEM
4453 #define LIBX11_SYSTEM
4455 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4458 configure___ unexec=UNEXEC
4460 configure___ unexec=unexec.o
4463 #ifdef SYSTEM_MALLOC
4464 configure___ system_malloc=yes
4466 configure___ system_malloc=no
4469 #ifdef USE_MMAP_FOR_BUFFERS
4470 configure___ use_mmap_for_buffers=yes
4472 configure___ use_mmap_for_buffers=no
4475 #ifndef C_DEBUG_SWITCH
4476 #define C_DEBUG_SWITCH -g
4479 #ifndef C_OPTIMIZE_SWITCH
4481 #define C_OPTIMIZE_SWITCH -O2
4483 #define C_OPTIMIZE_SWITCH -O
4487 #ifndef C_WARNINGS_SWITCH
4488 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4491 #ifndef LD_SWITCH_MACHINE
4492 #define LD_SWITCH_MACHINE
4495 #ifndef LD_SWITCH_SYSTEM
4496 #define LD_SWITCH_SYSTEM
4499 #ifndef LD_SWITCH_X_SITE_AUX
4500 #define LD_SWITCH_X_SITE_AUX
4503 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4504 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4506 #ifdef THIS_IS_CONFIGURE
4508 /* Get the CFLAGS for tests in configure. */
4510 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4512 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4515 #else /* not THIS_IS_CONFIGURE */
4517 /* Get the CFLAGS for real compilation. */
4519 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4521 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4524 #endif /* not THIS_IS_CONFIGURE */
4527 # The value of CPP is a quoted variable reference, so we need to do this
4528 # to get its actual value...
4529 CPP
=`eval "echo $CPP"`
4530 eval `${CPP} -Isrc ${tempcname} \
4531 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4532 if test "x$SPECIFIED_CFLAGS" = x
; then
4533 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4534 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4536 REAL_CFLAGS
="$CFLAGS"
4540 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4542 ### Make sure subsequent tests use flags consistent with the build flags.
4544 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4545 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4547 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4553 cat >>confdefs.h
<<\_ACEOF
4554 #define _GNU_SOURCE 1
4559 # Check whether --enable-largefile or --disable-largefile was given.
4560 if test "${enable_largefile+set}" = set; then
4561 enableval
="$enable_largefile"
4564 if test "$enable_largefile" != no
; then
4566 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4567 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4568 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_cv_sys_largefile_CC
=no
4572 if test "$GCC" != yes; then
4575 # IRIX 6.2 and later do not support large files by default,
4576 # so use the C compiler's -n32 option if that helps.
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 /* Check that off_t can represent 2**63 - 1 correctly.
4585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4586 since some C++ compilers masquerading as C compilers
4587 incorrectly reject 9223372036854775807. */
4588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4590 && LARGE_OFF_T % 2147483647 == 1)
4600 rm -f conftest.
$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4604 grep -v '^ *+' conftest.er1
>conftest.err
4606 cat conftest.err
>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try
='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.
$ac_ext >&5
4627 rm -f conftest.err conftest.
$ac_objext
4629 rm -f conftest.
$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>conftest.er1
4633 grep -v '^ *+' conftest.er1
>conftest.err
4635 cat conftest.err
>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try
='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_sys_largefile_CC
=' -n32'; break
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.
$ac_ext >&5
4656 rm -f conftest.err conftest.
$ac_objext
4660 rm -f conftest.
$ac_ext
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4664 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4665 if test "$ac_cv_sys_largefile_CC" != no
; then
4666 CC
=$CC$ac_cv_sys_largefile_CC
4669 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4670 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4671 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 ac_cv_sys_file_offset_bits
=no
4676 cat >conftest.
$ac_ext <<_ACEOF
4679 cat confdefs.h
>>conftest.
$ac_ext
4680 cat >>conftest.
$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <sys/types.h>
4683 /* Check that off_t can represent 2**63 - 1 correctly.
4684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4685 since some C++ compilers masquerading as C compilers
4686 incorrectly reject 9223372036854775807. */
4687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4689 && LARGE_OFF_T % 2147483647 == 1)
4699 rm -f conftest.
$ac_objext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try
='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4727 cat >conftest.
$ac_ext <<_ACEOF
4730 cat confdefs.h
>>conftest.
$ac_ext
4731 cat >>conftest.
$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #define _FILE_OFFSET_BITS 64
4734 #include <sys/types.h>
4735 /* Check that off_t can represent 2**63 - 1 correctly.
4736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4737 since some C++ compilers masquerading as C compilers
4738 incorrectly reject 9223372036854775807. */
4739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4741 && LARGE_OFF_T % 2147483647 == 1)
4751 rm -f conftest.
$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4755 grep -v '^ *+' conftest.er1
>conftest.err
4757 cat conftest.err
>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try
='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_sys_file_offset_bits
=64; break
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.
$ac_ext >&5
4778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4782 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4783 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4784 if test "$ac_cv_sys_file_offset_bits" != no
; then
4786 cat >>confdefs.h
<<_ACEOF
4787 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4792 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4793 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4794 if test "${ac_cv_sys_large_files+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 ac_cv_sys_large_files
=no
4799 cat >conftest.
$ac_ext <<_ACEOF
4802 cat confdefs.h
>>conftest.
$ac_ext
4803 cat >>conftest.
$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #include <sys/types.h>
4806 /* Check that off_t can represent 2**63 - 1 correctly.
4807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4808 since some C++ compilers masquerading as C compilers
4809 incorrectly reject 9223372036854775807. */
4810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4812 && LARGE_OFF_T % 2147483647 == 1)
4822 rm -f conftest.
$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1
>conftest.err
4828 cat conftest.err
>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try
='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.
$ac_ext >&5
4849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4850 cat >conftest.
$ac_ext <<_ACEOF
4853 cat confdefs.h
>>conftest.
$ac_ext
4854 cat >>conftest.
$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #define _LARGE_FILES 1
4857 #include <sys/types.h>
4858 /* Check that off_t can represent 2**63 - 1 correctly.
4859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4860 since some C++ compilers masquerading as C compilers
4861 incorrectly reject 9223372036854775807. */
4862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4864 && LARGE_OFF_T % 2147483647 == 1)
4874 rm -f conftest.
$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4878 grep -v '^ *+' conftest.er1
>conftest.err
4880 cat conftest.err
>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try
='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_sys_large_files
=1; break
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.
$ac_ext >&5
4901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4906 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4907 if test "$ac_cv_sys_large_files" != no
; then
4909 cat >>confdefs.h
<<_ACEOF
4910 #define _LARGE_FILES $ac_cv_sys_large_files
4918 if test "${with_sound}" != "no"; then
4919 # Sound support for GNU/Linux and the free BSDs.
4920 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4921 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4922 if test "${ac_cv_header_stdc+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 cat >conftest.
$ac_ext <<_ACEOF
4928 cat confdefs.h
>>conftest.
$ac_ext
4929 cat >>conftest.
$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4944 rm -f conftest.
$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4948 grep -v '^ *+' conftest.er1
>conftest.err
4950 cat conftest.err
>&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try
='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_header_stdc
=yes
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.
$ac_ext >&5
4970 ac_cv_header_stdc
=no
4972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4974 if test $ac_cv_header_stdc = yes; then
4975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4976 cat >conftest.
$ac_ext <<_ACEOF
4979 cat confdefs.h
>>conftest.
$ac_ext
4980 cat >>conftest.
$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 $EGREP "memchr" >/dev
/null
2>&1; then
4989 ac_cv_header_stdc
=no
4995 if test $ac_cv_header_stdc = yes; then
4996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4997 cat >conftest.
$ac_ext <<_ACEOF
5000 cat confdefs.h
>>conftest.
$ac_ext
5001 cat >>conftest.
$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007 $EGREP "free" >/dev
/null
2>&1; then
5010 ac_cv_header_stdc
=no
5016 if test $ac_cv_header_stdc = yes; then
5017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018 if test "$cross_compiling" = yes; then
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5032 # define ISLOWER(c) \
5033 (('a' <= (c) && (c) <= 'i') \
5034 || ('j' <= (c) && (c) <= 'r') \
5035 || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5044 for (i = 0; i < 256; i++)
5045 if (XOR (islower (i), ISLOWER (i))
5046 || toupper (i) != TOUPPER (i))
5051 rm -f conftest
$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5064 echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.
$ac_ext >&5
5069 ac_cv_header_stdc
=no
5071 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5077 if test $ac_cv_header_stdc = yes; then
5079 cat >>confdefs.h
<<\_ACEOF
5080 #define STDC_HEADERS 1
5085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5095 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5096 inttypes.h stdint.h unistd.h
5098 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 $ac_includes_default
5112 #include <$ac_header>
5114 rm -f conftest.
$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>conftest.er1
5118 grep -v '^ *+' conftest.er1
>conftest.err
5120 cat conftest.err
>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; } &&
5129 { ac_try
='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 eval "$as_ac_Header=yes"
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.
$ac_ext >&5
5140 eval "$as_ac_Header=no"
5142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h
<<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5159 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5161 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo "$as_me:$LINENO: checking for $ac_header" >&5
5164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5171 # Is the header compilable?
5172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5174 cat >conftest.
$ac_ext <<_ACEOF
5177 cat confdefs.h
>>conftest.
$ac_ext
5178 cat >>conftest.
$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5181 #include <$ac_header>
5183 rm -f conftest.
$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>conftest.er1
5187 grep -v '^ *+' conftest.er1
>conftest.err
5189 cat conftest.err
>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try
='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_header_compiler
=yes
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.
$ac_ext >&5
5209 ac_header_compiler
=no
5211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213 echo "${ECHO_T}$ac_header_compiler" >&6
5215 # Is the header present?
5216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5218 cat >conftest.
$ac_ext <<_ACEOF
5221 cat confdefs.h
>>conftest.
$ac_ext
5222 cat >>conftest.
$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <$ac_header>
5226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5229 grep -v '^ *+' conftest.er1
>conftest.err
5231 cat conftest.err
>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } >/dev
/null
; then
5234 if test -s conftest.err
; then
5235 ac_cpp_err
=$ac_c_preproc_warn_flag
5236 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5243 if test -z "$ac_cpp_err"; then
5244 ac_header_preproc
=yes
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.
$ac_ext >&5
5249 ac_header_preproc
=no
5251 rm -f conftest.err conftest.
$ac_ext
5252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5253 echo "${ECHO_T}$ac_header_preproc" >&6
5255 # So? What about this header?
5256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5262 ac_header_preproc
=yes
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5279 ## ------------------------------------------ ##
5280 ## Report this to the AC_PACKAGE_NAME lists. ##
5281 ## ------------------------------------------ ##
5284 sed "s/^/$as_me: WARNING: /" >&2
5287 echo "$as_me:$LINENO: checking for $ac_header" >&5
5288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 eval "$as_ac_Header=\$ac_header_preproc"
5294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5299 cat >>confdefs.h
<<_ACEOF
5300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 # Emulation library used on NetBSD.
5308 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5309 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5310 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 ac_check_lib_save_LIBS
=$LIBS
5314 LIBS
="-lossaudio $LIBS"
5315 cat >conftest.
$ac_ext <<_ACEOF
5318 cat confdefs.h
>>conftest.
$ac_ext
5319 cat >>conftest.
$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5337 rm -f conftest.
$ac_objext conftest
$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>conftest.er1
5341 grep -v '^ *+' conftest.er1
>conftest.err
5343 cat conftest.err
>&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try
='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_lib_ossaudio__oss_ioctl
=yes
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.
$ac_ext >&5
5363 ac_cv_lib_ossaudio__oss_ioctl
=no
5365 rm -f conftest.err conftest.
$ac_objext \
5366 conftest
$ac_exeext conftest.
$ac_ext
5367 LIBS
=$ac_check_lib_save_LIBS
5369 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5370 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5371 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5405 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5406 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5407 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5408 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5411 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413 echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5421 # Is the header compilable?
5422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5424 cat >conftest.
$ac_ext <<_ACEOF
5427 cat confdefs.h
>>conftest.
$ac_ext
5428 cat >>conftest.
$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5431 #include <$ac_header>
5433 rm -f conftest.
$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
5437 grep -v '^ *+' conftest.er1
>conftest.err
5439 cat conftest.err
>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try
='test -s conftest.$ac_objext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_header_compiler
=yes
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.
$ac_ext >&5
5459 ac_header_compiler
=no
5461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5463 echo "${ECHO_T}$ac_header_compiler" >&6
5465 # Is the header present?
5466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5468 cat >conftest.
$ac_ext <<_ACEOF
5471 cat confdefs.h
>>conftest.
$ac_ext
5472 cat >>conftest.
$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <$ac_header>
5476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5477 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5479 grep -v '^ *+' conftest.er1
>conftest.err
5481 cat conftest.err
>&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev
/null
; then
5484 if test -s conftest.err
; then
5485 ac_cpp_err
=$ac_c_preproc_warn_flag
5486 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5493 if test -z "$ac_cpp_err"; then
5494 ac_header_preproc
=yes
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.
$ac_ext >&5
5499 ac_header_preproc
=no
5501 rm -f conftest.err conftest.
$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5503 echo "${ECHO_T}$ac_header_preproc" >&6
5505 # So? What about this header?
5506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5512 ac_header_preproc
=yes
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5529 ## ------------------------------------------ ##
5530 ## Report this to the AC_PACKAGE_NAME lists. ##
5531 ## ------------------------------------------ ##
5534 sed "s/^/$as_me: WARNING: /" >&2
5537 echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 eval "$as_ac_Header=\$ac_header_preproc"
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5549 cat >>confdefs.h
<<_ACEOF
5550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5559 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5560 cat >conftest.
$ac_ext <<_ACEOF
5563 cat confdefs.h
>>conftest.
$ac_ext
5564 cat >>conftest.
$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #include <sys/personality.h>
5570 personality (PER_LINUX32)
5575 rm -f conftest.
$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>conftest.er1
5579 grep -v '^ *+' conftest.er1
>conftest.err
5581 cat conftest.err
>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try
='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 emacs_cv_personality_linux32
=yes
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.
$ac_ext >&5
5601 emacs_cv_personality_linux32
=no
5603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5604 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5605 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5607 if test $emacs_cv_personality_linux32 = yes; then
5609 cat >>confdefs.h
<<\_ACEOF
5610 #define HAVE_PERSONALITY_LINUX32 1
5616 for ac_header
in term.h
5618 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5619 echo "$as_me:$LINENO: checking for $ac_header" >&5
5620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 cat >conftest.
$ac_ext <<_ACEOF
5627 cat confdefs.h
>>conftest.
$ac_ext
5628 cat >>conftest.
$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <$ac_header>
5632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5633 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1
>conftest.err
5637 cat conftest.err
>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } >/dev
/null
; then
5640 if test -s conftest.err
; then
5641 ac_cpp_err
=$ac_c_preproc_warn_flag
5642 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5649 if test -z "$ac_cpp_err"; then
5650 eval "$as_ac_Header=yes"
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.
$ac_ext >&5
5655 eval "$as_ac_Header=no"
5657 rm -f conftest.err conftest.
$ac_ext
5659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5662 cat >>confdefs.h
<<_ACEOF
5663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5670 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5671 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5672 if test "${ac_cv_header_stdc+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 cat >conftest.
$ac_ext <<_ACEOF
5678 cat confdefs.h
>>conftest.
$ac_ext
5679 cat >>conftest.
$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5694 rm -f conftest.
$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5698 grep -v '^ *+' conftest.er1
>conftest.err
5700 cat conftest.err
>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try
='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_header_stdc
=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.
$ac_ext >&5
5720 ac_cv_header_stdc
=no
5722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 if test $ac_cv_header_stdc = yes; then
5725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5726 cat >conftest.
$ac_ext <<_ACEOF
5729 cat confdefs.h
>>conftest.
$ac_ext
5730 cat >>conftest.
$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5736 $EGREP "memchr" >/dev
/null
2>&1; then
5739 ac_cv_header_stdc
=no
5745 if test $ac_cv_header_stdc = yes; then
5746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5747 cat >conftest.
$ac_ext <<_ACEOF
5750 cat confdefs.h
>>conftest.
$ac_ext
5751 cat >>conftest.
$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5757 $EGREP "free" >/dev
/null
2>&1; then
5760 ac_cv_header_stdc
=no
5766 if test $ac_cv_header_stdc = yes; then
5767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5768 if test "$cross_compiling" = yes; then
5771 cat >conftest.
$ac_ext <<_ACEOF
5774 cat confdefs.h
>>conftest.
$ac_ext
5775 cat >>conftest.
$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5778 #if ((' ' & 0x0FF) == 0x020)
5779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5782 # define ISLOWER(c) \
5783 (('a' <= (c) && (c) <= 'i') \
5784 || ('j' <= (c) && (c) <= 'r') \
5785 || ('s' <= (c) && (c) <= 'z'))
5786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5794 for (i = 0; i < 256; i++)
5795 if (XOR (islower (i), ISLOWER (i))
5796 || toupper (i) != TOUPPER (i))
5801 rm -f conftest
$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803 (eval $ac_link) 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5814 echo "$as_me: program exited with status $ac_status" >&5
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.
$ac_ext >&5
5819 ac_cv_header_stdc
=no
5821 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5826 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5827 if test $ac_cv_header_stdc = yes; then
5829 cat >>confdefs.h
<<\_ACEOF
5830 #define STDC_HEADERS 1
5835 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5836 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5837 if test "${ac_cv_header_time+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 cat >conftest.
$ac_ext <<_ACEOF
5843 cat confdefs.h
>>conftest.
$ac_ext
5844 cat >>conftest.
$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <sys/types.h>
5847 #include <sys/time.h>
5853 if ((struct tm *) 0)
5859 rm -f conftest.
$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1
>conftest.err
5865 cat conftest.err
>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try
='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_header_time
=yes
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.
$ac_ext >&5
5885 ac_cv_header_time
=no
5887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5890 echo "${ECHO_T}$ac_cv_header_time" >&6
5891 if test $ac_cv_header_time = yes; then
5893 cat >>confdefs.h
<<\_ACEOF
5894 #define TIME_WITH_SYS_TIME 1
5899 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5900 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5901 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 cat >conftest.
$ac_ext <<_ACEOF
5907 cat confdefs.h
>>conftest.
$ac_ext
5908 cat >>conftest.
$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5915 char *p = (char *) sys_siglist;
5922 rm -f conftest.
$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5926 grep -v '^ *+' conftest.er1
>conftest.err
5928 cat conftest.err
>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try
='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_have_decl_sys_siglist
=yes
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.
$ac_ext >&5
5948 ac_cv_have_decl_sys_siglist
=no
5950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5953 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5954 if test $ac_cv_have_decl_sys_siglist = yes; then
5956 cat >>confdefs.h
<<_ACEOF
5957 #define HAVE_DECL_SYS_SIGLIST 1
5962 cat >>confdefs.h
<<_ACEOF
5963 #define HAVE_DECL_SYS_SIGLIST 0
5970 if test $ac_cv_have_decl_sys_siglist != yes; then
5971 # For Tru64, at least:
5972 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5973 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5974 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5987 #ifndef __sys_siglist
5988 char *p = (char *) __sys_siglist;
5995 rm -f conftest.
$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>conftest.er1
5999 grep -v '^ *+' conftest.er1
>conftest.err
6001 cat conftest.err
>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try
='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_have_decl___sys_siglist
=yes
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.
$ac_ext >&5
6021 ac_cv_have_decl___sys_siglist
=no
6023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6025 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6026 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6027 if test $ac_cv_have_decl___sys_siglist = yes; then
6029 cat >>confdefs.h
<<_ACEOF
6030 #define HAVE_DECL___SYS_SIGLIST 1
6035 cat >>confdefs.h
<<_ACEOF
6036 #define HAVE_DECL___SYS_SIGLIST 0
6043 if test $ac_cv_have_decl___sys_siglist = yes; then
6045 cat >>confdefs.h
<<\_ACEOF
6046 #define sys_siglist __sys_siglist
6051 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6052 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6053 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.
$ac_ext <<_ACEOF
6059 cat confdefs.h
>>conftest.
$ac_ext
6060 cat >>conftest.
$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <sys/types.h>
6063 #include <sys/wait.h>
6065 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6068 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6076 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6081 rm -f conftest.
$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6085 grep -v '^ *+' conftest.er1
>conftest.err
6087 cat conftest.err
>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try
='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_header_sys_wait_h
=yes
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.
$ac_ext >&5
6107 ac_cv_header_sys_wait_h
=no
6109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6112 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6113 if test $ac_cv_header_sys_wait_h = yes; then
6115 cat >>confdefs.h
<<\_ACEOF
6116 #define HAVE_SYS_WAIT_H 1
6122 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6123 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6124 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cat >conftest.
$ac_ext <<_ACEOF
6130 cat confdefs.h
>>conftest.
$ac_ext
6131 cat >>conftest.
$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #ifdef TIME_WITH_SYS_TIME
6134 #include <sys/time.h>
6137 #ifdef HAVE_SYS_TIME_H
6138 #include <sys/time.h>
6149 static struct utimbuf x; x.actime = x.modtime;
6154 rm -f conftest.
$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1
>conftest.err
6160 cat conftest.err
>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try
='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 emacs_cv_struct_utimbuf
=yes
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.
$ac_ext >&5
6180 emacs_cv_struct_utimbuf
=no
6182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6184 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6185 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6186 if test $emacs_cv_struct_utimbuf = yes; then
6188 cat >>confdefs.h
<<\_ACEOF
6189 #define HAVE_STRUCT_UTIMBUF 1
6194 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6195 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6196 if test "${ac_cv_type_signal+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 cat >conftest.
$ac_ext <<_ACEOF
6202 cat confdefs.h
>>conftest.
$ac_ext
6203 cat >>conftest.
$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #include <sys/types.h>
6211 extern "C" void (*signal (int, void (*)(int)))(int);
6213 void (*signal ()) ();
6224 rm -f conftest.
$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
6228 grep -v '^ *+' conftest.er1
>conftest.err
6230 cat conftest.err
>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try
='test -s conftest.$ac_objext'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 ac_cv_type_signal
=void
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.
$ac_ext >&5
6250 ac_cv_type_signal
=int
6252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6255 echo "${ECHO_T}$ac_cv_type_signal" >&6
6257 cat >>confdefs.h
<<_ACEOF
6258 #define RETSIGTYPE $ac_cv_type_signal
6263 echo "$as_me:$LINENO: checking for speed_t" >&5
6264 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6265 if test "${emacs_cv_speed_t+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 cat >conftest.
$ac_ext <<_ACEOF
6271 cat confdefs.h
>>conftest.
$ac_ext
6272 cat >>conftest.
$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <termios.h>
6283 rm -f conftest.
$ac_objext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285 (eval $ac_compile) 2>conftest.er1
6287 grep -v '^ *+' conftest.er1
>conftest.err
6289 cat conftest.err
>&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try
='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 emacs_cv_speed_t
=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.
$ac_ext >&5
6311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6313 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6314 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6315 if test $emacs_cv_speed_t = yes; then
6317 cat >>confdefs.h
<<\_ACEOF
6318 #define HAVE_SPEED_T 1
6323 echo "$as_me:$LINENO: checking for struct timeval" >&5
6324 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6325 if test "${emacs_cv_struct_timeval+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.
$ac_ext <<_ACEOF
6331 cat confdefs.h
>>conftest.
$ac_ext
6332 cat >>conftest.
$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #ifdef TIME_WITH_SYS_TIME
6335 #include <sys/time.h>
6338 #ifdef HAVE_SYS_TIME_H
6339 #include <sys/time.h>
6347 static struct timeval x; x.tv_sec = x.tv_usec;
6352 rm -f conftest.
$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>conftest.er1
6356 grep -v '^ *+' conftest.er1
>conftest.err
6358 cat conftest.err
>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try
='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 emacs_cv_struct_timeval
=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.
$ac_ext >&5
6378 emacs_cv_struct_timeval
=no
6380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6382 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6383 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6384 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6385 if test $emacs_cv_struct_timeval = yes; then
6387 cat >>confdefs.h
<<\_ACEOF
6388 #define HAVE_TIMEVAL 1
6393 echo "$as_me:$LINENO: checking for struct exception" >&5
6394 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6395 if test "${emacs_cv_struct_exception+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 cat >conftest.
$ac_ext <<_ACEOF
6401 cat confdefs.h
>>conftest.
$ac_ext
6402 cat >>conftest.
$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6408 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6413 rm -f conftest.
$ac_objext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415 (eval $ac_compile) 2>conftest.er1
6417 grep -v '^ *+' conftest.er1
>conftest.err
6419 cat conftest.err
>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try
='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 emacs_cv_struct_exception
=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 emacs_cv_struct_exception
=no
6441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6443 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6444 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6445 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6446 if test $emacs_cv_struct_exception != yes; then
6448 cat >>confdefs.h
<<\_ACEOF
6449 #define NO_MATHERR 1
6455 for ac_header
in sys
/socket.h
6457 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6467 # Is the header compilable?
6468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470 cat >conftest.
$ac_ext <<_ACEOF
6473 cat confdefs.h
>>conftest.
$ac_ext
6474 cat >>conftest.
$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 #include <$ac_header>
6479 rm -f conftest.
$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6483 grep -v '^ *+' conftest.er1
>conftest.err
6485 cat conftest.err
>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try
='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_header_compiler
=yes
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.
$ac_ext >&5
6505 ac_header_compiler
=no
6507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509 echo "${ECHO_T}$ac_header_compiler" >&6
6511 # Is the header present?
6512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6514 cat >conftest.
$ac_ext <<_ACEOF
6517 cat confdefs.h
>>conftest.
$ac_ext
6518 cat >>conftest.
$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 #include <$ac_header>
6522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1
>conftest.err
6527 cat conftest.err
>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } >/dev
/null
; then
6530 if test -s conftest.err
; then
6531 ac_cpp_err
=$ac_c_preproc_warn_flag
6532 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6539 if test -z "$ac_cpp_err"; then
6540 ac_header_preproc
=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6545 ac_header_preproc
=no
6547 rm -f conftest.err conftest.
$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549 echo "${ECHO_T}$ac_header_preproc" >&6
6551 # So? What about this header?
6552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6558 ac_header_preproc
=yes
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6575 ## ------------------------------------------ ##
6576 ## Report this to the AC_PACKAGE_NAME lists. ##
6577 ## ------------------------------------------ ##
6580 sed "s/^/$as_me: WARNING: /" >&2
6583 echo "$as_me:$LINENO: checking for $ac_header" >&5
6584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 eval "$as_ac_Header=\$ac_header_preproc"
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h
<<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6604 for ac_header
in net
/if.h
6606 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 cat >conftest.
$ac_ext <<_ACEOF
6615 cat confdefs.h
>>conftest.
$ac_ext
6616 cat >>conftest.
$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 $ac_includes_default
6619 #if HAVE_SYS_SOCKET_H
6620 #include <sys/socket.h>
6623 #include <$ac_header>
6625 rm -f conftest.
$ac_objext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>conftest.er1
6629 grep -v '^ *+' conftest.er1
>conftest.err
6631 cat conftest.err
>&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try
='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 eval "$as_ac_Header=yes"
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 eval "$as_ac_Header=no"
6653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658 cat >>confdefs.h
<<_ACEOF
6659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6668 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6669 if test "${ac_cv_struct_tm+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 cat >conftest.
$ac_ext <<_ACEOF
6675 cat confdefs.h
>>conftest.
$ac_ext
6676 cat >>conftest.
$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <sys/types.h>
6684 struct tm *tp; tp->tm_sec;
6689 rm -f conftest.
$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6693 grep -v '^ *+' conftest.er1
>conftest.err
6695 cat conftest.err
>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try
='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_struct_tm
=time.h
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.
$ac_ext >&5
6715 ac_cv_struct_tm
=sys
/time.h
6717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6720 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6721 if test $ac_cv_struct_tm = sys
/time.h
; then
6723 cat >>confdefs.h
<<\_ACEOF
6724 #define TM_IN_SYS_TIME 1
6729 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6730 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6731 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.
$ac_ext <<_ACEOF
6737 cat confdefs.h
>>conftest.
$ac_ext
6738 cat >>conftest.
$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <$ac_cv_struct_tm>
6747 static struct tm ac_aggr;
6748 if (ac_aggr.tm_zone)
6754 rm -f conftest.
$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6758 grep -v '^ *+' conftest.er1
>conftest.err
6760 cat conftest.err
>&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try
='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_member_struct_tm_tm_zone
=yes
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.
$ac_ext >&5
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6787 #include <$ac_cv_struct_tm>
6793 static struct tm ac_aggr;
6794 if (sizeof ac_aggr.tm_zone)
6800 rm -f conftest.
$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6804 grep -v '^ *+' conftest.er1
>conftest.err
6806 cat conftest.err
>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try
='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_cv_member_struct_tm_tm_zone
=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.
$ac_ext >&5
6826 ac_cv_member_struct_tm_tm_zone
=no
6828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6832 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6833 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6834 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6836 cat >>confdefs.h
<<_ACEOF
6837 #define HAVE_STRUCT_TM_TM_ZONE 1
6843 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6845 cat >>confdefs.h
<<\_ACEOF
6846 #define HAVE_TM_ZONE 1
6850 echo "$as_me:$LINENO: checking for tzname" >&5
6851 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6852 if test "${ac_cv_var_tzname+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 cat >conftest.
$ac_ext <<_ACEOF
6858 cat confdefs.h
>>conftest.
$ac_ext
6859 cat >>conftest.
$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6862 #ifndef tzname /* For SGI. */
6863 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6874 rm -f conftest.
$ac_objext conftest
$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>conftest.er1
6878 grep -v '^ *+' conftest.er1
>conftest.err
6880 cat conftest.err
>&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try
='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_var_tzname
=yes
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.
$ac_ext >&5
6902 rm -f conftest.err conftest.
$ac_objext \
6903 conftest
$ac_exeext conftest.
$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6906 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6907 if test $ac_cv_var_tzname = yes; then
6909 cat >>confdefs.h
<<\_ACEOF
6910 #define HAVE_TZNAME 1
6916 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6917 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6918 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 cat >conftest.
$ac_ext <<_ACEOF
6924 cat confdefs.h
>>conftest.
$ac_ext
6925 cat >>conftest.
$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6932 static struct tm ac_aggr;
6933 if (ac_aggr.tm_gmtoff)
6939 rm -f conftest.
$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6943 grep -v '^ *+' conftest.er1
>conftest.err
6945 cat conftest.err
>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try
='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_member_struct_tm_tm_gmtoff
=yes
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.
$ac_ext >&5
6965 cat >conftest.
$ac_ext <<_ACEOF
6968 cat confdefs.h
>>conftest.
$ac_ext
6969 cat >>conftest.
$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6976 static struct tm ac_aggr;
6977 if (sizeof ac_aggr.tm_gmtoff)
6983 rm -f conftest.
$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6987 grep -v '^ *+' conftest.er1
>conftest.err
6989 cat conftest.err
>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try
='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_member_struct_tm_tm_gmtoff
=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.
$ac_ext >&5
7009 ac_cv_member_struct_tm_tm_gmtoff
=no
7011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7016 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7017 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7019 cat >>confdefs.h
<<\_ACEOF
7020 #define HAVE_TM_GMTOFF 1
7025 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7026 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7027 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 cat >conftest.
$ac_ext <<_ACEOF
7033 cat confdefs.h
>>conftest.
$ac_ext
7034 cat >>conftest.
$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 $ac_includes_default
7037 #if HAVE_SYS_SOCKET_H
7038 #include <sys/socket.h>
7047 static struct ifreq ac_aggr;
7048 if (ac_aggr.ifr_flags)
7054 rm -f conftest.
$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7058 grep -v '^ *+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try
='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_member_struct_ifreq_ifr_flags
=yes
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.
$ac_ext >&5
7080 cat >conftest.
$ac_ext <<_ACEOF
7083 cat confdefs.h
>>conftest.
$ac_ext
7084 cat >>conftest.
$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 $ac_includes_default
7087 #if HAVE_SYS_SOCKET_H
7088 #include <sys/socket.h>
7097 static struct ifreq ac_aggr;
7098 if (sizeof ac_aggr.ifr_flags)
7104 rm -f conftest.
$ac_objext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7108 grep -v '^ *+' conftest.er1
>conftest.err
7110 cat conftest.err
>&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try
='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_member_struct_ifreq_ifr_flags
=yes
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.
$ac_ext >&5
7130 ac_cv_member_struct_ifreq_ifr_flags
=no
7132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7137 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7138 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7140 cat >>confdefs.h
<<_ACEOF
7141 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7146 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7147 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7148 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 cat >conftest.
$ac_ext <<_ACEOF
7154 cat confdefs.h
>>conftest.
$ac_ext
7155 cat >>conftest.
$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 $ac_includes_default
7158 #if HAVE_SYS_SOCKET_H
7159 #include <sys/socket.h>
7168 static struct ifreq ac_aggr;
7169 if (ac_aggr.ifr_hwaddr)
7175 rm -f conftest.
$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try
='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.
$ac_ext >&5
7201 cat >conftest.
$ac_ext <<_ACEOF
7204 cat confdefs.h
>>conftest.
$ac_ext
7205 cat >>conftest.
$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 #if HAVE_SYS_SOCKET_H
7209 #include <sys/socket.h>
7218 static struct ifreq ac_aggr;
7219 if (sizeof ac_aggr.ifr_hwaddr)
7225 rm -f conftest.
$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1
>conftest.err
7231 cat conftest.err
>&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try
='test -s conftest.$ac_objext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7251 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7257 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7258 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7259 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7261 cat >>confdefs.h
<<_ACEOF
7262 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7267 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7268 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7269 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 cat >conftest.
$ac_ext <<_ACEOF
7275 cat confdefs.h
>>conftest.
$ac_ext
7276 cat >>conftest.
$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7279 #if HAVE_SYS_SOCKET_H
7280 #include <sys/socket.h>
7289 static struct ifreq ac_aggr;
7290 if (ac_aggr.ifr_netmask)
7296 rm -f conftest.
$ac_objext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7298 (eval $ac_compile) 2>conftest.er1
7300 grep -v '^ *+' conftest.er1
>conftest.err
7302 cat conftest.err
>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try
='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.
$ac_ext >&5
7322 cat >conftest.
$ac_ext <<_ACEOF
7325 cat confdefs.h
>>conftest.
$ac_ext
7326 cat >>conftest.
$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 #if HAVE_SYS_SOCKET_H
7330 #include <sys/socket.h>
7339 static struct ifreq ac_aggr;
7340 if (sizeof ac_aggr.ifr_netmask)
7346 rm -f conftest.
$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7350 grep -v '^ *+' conftest.er1
>conftest.err
7352 cat conftest.err
>&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try
='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7372 ac_cv_member_struct_ifreq_ifr_netmask
=no
7374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7379 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7380 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7382 cat >>confdefs.h
<<_ACEOF
7383 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7388 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7389 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7390 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 cat >conftest.
$ac_ext <<_ACEOF
7396 cat confdefs.h
>>conftest.
$ac_ext
7397 cat >>conftest.
$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 #if HAVE_SYS_SOCKET_H
7401 #include <sys/socket.h>
7410 static struct ifreq ac_aggr;
7411 if (ac_aggr.ifr_broadaddr)
7417 rm -f conftest.
$ac_objext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419 (eval $ac_compile) 2>conftest.er1
7421 grep -v '^ *+' conftest.er1
>conftest.err
7423 cat conftest.err
>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try
='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.
$ac_ext >&5
7443 cat >conftest.
$ac_ext <<_ACEOF
7446 cat confdefs.h
>>conftest.
$ac_ext
7447 cat >>conftest.
$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 $ac_includes_default
7450 #if HAVE_SYS_SOCKET_H
7451 #include <sys/socket.h>
7460 static struct ifreq ac_aggr;
7461 if (sizeof ac_aggr.ifr_broadaddr)
7467 rm -f conftest.
$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>conftest.er1
7471 grep -v '^ *+' conftest.er1
>conftest.err
7473 cat conftest.err
>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try
='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.
$ac_ext >&5
7493 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7500 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7501 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7503 cat >>confdefs.h
<<_ACEOF
7504 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7509 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7510 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7511 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 cat >conftest.
$ac_ext <<_ACEOF
7517 cat confdefs.h
>>conftest.
$ac_ext
7518 cat >>conftest.
$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7521 #if HAVE_SYS_SOCKET_H
7522 #include <sys/socket.h>
7531 static struct ifreq ac_aggr;
7532 if (ac_aggr.ifr_addr)
7538 rm -f conftest.
$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7542 grep -v '^ *+' conftest.er1
>conftest.err
7544 cat conftest.err
>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try
='test -s conftest.$ac_objext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_member_struct_ifreq_ifr_addr
=yes
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.
$ac_ext >&5
7564 cat >conftest.
$ac_ext <<_ACEOF
7567 cat confdefs.h
>>conftest.
$ac_ext
7568 cat >>conftest.
$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #if HAVE_SYS_SOCKET_H
7572 #include <sys/socket.h>
7581 static struct ifreq ac_aggr;
7582 if (sizeof ac_aggr.ifr_addr)
7588 rm -f conftest.
$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>conftest.er1
7592 grep -v '^ *+' conftest.er1
>conftest.err
7594 cat conftest.err
>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try
='test -s conftest.$ac_objext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_member_struct_ifreq_ifr_addr
=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.
$ac_ext >&5
7614 ac_cv_member_struct_ifreq_ifr_addr
=no
7616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7621 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7622 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7624 cat >>confdefs.h
<<_ACEOF
7625 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7633 echo "$as_me:$LINENO: checking for function prototypes" >&5
7634 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7635 if test "$ac_cv_prog_cc_stdc" != no
; then
7636 echo "$as_me:$LINENO: result: yes" >&5
7637 echo "${ECHO_T}yes" >&6
7639 cat >>confdefs.h
<<\_ACEOF
7640 #define PROTOTYPES 1
7644 cat >>confdefs.h
<<\_ACEOF
7645 #define __PROTOTYPES 1
7649 echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7653 echo "$as_me:$LINENO: checking for working volatile" >&5
7654 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7655 if test "${ac_cv_c_volatile+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 cat >conftest.
$ac_ext <<_ACEOF
7661 cat confdefs.h
>>conftest.
$ac_ext
7662 cat >>conftest.
$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7675 rm -f conftest.
$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7679 grep -v '^ *+' conftest.er1
>conftest.err
7681 cat conftest.err
>&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try
='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_c_volatile
=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.
$ac_ext >&5
7703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7705 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7706 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7707 if test $ac_cv_c_volatile = no
; then
7709 cat >>confdefs.h
<<\_ACEOF
7715 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7717 if test "${ac_cv_c_const+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 cat >conftest.
$ac_ext <<_ACEOF
7723 cat confdefs.h
>>conftest.
$ac_ext
7724 cat >>conftest.
$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7730 /* FIXME: Include the comments suggested by Paul. */
7732 /* Ultrix mips cc rejects this. */
7733 typedef int charset[2];
7735 /* SunOS 4.1.1 cc rejects this. */
7736 char const *const *ccp;
7738 /* NEC SVR4.0.2 mips cc rejects this. */
7739 struct point {int x, y;};
7740 static struct point const zero = {0,0};
7741 /* AIX XL C 1.02.0.0 rejects this.
7742 It does not let you subtract one const X* pointer from another in
7743 an arm of an if-expression whose if-part is not a constant
7745 const char *g = "string";
7746 ccp = &g + (g ? g-g : 0);
7747 /* HPUX 7.0 cc rejects these. */
7750 ccp = (char const *const *) p;
7751 { /* SCO 3.2v4 cc rejects this. */
7753 char const *s = 0 ? (char *) 0 : (char const *) 0;
7757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7759 const int *foo = &x[0];
7762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7763 typedef const int *iptr;
7767 { /* AIX XL C 1.02.0.0 rejects this saying
7768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7769 struct s { int j; const int *ap[3]; };
7770 struct s *b; b->j = 5;
7772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7781 rm -f conftest.
$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>conftest.er1
7785 grep -v '^ *+' conftest.er1
>conftest.err
7787 cat conftest.err
>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try
='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.
$ac_ext >&5
7809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7811 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7812 echo "${ECHO_T}$ac_cv_c_const" >&6
7813 if test $ac_cv_c_const = no
; then
7815 cat >>confdefs.h
<<\_ACEOF
7821 echo "$as_me:$LINENO: checking for void * support" >&5
7822 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7823 if test "${emacs_cv_void_star+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 cat >conftest.
$ac_ext <<_ACEOF
7829 cat confdefs.h
>>conftest.
$ac_ext
7830 cat >>conftest.
$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7841 rm -f conftest.
$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>conftest.er1
7845 grep -v '^ *+' conftest.er1
>conftest.err
7847 cat conftest.err
>&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } &&
7856 { ac_try
='test -s conftest.$ac_objext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 emacs_cv_void_star
=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.
$ac_ext >&5
7867 emacs_cv_void_star
=no
7869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7871 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7872 echo "${ECHO_T}$emacs_cv_void_star" >&6
7873 if test $emacs_cv_void_star = yes; then
7874 cat >>confdefs.h
<<\_ACEOF
7875 #define POINTER_TYPE void
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define POINTER_TYPE char
7889 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7890 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7891 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7892 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 cat >conftest.
make <<\_ACEOF
7897 @
echo 'ac_maketemp="$(MAKE)"'
7899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7900 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7901 if test -n "$ac_maketemp"; then
7902 eval ac_cv_prog_make_
${ac_make}_set
=yes
7904 eval ac_cv_prog_make_
${ac_make}_set
=no
7908 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7913 echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6
7915 SET_MAKE
="MAKE=${MAKE-make}"
7919 echo "$as_me:$LINENO: checking for long file names" >&5
7920 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7921 if test "${ac_cv_sys_long_file_names+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 ac_cv_sys_long_file_names
=yes
7925 # Test for long file names in all the places we know might matter:
7926 # . the current directory, where building will happen
7927 # $prefix/lib where we will be installing things
7928 # $exec_prefix/lib likewise
7929 # eval it to expand exec_prefix.
7930 # $TMPDIR if set, where it might want to write temporary files
7931 # if $TMPDIR is not set:
7932 # /tmp where it might want to write temporary files
7935 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7938 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7940 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7941 test -d $ac_dir ||
continue
7942 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7943 ac_xdir
=$ac_dir/cf$$
7944 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7945 ac_tf1
=$ac_xdir/conftest9012345
7946 ac_tf2
=$ac_xdir/conftest9012346
7947 (echo 1 >$ac_tf1) 2>/dev
/null
7948 (echo 2 >$ac_tf2) 2>/dev
/null
7949 ac_val
=`cat $ac_tf1 2>/dev/null`
7950 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7951 ac_cv_sys_long_file_names
=no
7952 rm -rf $ac_xdir 2>/dev
/null
7955 rm -rf $ac_xdir 2>/dev
/null
7958 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7959 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7960 if test $ac_cv_sys_long_file_names = yes; then
7962 cat >>confdefs.h
<<\_ACEOF
7963 #define HAVE_LONG_FILE_NAMES 1
7969 #### Choose a window system.
7971 echo "$as_me:$LINENO: checking for X" >&5
7972 echo $ECHO_N "checking for X... $ECHO_C" >&6
7974 ac_path_x_has_been_run
=yes
7976 # Check whether --with-x or --without-x was given.
7977 if test "${with_x+set}" = set; then
7981 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7982 if test "x$with_x" = xno
; then
7983 # The user explicitly disabled X.
7986 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7987 # Both variables are already set.
7990 if test "${ac_cv_have_x+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 # One or both of the vars are not set, and there is no cached value.
7994 ac_x_includes
=no ac_x_libraries
=no
7996 if mkdir conftest.dir
; then
7998 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7999 cat >Imakefile
<<'_ACEOF'
8001 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8003 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8005 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8006 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8007 for ac_extension
in a so sl
; do
8008 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8009 test -f $ac_im_libdir/libX11.
$ac_extension; then
8010 ac_im_usrlibdir
=$ac_im_libdir; break
8013 # Screen out bogus values from the imake configuration. They are
8014 # bogus both because they are the default anyway, and because
8015 # using them would break gcc on systems where it needs fixed includes.
8016 case $ac_im_incroot in
8018 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8020 case $ac_im_usrlibdir in
8022 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8029 # Standard set of common directories for X headers.
8030 # Check X11 before X11Rn because it is often a symlink to the current release.
8042 /usr/local/X11/include
8043 /usr/local/X11R6/include
8044 /usr/local/X11R5/include
8045 /usr/local/X11R4/include
8047 /usr/local/include/X11
8048 /usr/local/include/X11R6
8049 /usr/local/include/X11R5
8050 /usr/local/include/X11R4
8054 /usr/XFree86/include/X11
8058 /usr/unsupported/include
8060 /usr/local/x11r5/include
8061 /usr/lpp/Xamples/include
8063 /usr/openwin/include
8064 /usr/openwin/share/include'
8066 if test "$ac_x_includes" = no
; then
8067 # Guess where to find include files, by looking for a specified header file.
8068 # First, try using that file with no special directory specified.
8069 cat >conftest.
$ac_ext <<_ACEOF
8072 cat confdefs.h
>>conftest.
$ac_ext
8073 cat >>conftest.
$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 #include <X11/Intrinsic.h>
8077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8078 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8080 grep -v '^ *+' conftest.er1
>conftest.err
8082 cat conftest.err
>&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } >/dev
/null
; then
8085 if test -s conftest.err
; then
8086 ac_cpp_err
=$ac_c_preproc_warn_flag
8087 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8094 if test -z "$ac_cpp_err"; then
8095 # We can compile using X headers with no special include directory.
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.
$ac_ext >&5
8101 for ac_dir
in $ac_x_header_dirs; do
8102 if test -r "$ac_dir/X11/Intrinsic.h"; then
8103 ac_x_includes
=$ac_dir
8108 rm -f conftest.err conftest.
$ac_ext
8109 fi # $ac_x_includes = no
8111 if test "$ac_x_libraries" = no
; then
8112 # Check for the libraries.
8113 # See if we find them without any special options.
8114 # Don't add to $LIBS permanently.
8117 cat >conftest.
$ac_ext <<_ACEOF
8120 cat confdefs.h
>>conftest.
$ac_ext
8121 cat >>conftest.
$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <X11/Intrinsic.h>
8132 rm -f conftest.
$ac_objext conftest
$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>conftest.er1
8136 grep -v '^ *+' conftest.er1
>conftest.err
8138 cat conftest.err
>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try
='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8154 # We can link X programs with no special library path.
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.
$ac_ext >&5
8161 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8163 # Don't even attempt the hair of trying to link an X program!
8164 for ac_extension
in a so sl
; do
8165 if test -r $ac_dir/libXt.
$ac_extension; then
8166 ac_x_libraries
=$ac_dir
8172 rm -f conftest.err conftest.
$ac_objext \
8173 conftest
$ac_exeext conftest.
$ac_ext
8174 fi # $ac_x_libraries = no
8176 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8177 # Didn't find X anywhere. Cache the known absence of X.
8178 ac_cv_have_x
="have_x=no"
8180 # Record where we found X for the cache.
8181 ac_cv_have_x
="have_x=yes \
8182 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8187 eval "$ac_cv_have_x"
8190 if test "$have_x" != yes; then
8191 echo "$as_me:$LINENO: result: $have_x" >&5
8192 echo "${ECHO_T}$have_x" >&6
8195 # If each of the values was on the command line, it overrides each guess.
8196 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8197 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8198 # Update the cache value to reflect the command line values.
8199 ac_cv_have_x
="have_x=yes \
8200 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8201 # It might be that x_includes is empty (headers are found in the
8202 # standard search path. Then output the corresponding message
8203 ac_out_x_includes
=$x_includes
8204 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8205 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8206 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8209 if test "$no_x" = yes; then
8215 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8216 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8217 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8218 x_default_search_path
=""
8219 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8221 ${x_library}/X11/%L/%T/%N%C%S:\
8222 ${x_library}/X11/%l/%T/%N%C%S:\
8223 ${x_library}/X11/%T/%N%C%S:\
8224 ${x_library}/X11/%L/%T/%N%S:\
8225 ${x_library}/X11/%l/%T/%N%S:\
8226 ${x_library}/X11/%T/%N%S"
8227 if test x
"${x_default_search_path}" = x
; then
8228 x_default_search_path
=${x_search_path}
8230 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8234 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8235 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8238 if test x
"${x_includes}" = x
; then
8239 bitmapdir
=/usr
/include
/X11
/bitmaps
8241 # accumulate include directories that have X11 bitmap subdirectories
8243 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8244 if test -d "${bmd}/X11/bitmaps"; then
8245 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8247 if test -d "${bmd}/bitmaps"; then
8248 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8251 if test ${bmd_acc} != "dummyval"; then
8252 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8257 if test "${with_carbon}" != no
; then
8258 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8259 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8260 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8261 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8265 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8267 # Is the header compilable?
8268 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8269 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #include <Carbon/Carbon.h>
8279 rm -f conftest.
$ac_objext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281 (eval $ac_compile) 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try
='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_header_compiler
=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.
$ac_ext >&5
8305 ac_header_compiler
=no
8307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8309 echo "${ECHO_T}$ac_header_compiler" >&6
8311 # Is the header present?
8312 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8313 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8314 cat >conftest.
$ac_ext <<_ACEOF
8317 cat confdefs.h
>>conftest.
$ac_ext
8318 cat >>conftest.
$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <Carbon/Carbon.h>
8322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8323 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8325 grep -v '^ *+' conftest.er1
>conftest.err
8327 cat conftest.err
>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } >/dev
/null
; then
8330 if test -s conftest.err
; then
8331 ac_cpp_err
=$ac_c_preproc_warn_flag
8332 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8339 if test -z "$ac_cpp_err"; then
8340 ac_header_preproc
=yes
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.
$ac_ext >&5
8345 ac_header_preproc
=no
8347 rm -f conftest.err conftest.
$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8349 echo "${ECHO_T}$ac_header_preproc" >&6
8351 # So? What about this header?
8352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8354 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8355 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8356 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8357 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8358 ac_header_preproc
=yes
8361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8362 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8364 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8366 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8368 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8370 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8372 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8375 ## ------------------------------------------ ##
8376 ## Report this to the AC_PACKAGE_NAME lists. ##
8377 ## ------------------------------------------ ##
8380 sed "s/^/$as_me: WARNING: /" >&2
8383 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8384 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8390 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8391 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8394 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8400 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8401 if test "${with_carbon+set}" != set \
8402 && test "${carbon_appdir_x+set}" != set; then
8406 if test "${HAVE_CARBON}" = yes; then
8410 case "${window_system}" in
8414 case "${with_x_toolkit}" in
8415 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8416 motif
) USE_X_TOOLKIT
=MOTIF
;;
8418 USE_X_TOOLKIT
=none
;;
8419 no
) USE_X_TOOLKIT
=none
;;
8420 * ) USE_X_TOOLKIT
=maybe
;;
8430 ### If we're using X11, we should use the X menu package.
8433 yes ) HAVE_MENUS
=yes ;;
8436 if test "${opsys}" = "hpux9"; then
8437 case "${x_libraries}" in
8439 opsysfile
="s/hpux9-x11r4.h"
8444 if test "${opsys}" = "hpux9shr"; then
8445 case "${x_libraries}" in
8447 opsysfile
="s/hpux9shxr4.h"
8452 ### Compute the unexec source name from the object name.
8453 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8455 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8456 # Assume not, until told otherwise.
8459 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8460 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8461 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 cat >conftest.
$ac_ext <<_ACEOF
8467 cat confdefs.h
>>conftest.
$ac_ext
8468 cat >>conftest.
$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8472 #define malloc_get_state innocuous_malloc_get_state
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char malloc_get_state (); below.
8476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477 <limits.h> exists even on freestanding compilers. */
8480 # include <limits.h>
8482 # include <assert.h>
8485 #undef malloc_get_state
8487 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char malloc_get_state ();
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8501 char (*f) () = malloc_get_state;
8510 return f != malloc_get_state;
8515 rm -f conftest.
$ac_objext conftest
$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1
>conftest.err
8521 cat conftest.err
>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try
='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_func_malloc_get_state
=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.
$ac_ext >&5
8541 ac_cv_func_malloc_get_state
=no
8543 rm -f conftest.err conftest.
$ac_objext \
8544 conftest
$ac_exeext conftest.
$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8547 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8548 if test $ac_cv_func_malloc_get_state = yes; then
8554 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8555 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8556 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 cat >conftest.
$ac_ext <<_ACEOF
8562 cat confdefs.h
>>conftest.
$ac_ext
8563 cat >>conftest.
$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8567 #define malloc_set_state innocuous_malloc_set_state
8569 /* System header to define __stub macros and hopefully few prototypes,
8570 which can conflict with char malloc_set_state (); below.
8571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8572 <limits.h> exists even on freestanding compilers. */
8575 # include <limits.h>
8577 # include <assert.h>
8580 #undef malloc_set_state
8582 /* Override any gcc2 internal prototype to avoid an error. */
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589 char malloc_set_state ();
8590 /* The GNU C library defines this for functions which it implements
8591 to always fail with ENOSYS. Some functions are actually named
8592 something starting with __ and the normal name is an alias. */
8593 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8596 char (*f) () = malloc_set_state;
8605 return f != malloc_set_state;
8610 rm -f conftest.
$ac_objext conftest
$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try
='test -s conftest$ac_exeext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_func_malloc_set_state
=yes
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.
$ac_ext >&5
8636 ac_cv_func_malloc_set_state
=no
8638 rm -f conftest.err conftest.
$ac_objext \
8639 conftest
$ac_exeext conftest.
$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8642 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8643 if test $ac_cv_func_malloc_set_state = yes; then
8649 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8650 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8651 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 cat >conftest.
$ac_ext <<_ACEOF
8657 cat confdefs.h
>>conftest.
$ac_ext
8658 cat >>conftest.
$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 extern void (* __after_morecore_hook)();
8664 __after_morecore_hook = 0
8669 rm -f conftest.
$ac_objext conftest
$ac_exeext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8671 (eval $ac_link) 2>conftest.er1
8673 grep -v '^ *+' conftest.er1
>conftest.err
8675 cat conftest.err
>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try
='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 emacs_cv_var___after_morecore_hook
=yes
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.
$ac_ext >&5
8695 emacs_cv_var___after_morecore_hook
=no
8697 rm -f conftest.err conftest.
$ac_objext \
8698 conftest
$ac_exeext conftest.
$ac_ext
8700 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8701 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8702 if test $emacs_cv_var___after_morecore_hook = no
; then
8705 if test "${system_malloc}" = "yes"; then
8708 (The GNU allocators don't work with this system configuration.)"
8710 if test "$doug_lea_malloc" = "yes" ; then
8711 if test "$GNU_MALLOC" = yes ; then
8713 (Using Doug Lea's new malloc from the GNU C Library.)"
8716 cat >>confdefs.h
<<\_ACEOF
8717 #define DOUG_LEA_MALLOC 1
8722 if test x
"${REL_ALLOC}" = x
; then
8723 REL_ALLOC
=${GNU_MALLOC}
8729 for ac_header
in stdlib.h unistd.h
8731 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8733 echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8741 # Is the header compilable?
8742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8744 cat >conftest.
$ac_ext <<_ACEOF
8747 cat confdefs.h
>>conftest.
$ac_ext
8748 cat >>conftest.
$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 #include <$ac_header>
8753 rm -f conftest.
$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8757 grep -v '^ *+' conftest.er1
>conftest.err
8759 cat conftest.err
>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try
='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_header_compiler
=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.
$ac_ext >&5
8779 ac_header_compiler
=no
8781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.
$ac_ext <<_ACEOF
8791 cat confdefs.h
>>conftest.
$ac_ext
8792 cat >>conftest.
$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 #include <$ac_header>
8796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8799 grep -v '^ *+' conftest.er1
>conftest.err
8801 cat conftest.err
>&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev
/null
; then
8804 if test -s conftest.err
; then
8805 ac_cpp_err
=$ac_c_preproc_warn_flag
8806 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8813 if test -z "$ac_cpp_err"; then
8814 ac_header_preproc
=yes
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.
$ac_ext >&5
8819 ac_header_preproc
=no
8821 rm -f conftest.err conftest.
$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8825 # So? What about this header?
8826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8832 ac_header_preproc
=yes
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8849 ## ------------------------------------------ ##
8850 ## Report this to the AC_PACKAGE_NAME lists. ##
8851 ## ------------------------------------------ ##
8854 sed "s/^/$as_me: WARNING: /" >&2
8857 echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 eval "$as_ac_Header=\$ac_header_preproc"
8864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8869 cat >>confdefs.h
<<_ACEOF
8870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8878 for ac_func
in getpagesize
8880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8881 echo "$as_me:$LINENO: checking for $ac_func" >&5
8882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8883 if eval "test \"\${$as_ac_var+set}\" = set"; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 cat >conftest.
$ac_ext <<_ACEOF
8889 cat confdefs.h
>>conftest.
$ac_ext
8890 cat >>conftest.
$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8894 #define $ac_func innocuous_$ac_func
8896 /* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char $ac_func (); below.
8898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8899 <limits.h> exists even on freestanding compilers. */
8902 # include <limits.h>
8904 # include <assert.h>
8909 /* Override any gcc2 internal prototype to avoid an error. */
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8917 /* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8923 char (*f) () = $ac_func;
8932 return f != $ac_func;
8937 rm -f conftest.
$ac_objext conftest
$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8941 grep -v '^ *+' conftest.er1
>conftest.err
8943 cat conftest.err
>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try
='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 eval "$as_ac_var=yes"
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.
$ac_ext >&5
8963 eval "$as_ac_var=no"
8965 rm -f conftest.err conftest.
$ac_objext \
8966 conftest
$ac_exeext conftest.
$ac_ext
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8970 if test `eval echo '${'$as_ac_var'}'` = yes; then
8971 cat >>confdefs.h
<<_ACEOF
8972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8978 echo "$as_me:$LINENO: checking for working mmap" >&5
8979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 if test "$cross_compiling" = yes; then
8984 ac_cv_func_mmap_fixed_mapped
=no
8986 cat >conftest.
$ac_ext <<_ACEOF
8989 cat confdefs.h
>>conftest.
$ac_ext
8990 cat >>conftest.
$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 $ac_includes_default
8993 /* malloc might have been renamed as rpl_malloc. */
8996 /* Thanks to Mike Haertel and Jim Avera for this test.
8997 Here is a matrix of mmap possibilities:
8998 mmap private not fixed
8999 mmap private fixed at somewhere currently unmapped
9000 mmap private fixed at somewhere already mapped
9001 mmap shared not fixed
9002 mmap shared fixed at somewhere currently unmapped
9003 mmap shared fixed at somewhere already mapped
9004 For private mappings, we should verify that changes cannot be read()
9005 back from the file, nor mmap's back from the file at a different
9006 address. (There have been systems where private was not correctly
9007 implemented like the infamous i386 svr4.0, and systems where the
9008 VM page cache was not coherent with the file system buffer cache
9009 like early versions of FreeBSD and possibly contemporary NetBSD.)
9010 For shared mappings, we should conversely verify that changes get
9011 propagated back to all the places they're supposed to be.
9013 Grep wants private fixed already mapped.
9014 The main things grep needs to know about mmap are:
9015 * does it exist and is it safe to write into the mmap'd area
9016 * how to use it (BSD variants) */
9019 #include <sys/mman.h>
9021 #if !STDC_HEADERS && !HAVE_STDLIB_H
9025 /* This mess was copied from the GNU getpagesize.h. */
9026 #if !HAVE_GETPAGESIZE
9027 /* Assume that all systems that can run configure have sys/param.h. */
9028 # if !HAVE_SYS_PARAM_H
9029 # define HAVE_SYS_PARAM_H 1
9032 # ifdef _SC_PAGESIZE
9033 # define getpagesize() sysconf(_SC_PAGESIZE)
9034 # else /* no _SC_PAGESIZE */
9035 # if HAVE_SYS_PARAM_H
9036 # include <sys/param.h>
9037 # ifdef EXEC_PAGESIZE
9038 # define getpagesize() EXEC_PAGESIZE
9039 # else /* no EXEC_PAGESIZE */
9041 # define getpagesize() NBPG * CLSIZE
9044 # endif /* no CLSIZE */
9045 # else /* no NBPG */
9047 # define getpagesize() NBPC
9048 # else /* no NBPC */
9050 # define getpagesize() PAGESIZE
9051 # endif /* PAGESIZE */
9052 # endif /* no NBPC */
9053 # endif /* no NBPG */
9054 # endif /* no EXEC_PAGESIZE */
9055 # else /* no HAVE_SYS_PARAM_H */
9056 # define getpagesize() 8192 /* punt totally */
9057 # endif /* no HAVE_SYS_PARAM_H */
9058 # endif /* no _SC_PAGESIZE */
9060 #endif /* no HAVE_GETPAGESIZE */
9065 char *data, *data2, *data3;
9069 pagesize = getpagesize ();
9071 /* First, make a file with some known garbage in it. */
9072 data = (char *) malloc (pagesize);
9075 for (i = 0; i < pagesize; ++i)
9076 *(data + i) = rand ();
9078 fd = creat ("conftest.mmap", 0600);
9081 if (write (fd, data, pagesize) != pagesize)
9085 /* Next, try to mmap the file at a fixed address which already has
9086 something else allocated at it. If we can, also make sure that
9087 we see the same garbage. */
9088 fd = open ("conftest.mmap", O_RDWR);
9091 data2 = (char *) malloc (2 * pagesize);
9094 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9098 for (i = 0; i < pagesize; ++i)
9099 if (*(data + i) != *(data2 + i))
9102 /* Finally, make sure that changes to the mapped area do not
9103 percolate back to the file as seen by read(). (This is a bug on
9104 some variants of i386 svr4.0.) */
9105 for (i = 0; i < pagesize; ++i)
9106 *(data2 + i) = *(data2 + i) + 1;
9107 data3 = (char *) malloc (pagesize);
9110 if (read (fd, data3, pagesize) != pagesize)
9112 for (i = 0; i < pagesize; ++i)
9113 if (*(data + i) != *(data3 + i))
9119 rm -f conftest
$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_func_mmap_fixed_mapped
=yes
9132 echo "$as_me: program exited with status $ac_status" >&5
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.
$ac_ext >&5
9137 ac_cv_func_mmap_fixed_mapped
=no
9139 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9143 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9144 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9146 cat >>confdefs.h
<<\_ACEOF
9153 if test $use_mmap_for_buffers = yes; then
9157 LIBS
="$libsrc_libs $LIBS"
9160 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9161 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9162 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 ac_check_lib_save_LIBS
=$LIBS
9167 cat >conftest.
$ac_ext <<_ACEOF
9170 cat confdefs.h
>>conftest.
$ac_ext
9171 cat >>conftest.
$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9174 /* Override any gcc2 internal prototype to avoid an error. */
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9189 rm -f conftest.
$ac_objext conftest
$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try
='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_lib_dnet_dnet_ntoa
=yes
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.
$ac_ext >&5
9215 ac_cv_lib_dnet_dnet_ntoa
=no
9217 rm -f conftest.err conftest.
$ac_objext \
9218 conftest
$ac_exeext conftest.
$ac_ext
9219 LIBS
=$ac_check_lib_save_LIBS
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9222 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9223 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9224 cat >>confdefs.h
<<_ACEOF
9225 #define HAVE_LIBDNET 1
9233 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9234 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9235 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 ac_check_lib_save_LIBS
=$LIBS
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9256 rm -f conftest.
$ac_objext conftest
$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258 (eval $ac_link) 2>conftest.er1
9260 grep -v '^ *+' conftest.er1
>conftest.err
9262 cat conftest.err
>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try
='test -s conftest$ac_exeext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 ac_cv_lib_Xbsd_main
=yes
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.
$ac_ext >&5
9282 ac_cv_lib_Xbsd_main
=no
9284 rm -f conftest.err conftest.
$ac_objext \
9285 conftest
$ac_exeext conftest.
$ac_ext
9286 LIBS
=$ac_check_lib_save_LIBS
9288 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9289 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9290 if test $ac_cv_lib_Xbsd_main = yes; then
9291 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9296 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9297 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9298 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 ac_check_lib_save_LIBS
=$LIBS
9302 LIBS
="-lpthreads $LIBS"
9303 cat >conftest.
$ac_ext <<_ACEOF
9306 cat confdefs.h
>>conftest.
$ac_ext
9307 cat >>conftest.
$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9310 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9325 rm -f conftest.
$ac_objext conftest
$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>conftest.er1
9329 grep -v '^ *+' conftest.er1
>conftest.err
9331 cat conftest.err
>&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; } &&
9340 { ac_try
='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_lib_pthreads_cma_open
=yes
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.
$ac_ext >&5
9351 ac_cv_lib_pthreads_cma_open
=no
9353 rm -f conftest.err conftest.
$ac_objext \
9354 conftest
$ac_exeext conftest.
$ac_ext
9355 LIBS
=$ac_check_lib_save_LIBS
9357 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9358 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9359 if test $ac_cv_lib_pthreads_cma_open = yes; then
9360 cat >>confdefs.h
<<_ACEOF
9361 #define HAVE_LIBPTHREADS 1
9364 LIBS
="-lpthreads $LIBS"
9369 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9370 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9371 if test -d /usr
/X386
/include
; then
9373 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9377 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9378 echo "${ECHO_T}$HAVE_XFREE386" >&6
9383 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9384 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9385 if test "${gdb_cv_bigtoc+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9391 *) gdb_cv_bigtoc
=-bbigtoc ;;
9394 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9395 cat >conftest.
$ac_ext <<_ACEOF
9398 cat confdefs.h
>>conftest.
$ac_ext
9399 cat >>conftest.
$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9410 rm -f conftest.
$ac_objext conftest
$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9414 grep -v '^ *+' conftest.er1
>conftest.err
9416 cat conftest.err
>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try
='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.
$ac_ext >&5
9438 rm -f conftest.err conftest.
$ac_objext \
9439 conftest
$ac_exeext conftest.
$ac_ext
9442 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9443 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9447 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9448 # used for the tests that follow. We set them back to REAL_CFLAGS and
9449 # REAL_CPPFLAGS later on.
9451 REAL_CPPFLAGS
="$CPPFLAGS"
9453 if test "${HAVE_X11}" = "yes"; then
9454 DEFS
="$C_SWITCH_X_SITE $DEFS"
9455 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9457 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9458 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9460 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9461 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9462 # but it's more convenient here to set LD_RUN_PATH
9463 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9464 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9465 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9469 if test "${opsys}" = "gnu-linux"; then
9470 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9471 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9472 cat >conftest.
$ac_ext <<_ACEOF
9475 cat confdefs.h
>>conftest.
$ac_ext
9476 cat >>conftest.
$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9482 XOpenDisplay ("foo");
9487 rm -f conftest.
$ac_objext conftest
$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9491 grep -v '^ *+' conftest.er1
>conftest.err
9493 cat conftest.err
>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try
='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 xlinux_first_failure
=no
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.
$ac_ext >&5
9513 xlinux_first_failure
=yes
9515 rm -f conftest.err conftest.
$ac_objext \
9516 conftest
$ac_exeext conftest.
$ac_ext
9517 if test "${xlinux_first_failure}" = "yes"; then
9518 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9519 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9520 OLD_CPPFLAGS
="$CPPFLAGS"
9522 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9523 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9524 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9525 LIBS
="$LIBS -b i486-linuxaout"
9526 cat >conftest.
$ac_ext <<_ACEOF
9529 cat confdefs.h
>>conftest.
$ac_ext
9530 cat >>conftest.
$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9536 XOpenDisplay ("foo");
9541 rm -f conftest.
$ac_objext conftest
$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>conftest.er1
9545 grep -v '^ *+' conftest.er1
>conftest.err
9547 cat conftest.err
>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try
='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 xlinux_second_failure
=no
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.
$ac_ext >&5
9567 xlinux_second_failure
=yes
9569 rm -f conftest.err conftest.
$ac_objext \
9570 conftest
$ac_exeext conftest.
$ac_ext
9571 if test "${xlinux_second_failure}" = "yes"; then
9572 # If we get the same failure with -b, there is no use adding -b.
9573 # So take it out. This plays safe.
9574 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9575 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9576 CPPFLAGS
="$OLD_CPPFLAGS"
9578 echo "$as_me:$LINENO: result: no" >&5
9579 echo "${ECHO_T}no" >&6
9581 echo "$as_me:$LINENO: result: yes" >&5
9582 echo "${ECHO_T}yes" >&6
9585 echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9590 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9591 # header files included from there.
9592 echo "$as_me:$LINENO: checking for Xkb" >&5
9593 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9594 cat >conftest.
$ac_ext <<_ACEOF
9597 cat confdefs.h
>>conftest.
$ac_ext
9598 cat >>conftest.
$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <X11/Xlib.h>
9601 #include <X11/XKBlib.h>
9605 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9610 rm -f conftest.
$ac_objext conftest
$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1
>conftest.err
9616 cat conftest.err
>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try
='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.
$ac_ext >&5
9638 rm -f conftest.err conftest.
$ac_objext \
9639 conftest
$ac_exeext conftest.
$ac_ext
9640 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9641 echo "${ECHO_T}$emacs_xkb" >&6
9642 if test $emacs_xkb = yes; then
9644 cat >>confdefs.h
<<\_ACEOF
9645 #define HAVE_XKBGETKEYBOARD 1
9654 for ac_func
in XrmSetDatabase XScreenResourceString \
9655 XScreenNumberOfScreen XSetWMProtocols
9657 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9658 echo "$as_me:$LINENO: checking for $ac_func" >&5
9659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9660 if eval "test \"\${$as_ac_var+set}\" = set"; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.
$ac_ext <<_ACEOF
9666 cat confdefs.h
>>conftest.
$ac_ext
9667 cat >>conftest.
$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9671 #define $ac_func innocuous_$ac_func
9673 /* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func (); below.
9675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 <limits.h> exists even on freestanding compilers. */
9679 # include <limits.h>
9681 # include <assert.h>
9686 /* Override any gcc2 internal prototype to avoid an error. */
9691 /* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9694 /* The GNU C library defines this for functions which it implements
9695 to always fail with ENOSYS. Some functions are actually named
9696 something starting with __ and the normal name is an alias. */
9697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9700 char (*f) () = $ac_func;
9709 return f != $ac_func;
9714 rm -f conftest.
$ac_objext conftest
$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>conftest.er1
9718 grep -v '^ *+' conftest.er1
>conftest.err
9720 cat conftest.err
>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try
='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 eval "$as_ac_var=yes"
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.
$ac_ext >&5
9740 eval "$as_ac_var=no"
9742 rm -f conftest.err conftest.
$ac_objext \
9743 conftest
$ac_exeext conftest.
$ac_ext
9745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9747 if test `eval echo '${'$as_ac_var'}'` = yes; then
9748 cat >>confdefs.h
<<_ACEOF
9749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9757 if test "${window_system}" = "x11"; then
9758 echo "$as_me:$LINENO: checking X11 version 6" >&5
9759 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9760 if test "${emacs_cv_x11_version_6+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.
$ac_ext <<_ACEOF
9766 cat confdefs.h
>>conftest.
$ac_ext
9767 cat >>conftest.
$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 #include <X11/Xlib.h>
9773 #if XlibSpecificationRelease < 6
9781 rm -f conftest.
$ac_objext conftest
$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9785 grep -v '^ *+' conftest.er1
>conftest.err
9787 cat conftest.err
>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try
='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 emacs_cv_x11_version_6
=yes
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.
$ac_ext >&5
9807 emacs_cv_x11_version_6
=no
9809 rm -f conftest.err conftest.
$ac_objext \
9810 conftest
$ac_exeext conftest.
$ac_ext
9813 if test $emacs_cv_x11_version_6 = yes; then
9814 echo "$as_me:$LINENO: result: 6 or newer" >&5
9815 echo "${ECHO_T}6 or newer" >&6
9817 cat >>confdefs.h
<<\_ACEOF
9818 #define HAVE_X11R6 1
9822 echo "$as_me:$LINENO: result: before 6" >&5
9823 echo "${ECHO_T}before 6" >&6
9827 if test "${window_system}" = "x11"; then
9828 echo "$as_me:$LINENO: checking X11 version 5" >&5
9829 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9830 if test "${emacs_cv_x11_version_5+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 cat >conftest.
$ac_ext <<_ACEOF
9836 cat confdefs.h
>>conftest.
$ac_ext
9837 cat >>conftest.
$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9843 #if XlibSpecificationRelease < 5
9851 rm -f conftest.
$ac_objext conftest
$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1
>conftest.err
9857 cat conftest.err
>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try
='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 emacs_cv_x11_version_5
=yes
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.
$ac_ext >&5
9877 emacs_cv_x11_version_5
=no
9879 rm -f conftest.err conftest.
$ac_objext \
9880 conftest
$ac_exeext conftest.
$ac_ext
9883 if test $emacs_cv_x11_version_5 = yes; then
9884 echo "$as_me:$LINENO: result: 5 or newer" >&5
9885 echo "${ECHO_T}5 or newer" >&6
9888 cat >>confdefs.h
<<\_ACEOF
9889 #define HAVE_X11R5 1
9894 echo "$as_me:$LINENO: result: before 5" >&5
9895 echo "${ECHO_T}before 5" >&6
9902 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9903 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9904 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9905 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9906 { (exit 1); exit 1; }; };
9910 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9912 if test "X${with_pkg_config_prog}" != X
; then
9913 PKG_CONFIG
="${with_pkg_config_prog}"
9918 if test -z "$PKG_CONFIG"; then
9919 # Extract the first word of "pkg-config", so it can be a program name with args.
9920 set dummy pkg-config
; ac_word
=$2
9921 echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9923 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9935 test -z "$as_dir" && as_dir
=.
9936 for ac_exec_ext
in '' $ac_executable_extensions; do
9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9949 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9951 if test -n "$PKG_CONFIG"; then
9952 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9953 echo "${ECHO_T}$PKG_CONFIG" >&6
9955 echo "$as_me:$LINENO: result: no" >&5
9956 echo "${ECHO_T}no" >&6
9961 if test "$PKG_CONFIG" = "no" ; then
9962 echo "*** The pkg-config script could not be found. Make sure it is"
9963 echo "*** in your path, or give the full path to pkg-config with"
9964 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9965 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9967 PKG_CONFIG_MIN_VERSION
=0.9.0
9968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9969 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9970 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9972 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9973 echo "$as_me:$LINENO: result: yes" >&5
9974 echo "${ECHO_T}yes" >&6
9977 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9978 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9979 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9980 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9981 echo "${ECHO_T}$GTK_CFLAGS" >&6
9983 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9984 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9985 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9986 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9987 echo "${ECHO_T}$GTK_LIBS" >&6
9991 ## If we have a custom action on failure, don't print errors, but
9992 ## do set a variable so people can do so.
9993 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9994 echo $GTK_PKG_ERRORS
10000 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10001 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10005 if test $succeeded = yes; then
10008 { { 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
10009 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;}
10010 { (exit 1); exit 1; }; }
10015 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10016 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10017 LIBS
="$GTK_LIBS $LIBS"
10020 cat >>confdefs.h
<<\_ACEOF
10026 if test "$with_toolkit_scroll_bars" != no
; then
10027 with_toolkit_scroll_bars
=yes
10030 HAVE_GTK_MULTIDISPLAY
=no
10032 HAVE_GTK_FILE_SELECTION
=no
10034 for ac_func
in gtk_file_selection_new
10036 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10037 echo "$as_me:$LINENO: checking for $ac_func" >&5
10038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10039 if eval "test \"\${$as_ac_var+set}\" = set"; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 cat >conftest.
$ac_ext <<_ACEOF
10045 cat confdefs.h
>>conftest.
$ac_ext
10046 cat >>conftest.
$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10050 #define $ac_func innocuous_$ac_func
10052 /* System header to define __stub macros and hopefully few prototypes,
10053 which can conflict with char $ac_func (); below.
10054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10055 <limits.h> exists even on freestanding compilers. */
10058 # include <limits.h>
10060 # include <assert.h>
10065 /* Override any gcc2 internal prototype to avoid an error. */
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10073 /* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10079 char (*f) () = $ac_func;
10088 return f != $ac_func;
10093 rm -f conftest.
$ac_objext conftest
$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095 (eval $ac_link) 2>conftest.er1
10097 grep -v '^ *+' conftest.er1
>conftest.err
10099 cat conftest.err
>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try
='test -s conftest$ac_exeext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 eval "$as_ac_var=yes"
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.
$ac_ext >&5
10119 eval "$as_ac_var=no"
10121 rm -f conftest.err conftest.
$ac_objext \
10122 conftest
$ac_exeext conftest.
$ac_ext
10124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10126 if test `eval echo '${'$as_ac_var'}'` = yes; then
10127 cat >>confdefs.h
<<_ACEOF
10128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10130 HAVE_GTK_FILE_SELECTION
=yes
10135 HAVE_GTK_FILE_CHOOSER
=no
10137 for ac_func
in gtk_file_chooser_dialog_new
10139 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10140 echo "$as_me:$LINENO: checking for $ac_func" >&5
10141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10142 if eval "test \"\${$as_ac_var+set}\" = set"; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.
$ac_ext <<_ACEOF
10148 cat confdefs.h
>>conftest.
$ac_ext
10149 cat >>conftest.
$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10153 #define $ac_func innocuous_$ac_func
10155 /* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char $ac_func (); below.
10157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158 <limits.h> exists even on freestanding compilers. */
10161 # include <limits.h>
10163 # include <assert.h>
10168 /* Override any gcc2 internal prototype to avoid an error. */
10173 /* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10176 /* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10182 char (*f) () = $ac_func;
10191 return f != $ac_func;
10196 rm -f conftest.
$ac_objext conftest
$ac_exeext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>conftest.er1
10200 grep -v '^ *+' conftest.er1
>conftest.err
10202 cat conftest.err
>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try
='test -s conftest$ac_exeext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 eval "$as_ac_var=yes"
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.
$ac_ext >&5
10222 eval "$as_ac_var=no"
10224 rm -f conftest.err conftest.
$ac_objext \
10225 conftest
$ac_exeext conftest.
$ac_ext
10227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10229 if test `eval echo '${'$as_ac_var'}'` = yes; then
10230 cat >>confdefs.h
<<_ACEOF
10231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10233 HAVE_GTK_FILE_CHOOSER
=yes
10238 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10239 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10241 cat >>confdefs.h
<<\_ACEOF
10242 #define HAVE_GTK_FILE_BOTH 1
10247 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10248 HAVE_GTK_AND_PTHREAD
=no
10250 for ac_header
in pthread.h
10252 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254 echo "$as_me:$LINENO: checking for $ac_header" >&5
10255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10262 # Is the header compilable?
10263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10265 cat >conftest.
$ac_ext <<_ACEOF
10268 cat confdefs.h
>>conftest.
$ac_ext
10269 cat >>conftest.
$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #include <$ac_header>
10274 rm -f conftest.
$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10278 grep -v '^ *+' conftest.er1
>conftest.err
10280 cat conftest.err
>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try
='test -s conftest.$ac_objext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295 ac_header_compiler
=yes
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.
$ac_ext >&5
10300 ac_header_compiler
=no
10302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10304 echo "${ECHO_T}$ac_header_compiler" >&6
10306 # Is the header present?
10307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10309 cat >conftest.
$ac_ext <<_ACEOF
10312 cat confdefs.h
>>conftest.
$ac_ext
10313 cat >>conftest.
$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 #include <$ac_header>
10317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10318 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10320 grep -v '^ *+' conftest.er1
>conftest.err
10322 cat conftest.err
>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } >/dev
/null
; then
10325 if test -s conftest.err
; then
10326 ac_cpp_err
=$ac_c_preproc_warn_flag
10327 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10334 if test -z "$ac_cpp_err"; then
10335 ac_header_preproc
=yes
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.
$ac_ext >&5
10340 ac_header_preproc
=no
10342 rm -f conftest.err conftest.
$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10344 echo "${ECHO_T}$ac_header_preproc" >&6
10346 # So? What about this header?
10347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10353 ac_header_preproc
=yes
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10370 ## ------------------------------------------ ##
10371 ## Report this to the AC_PACKAGE_NAME lists. ##
10372 ## ------------------------------------------ ##
10375 sed "s/^/$as_me: WARNING: /" >&2
10378 echo "$as_me:$LINENO: checking for $ac_header" >&5
10379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 eval "$as_ac_Header=\$ac_header_preproc"
10385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10390 cat >>confdefs.h
<<_ACEOF
10391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10398 if test "$ac_cv_header_pthread_h"; then
10399 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10400 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10401 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 ac_check_lib_save_LIBS
=$LIBS
10405 LIBS
="-lpthread $LIBS"
10406 cat >conftest.
$ac_ext <<_ACEOF
10409 cat confdefs.h
>>conftest.
$ac_ext
10410 cat >>conftest.
$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10413 /* Override any gcc2 internal prototype to avoid an error. */
10417 /* We use char because int might match the return type of a gcc2
10418 builtin and then its argument prototype would still apply. */
10419 char pthread_self ();
10428 rm -f conftest.
$ac_objext conftest
$ac_exeext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430 (eval $ac_link) 2>conftest.er1
10432 grep -v '^ *+' conftest.er1
>conftest.err
10434 cat conftest.err
>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try
='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_lib_pthread_pthread_self
=yes
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.
$ac_ext >&5
10454 ac_cv_lib_pthread_pthread_self
=no
10456 rm -f conftest.err conftest.
$ac_objext \
10457 conftest
$ac_exeext conftest.
$ac_ext
10458 LIBS
=$ac_check_lib_save_LIBS
10460 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10461 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10462 if test $ac_cv_lib_pthread_pthread_self = yes; then
10463 HAVE_GTK_AND_PTHREAD
=yes
10467 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10468 GTK_LIBS
="$GTK_LIBS -lpthread"
10470 cat >>confdefs.h
<<\_ACEOF
10471 #define HAVE_GTK_AND_PTHREAD 1
10478 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10479 if test x
"${HAVE_X11R5}" = xyes
; then
10480 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10481 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10482 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cat >conftest.
$ac_ext <<_ACEOF
10488 cat confdefs.h
>>conftest.
$ac_ext
10489 cat >>conftest.
$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10492 #include <X11/Intrinsic.h>
10493 #include <X11/Xaw/Simple.h>
10502 rm -f conftest.
$ac_objext conftest
$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>conftest.er1
10506 grep -v '^ *+' conftest.er1
>conftest.err
10508 cat conftest.err
>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; } &&
10517 { ac_try
='test -s conftest$ac_exeext'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; }; then
10523 emacs_cv_x11_version_5_with_xaw
=yes
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.
$ac_ext >&5
10528 emacs_cv_x11_version_5_with_xaw
=no
10530 rm -f conftest.err conftest.
$ac_objext \
10531 conftest
$ac_exeext conftest.
$ac_ext
10534 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10535 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10536 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10537 USE_X_TOOLKIT
=LUCID
10539 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10540 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10548 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10550 if test "${USE_X_TOOLKIT}" != "none"; then
10551 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10552 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10553 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 cat >conftest.
$ac_ext <<_ACEOF
10559 cat confdefs.h
>>conftest.
$ac_ext
10560 cat >>conftest.
$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <X11/Intrinsic.h>
10566 #if XtSpecificationRelease < 6
10574 rm -f conftest.
$ac_objext conftest
$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>conftest.er1
10578 grep -v '^ *+' conftest.er1
>conftest.err
10580 cat conftest.err
>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; } &&
10589 { ac_try
='test -s conftest$ac_exeext'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 emacs_cv_x11_toolkit_version_6
=yes
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.
$ac_ext >&5
10600 emacs_cv_x11_toolkit_version_6
=no
10602 rm -f conftest.err conftest.
$ac_objext \
10603 conftest
$ac_exeext conftest.
$ac_ext
10606 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10607 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10608 echo "$as_me:$LINENO: result: 6 or newer" >&5
10609 echo "${ECHO_T}6 or newer" >&6
10611 cat >>confdefs.h
<<\_ACEOF
10612 #define HAVE_X11XTR6 1
10616 echo "$as_me:$LINENO: result: before 6" >&5
10617 echo "${ECHO_T}before 6" >&6
10621 if test x
$HAVE_X11XTR6 = xyes
; then
10622 LIBS
="-lXt -lSM -lICE $LIBS"
10627 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10628 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10629 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 ac_check_lib_save_LIBS
=$LIBS
10634 cat >conftest.
$ac_ext <<_ACEOF
10637 cat confdefs.h
>>conftest.
$ac_ext
10638 cat >>conftest.
$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10641 /* Override any gcc2 internal prototype to avoid an error. */
10645 /* We use char because int might match the return type of a gcc2
10646 builtin and then its argument prototype would still apply. */
10647 char XmuConvertStandardSelection ();
10651 XmuConvertStandardSelection ();
10656 rm -f conftest.
$ac_objext conftest
$ac_exeext
10657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10658 (eval $ac_link) 2>conftest.er1
10660 grep -v '^ *+' conftest.er1
>conftest.err
10662 cat conftest.err
>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try
='test -s conftest$ac_exeext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.
$ac_ext >&5
10682 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10684 rm -f conftest.err conftest.
$ac_objext \
10685 conftest
$ac_exeext conftest.
$ac_ext
10686 LIBS
=$ac_check_lib_save_LIBS
10688 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10689 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10690 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10691 cat >>confdefs.h
<<_ACEOF
10692 #define HAVE_LIBXMU 1
10699 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10702 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10703 if test "${HAVE_X11}" = "yes"; then
10704 if test "${USE_X_TOOLKIT}" != "none"; then
10706 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10707 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10708 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 ac_check_lib_save_LIBS
=$LIBS
10712 LIBS
="-lXext $LIBS"
10713 cat >conftest.
$ac_ext <<_ACEOF
10716 cat confdefs.h
>>conftest.
$ac_ext
10717 cat >>conftest.
$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10720 /* Override any gcc2 internal prototype to avoid an error. */
10724 /* We use char because int might match the return type of a gcc2
10725 builtin and then its argument prototype would still apply. */
10726 char XShapeQueryExtension ();
10730 XShapeQueryExtension ();
10735 rm -f conftest.
$ac_objext conftest
$ac_exeext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10737 (eval $ac_link) 2>conftest.er1
10739 grep -v '^ *+' conftest.er1
>conftest.err
10741 cat conftest.err
>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try
='test -s conftest$ac_exeext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.
$ac_ext >&5
10761 ac_cv_lib_Xext_XShapeQueryExtension
=no
10763 rm -f conftest.err conftest.
$ac_objext \
10764 conftest
$ac_exeext conftest.
$ac_ext
10765 LIBS
=$ac_check_lib_save_LIBS
10767 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10768 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10769 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10770 cat >>confdefs.h
<<_ACEOF
10771 #define HAVE_LIBXEXT 1
10774 LIBS
="-lXext $LIBS"
10781 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10782 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10783 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10784 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 cat >conftest.
$ac_ext <<_ACEOF
10790 cat confdefs.h
>>conftest.
$ac_ext
10791 cat >>conftest.
$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10797 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10800 Motif version prior to 2.1.
10806 rm -f conftest.
$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808 (eval $ac_compile) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1
>conftest.err
10812 cat conftest.err
>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try
='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 emacs_cv_motif_version_2_1
=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.
$ac_ext >&5
10832 emacs_cv_motif_version_2_1
=no
10834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10836 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10837 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10838 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10839 if test $emacs_cv_motif_version_2_1 = yes; then
10842 cat >>confdefs.h
<<\_ACEOF
10843 #define HAVE_MOTIF_2_1 1
10846 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10847 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10848 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 ac_check_lib_save_LIBS
=$LIBS
10853 cat >conftest.
$ac_ext <<_ACEOF
10856 cat confdefs.h
>>conftest.
$ac_ext
10857 cat >>conftest.
$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10860 /* Override any gcc2 internal prototype to avoid an error. */
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10866 char XpCreateContext ();
10870 XpCreateContext ();
10875 rm -f conftest.
$ac_objext conftest
$ac_exeext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877 (eval $ac_link) 2>conftest.er1
10879 grep -v '^ *+' conftest.er1
>conftest.err
10881 cat conftest.err
>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try
='test -s conftest$ac_exeext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_lib_Xp_XpCreateContext
=yes
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.
$ac_ext >&5
10901 ac_cv_lib_Xp_XpCreateContext
=no
10903 rm -f conftest.err conftest.
$ac_objext \
10904 conftest
$ac_exeext conftest.
$ac_ext
10905 LIBS
=$ac_check_lib_save_LIBS
10907 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10908 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10909 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10913 if test ${HAVE_LIBXP} = yes; then
10915 cat >>confdefs.h
<<\_ACEOF
10916 #define HAVE_LIBXP 1
10921 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10922 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10923 if test "${emacs_cv_lesstif+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 # We put this in CFLAGS temporarily to precede other -I options
10927 # that might be in CFLAGS temporarily.
10928 # We put this in CPPFLAGS where it precedes the other -I options.
10929 OLD_CPPFLAGS
=$CPPFLAGS
10931 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10932 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10933 cat >conftest.
$ac_ext <<_ACEOF
10936 cat confdefs.h
>>conftest.
$ac_ext
10937 cat >>conftest.
$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10948 rm -f conftest.
$ac_objext
10949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10950 (eval $ac_compile) 2>conftest.er1
10952 grep -v '^ *+' conftest.er1
>conftest.err
10954 cat conftest.err
>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; } &&
10963 { ac_try
='test -s conftest.$ac_objext'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 emacs_cv_lesstif
=yes
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.
$ac_ext >&5
10974 emacs_cv_lesstif
=no
10976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10978 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10979 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10980 if test $emacs_cv_lesstif = yes; then
10981 # Make sure this -I option remains in CPPFLAGS after it is set
10982 # back to REAL_CPPFLAGS.
10983 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10984 # have those other -I options anyway. Ultimately, having this
10985 # directory ultimately in CPPFLAGS will be enough.
10986 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10987 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10990 CPPFLAGS
=$OLD_CPPFLAGS
10995 ### Is -lXaw3d available?
10997 if test "${HAVE_X11}" = "yes"; then
10998 if test "${USE_X_TOOLKIT}" != "none"; then
10999 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11000 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11001 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 cat >conftest.
$ac_ext <<_ACEOF
11007 cat confdefs.h
>>conftest.
$ac_ext
11008 cat >>conftest.
$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 #include <X11/Xaw3d/Scrollbar.h>
11012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11015 grep -v '^ *+' conftest.er1
>conftest.err
11017 cat conftest.err
>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } >/dev
/null
; then
11020 if test -s conftest.err
; then
11021 ac_cpp_err
=$ac_c_preproc_warn_flag
11022 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11029 if test -z "$ac_cpp_err"; then
11030 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.
$ac_ext >&5
11035 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11037 rm -f conftest.err conftest.
$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11040 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11041 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11042 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11043 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11044 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 ac_check_lib_save_LIBS
=$LIBS
11048 LIBS
="-lXaw3d $LIBS"
11049 cat >conftest.
$ac_ext <<_ACEOF
11052 cat confdefs.h
>>conftest.
$ac_ext
11053 cat >>conftest.
$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11056 /* Override any gcc2 internal prototype to avoid an error. */
11060 /* We use char because int might match the return type of a gcc2
11061 builtin and then its argument prototype would still apply. */
11062 char XawScrollbarSetThumb ();
11066 XawScrollbarSetThumb ();
11071 rm -f conftest.
$ac_objext conftest
$ac_exeext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073 (eval $ac_link) 2>conftest.er1
11075 grep -v '^ *+' conftest.er1
>conftest.err
11077 cat conftest.err
>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; } &&
11086 { ac_try
='test -s conftest$ac_exeext'
11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.
$ac_ext >&5
11097 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11099 rm -f conftest.err conftest.
$ac_objext \
11100 conftest
$ac_exeext conftest.
$ac_ext
11101 LIBS
=$ac_check_lib_save_LIBS
11103 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11104 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11105 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11112 if test "${HAVE_XAW3D}" = "yes"; then
11114 cat >>confdefs.h
<<\_ACEOF
11115 #define HAVE_XAW3D 1
11124 USE_TOOLKIT_SCROLL_BARS
=no
11125 if test "${with_toolkit_scroll_bars}" != "no"; then
11126 if test "${USE_X_TOOLKIT}" != "none"; then
11127 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11128 cat >>confdefs.h
<<\_ACEOF
11129 #define USE_TOOLKIT_SCROLL_BARS 1
11133 USE_TOOLKIT_SCROLL_BARS
=yes
11134 elif test "${HAVE_XAW3D}" = "yes"; then
11135 cat >>confdefs.h
<<\_ACEOF
11136 #define USE_TOOLKIT_SCROLL_BARS 1
11139 USE_TOOLKIT_SCROLL_BARS
=yes
11141 elif test "${HAVE_GTK}" = "yes"; then
11142 cat >>confdefs.h
<<\_ACEOF
11143 #define USE_TOOLKIT_SCROLL_BARS 1
11146 USE_TOOLKIT_SCROLL_BARS
=yes
11147 elif test "${HAVE_CARBON}" = "yes"; then
11148 cat >>confdefs.h
<<\_ACEOF
11149 #define USE_TOOLKIT_SCROLL_BARS 1
11152 USE_TOOLKIT_SCROLL_BARS
=yes
11156 cat >conftest.
$ac_ext <<_ACEOF
11159 cat confdefs.h
>>conftest.
$ac_ext
11160 cat >>conftest.
$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11163 #include <X11/Xlib.h>
11164 #include <X11/Xresource.h>
11173 rm -f conftest.
$ac_objext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11175 (eval $ac_compile) 2>conftest.er1
11177 grep -v '^ *+' conftest.er1
>conftest.err
11179 cat conftest.err
>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try
='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11196 cat >>confdefs.h
<<\_ACEOF
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.
$ac_ext >&5
11206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11209 if test "${with_xim}" != "no"; then
11211 cat >>confdefs.h
<<\_ACEOF
11218 if test "${HAVE_XIM}" != "no"; then
11219 late_CFLAGS
=$CFLAGS
11220 if test "$GCC" = yes; then
11221 CFLAGS
="$CFLAGS --pedantic-errors"
11223 cat >conftest.
$ac_ext <<_ACEOF
11226 cat confdefs.h
>>conftest.
$ac_ext
11227 cat >>conftest.
$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11230 #include <X11/Xlib.h>
11231 #include <X11/Xresource.h>
11240 XPointer *client_data;
11242 /* If we're not using GCC, it's probably not XFree86, and this is
11243 probably right, but we can't use something like --pedantic-errors. */
11244 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11245 char*, XIMProc, XPointer*);
11247 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11253 rm -f conftest.
$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255 (eval $ac_compile) 2>conftest.er1
11257 grep -v '^ *+' conftest.er1
>conftest.err
11259 cat conftest.err
>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; } &&
11268 { ac_try
='test -s conftest.$ac_objext'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11274 emacs_cv_arg6_star
=yes
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.
$ac_ext >&5
11280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11282 if test "$emacs_cv_arg6_star" = yes; then
11283 cat >>confdefs.h
<<\_ACEOF
11284 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11288 cat >>confdefs.h
<<\_ACEOF
11289 #define XRegisterIMInstantiateCallback_arg6 XPointer
11293 CFLAGS
=$late_CFLAGS
11296 ### Use -lXpm if available, unless `--with-xpm=no'.
11298 if test "${HAVE_X11}" = "yes"; then
11299 if test "${with_xpm}" != "no"; then
11300 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11301 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11302 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11303 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11307 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11309 # Is the header compilable?
11310 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11311 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11312 cat >conftest.
$ac_ext <<_ACEOF
11315 cat confdefs.h
>>conftest.
$ac_ext
11316 cat >>conftest.
$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 $ac_includes_default
11319 #include <X11/xpm.h>
11321 rm -f conftest.
$ac_objext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323 (eval $ac_compile) 2>conftest.er1
11325 grep -v '^ *+' conftest.er1
>conftest.err
11327 cat conftest.err
>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try
='test -s conftest.$ac_objext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_header_compiler
=yes
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.
$ac_ext >&5
11347 ac_header_compiler
=no
11349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11351 echo "${ECHO_T}$ac_header_compiler" >&6
11353 # Is the header present?
11354 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11355 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11356 cat >conftest.
$ac_ext <<_ACEOF
11359 cat confdefs.h
>>conftest.
$ac_ext
11360 cat >>conftest.
$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 #include <X11/xpm.h>
11364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11367 grep -v '^ *+' conftest.er1
>conftest.err
11369 cat conftest.err
>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } >/dev
/null
; then
11372 if test -s conftest.err
; then
11373 ac_cpp_err
=$ac_c_preproc_warn_flag
11374 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11381 if test -z "$ac_cpp_err"; then
11382 ac_header_preproc
=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.
$ac_ext >&5
11387 ac_header_preproc
=no
11389 rm -f conftest.err conftest.
$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391 echo "${ECHO_T}$ac_header_preproc" >&6
11393 # So? What about this header?
11394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11397 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11399 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11400 ac_header_preproc
=yes
11403 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11404 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11406 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11408 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11410 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11414 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11417 ## ------------------------------------------ ##
11418 ## Report this to the AC_PACKAGE_NAME lists. ##
11419 ## ------------------------------------------ ##
11422 sed "s/^/$as_me: WARNING: /" >&2
11425 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11426 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11427 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11432 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11433 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11436 if test $ac_cv_header_X11_xpm_h = yes; then
11437 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11438 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11439 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 ac_check_lib_save_LIBS
=$LIBS
11443 LIBS
="-lXpm -lX11 $LIBS"
11444 cat >conftest.
$ac_ext <<_ACEOF
11447 cat confdefs.h
>>conftest.
$ac_ext
11448 cat >>conftest.
$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11451 /* Override any gcc2 internal prototype to avoid an error. */
11455 /* We use char because int might match the return type of a gcc2
11456 builtin and then its argument prototype would still apply. */
11457 char XpmReadFileToPixmap ();
11461 XpmReadFileToPixmap ();
11466 rm -f conftest.
$ac_objext conftest
$ac_exeext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468 (eval $ac_link) 2>conftest.er1
11470 grep -v '^ *+' conftest.er1
>conftest.err
11472 cat conftest.err
>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try
='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.
$ac_ext >&5
11492 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11494 rm -f conftest.err conftest.
$ac_objext \
11495 conftest
$ac_exeext conftest.
$ac_ext
11496 LIBS
=$ac_check_lib_save_LIBS
11498 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11499 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11500 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11507 if test "${HAVE_XPM}" = "yes"; then
11508 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11509 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11510 cat >conftest.
$ac_ext <<_ACEOF
11513 cat confdefs.h
>>conftest.
$ac_ext
11514 cat >>conftest.
$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 #include "X11/xpm.h"
11517 #ifndef XpmReturnAllocPixels
11518 no_return_alloc_pixels
11522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11523 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11531 if test "${HAVE_XPM}" = "yes"; then
11532 echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6
11535 echo "$as_me:$LINENO: result: no" >&5
11536 echo "${ECHO_T}no" >&6
11541 if test "${HAVE_XPM}" = "yes"; then
11543 cat >>confdefs.h
<<\_ACEOF
11550 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11552 if test "${HAVE_X11}" = "yes"; then
11553 if test "${with_jpeg}" != "no"; then
11554 if test "${ac_cv_header_jerror_h+set}" = set; then
11555 echo "$as_me:$LINENO: checking for jerror.h" >&5
11556 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11557 if test "${ac_cv_header_jerror_h+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11561 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11563 # Is the header compilable?
11564 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11565 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11566 cat >conftest.
$ac_ext <<_ACEOF
11569 cat confdefs.h
>>conftest.
$ac_ext
11570 cat >>conftest.
$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 $ac_includes_default
11573 #include <jerror.h>
11575 rm -f conftest.
$ac_objext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11577 (eval $ac_compile) 2>conftest.er1
11579 grep -v '^ *+' conftest.er1
>conftest.err
11581 cat conftest.err
>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try
='test -s conftest.$ac_objext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_header_compiler
=yes
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.
$ac_ext >&5
11601 ac_header_compiler
=no
11603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11605 echo "${ECHO_T}$ac_header_compiler" >&6
11607 # Is the header present?
11608 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11609 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11610 cat >conftest.
$ac_ext <<_ACEOF
11613 cat confdefs.h
>>conftest.
$ac_ext
11614 cat >>conftest.
$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 #include <jerror.h>
11618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11619 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11621 grep -v '^ *+' conftest.er1
>conftest.err
11623 cat conftest.err
>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } >/dev
/null
; then
11626 if test -s conftest.err
; then
11627 ac_cpp_err
=$ac_c_preproc_warn_flag
11628 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11635 if test -z "$ac_cpp_err"; then
11636 ac_header_preproc
=yes
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.
$ac_ext >&5
11641 ac_header_preproc
=no
11643 rm -f conftest.err conftest.
$ac_ext
11644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11645 echo "${ECHO_T}$ac_header_preproc" >&6
11647 # So? What about this header?
11648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11650 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11651 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11653 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11654 ac_header_preproc
=yes
11657 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11658 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11659 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11660 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11662 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11664 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11666 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11668 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11671 ## ------------------------------------------ ##
11672 ## Report this to the AC_PACKAGE_NAME lists. ##
11673 ## ------------------------------------------ ##
11676 sed "s/^/$as_me: WARNING: /" >&2
11679 echo "$as_me:$LINENO: checking for jerror.h" >&5
11680 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11681 if test "${ac_cv_header_jerror_h+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 ac_cv_header_jerror_h
=$ac_header_preproc
11686 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11687 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11690 if test $ac_cv_header_jerror_h = yes; then
11691 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11692 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11693 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 ac_check_lib_save_LIBS
=$LIBS
11697 LIBS
="-ljpeg $LIBS"
11698 cat >conftest.
$ac_ext <<_ACEOF
11701 cat confdefs.h
>>conftest.
$ac_ext
11702 cat >>conftest.
$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11705 /* Override any gcc2 internal prototype to avoid an error. */
11709 /* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11711 char jpeg_destroy_compress ();
11715 jpeg_destroy_compress ();
11720 rm -f conftest.
$ac_objext conftest
$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11724 grep -v '^ *+' conftest.er1
>conftest.err
11726 cat conftest.err
>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try
='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.
$ac_ext >&5
11746 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11748 rm -f conftest.err conftest.
$ac_objext \
11749 conftest
$ac_exeext conftest.
$ac_ext
11750 LIBS
=$ac_check_lib_save_LIBS
11752 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11753 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11754 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11764 if test "${HAVE_JPEG}" = "yes"; then
11765 cat >>confdefs.h
<<\_ACEOF
11766 #define HAVE_JPEG 1
11769 cat >conftest.
$ac_ext <<_ACEOF
11772 cat confdefs.h
>>conftest.
$ac_ext
11773 cat >>conftest.
$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 #include <jpeglib.h>
11776 version=JPEG_LIB_VERSION
11779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11780 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11781 cat >>confdefs.h
<<\_ACEOF
11782 #define HAVE_JPEG 1
11786 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11787 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11795 ### Use -lpng if available, unless `--with-png=no'.
11797 if test "${HAVE_X11}" = "yes"; then
11798 if test "${with_png}" != "no"; then
11799 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11800 # in /usr/include/libpng.
11803 for ac_header
in png.h libpng
/png.h
11805 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11807 echo "$as_me:$LINENO: checking for $ac_header" >&5
11808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11815 # Is the header compilable?
11816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11818 cat >conftest.
$ac_ext <<_ACEOF
11821 cat confdefs.h
>>conftest.
$ac_ext
11822 cat >>conftest.
$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 #include <$ac_header>
11827 rm -f conftest.
$ac_objext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11831 grep -v '^ *+' conftest.er1
>conftest.err
11833 cat conftest.err
>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try
='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_header_compiler
=yes
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.
$ac_ext >&5
11853 ac_header_compiler
=no
11855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11857 echo "${ECHO_T}$ac_header_compiler" >&6
11859 # Is the header present?
11860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11862 cat >conftest.
$ac_ext <<_ACEOF
11865 cat confdefs.h
>>conftest.
$ac_ext
11866 cat >>conftest.
$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 #include <$ac_header>
11870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11873 grep -v '^ *+' conftest.er1
>conftest.err
11875 cat conftest.err
>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } >/dev
/null
; then
11878 if test -s conftest.err
; then
11879 ac_cpp_err
=$ac_c_preproc_warn_flag
11880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11887 if test -z "$ac_cpp_err"; then
11888 ac_header_preproc
=yes
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.
$ac_ext >&5
11893 ac_header_preproc
=no
11895 rm -f conftest.err conftest.
$ac_ext
11896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897 echo "${ECHO_T}$ac_header_preproc" >&6
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc
=yes
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11923 ## ------------------------------------------ ##
11924 ## Report this to the AC_PACKAGE_NAME lists. ##
11925 ## ------------------------------------------ ##
11928 sed "s/^/$as_me: WARNING: /" >&2
11931 echo "$as_me:$LINENO: checking for $ac_header" >&5
11932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 eval "$as_ac_Header=\$ac_header_preproc"
11938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11943 cat >>confdefs.h
<<_ACEOF
11944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11951 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11952 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11953 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11954 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 ac_check_lib_save_LIBS
=$LIBS
11958 LIBS
="-lpng -lz -lm $LIBS"
11959 cat >conftest.
$ac_ext <<_ACEOF
11962 cat confdefs.h
>>conftest.
$ac_ext
11963 cat >>conftest.
$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11966 /* Override any gcc2 internal prototype to avoid an error. */
11970 /* We use char because int might match the return type of a gcc2
11971 builtin and then its argument prototype would still apply. */
11972 char png_get_channels ();
11976 png_get_channels ();
11981 rm -f conftest.
$ac_objext conftest
$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983 (eval $ac_link) 2>conftest.er1
11985 grep -v '^ *+' conftest.er1
>conftest.err
11987 cat conftest.err
>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try
='test -s conftest$ac_exeext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_lib_png_png_get_channels
=yes
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.
$ac_ext >&5
12007 ac_cv_lib_png_png_get_channels
=no
12009 rm -f conftest.err conftest.
$ac_objext \
12010 conftest
$ac_exeext conftest.
$ac_ext
12011 LIBS
=$ac_check_lib_save_LIBS
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12014 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12015 if test $ac_cv_lib_png_png_get_channels = yes; then
12022 if test "${HAVE_PNG}" = "yes"; then
12024 cat >>confdefs.h
<<\_ACEOF
12031 ### Use -ltiff if available, unless `--with-tiff=no'.
12033 if test "${HAVE_X11}" = "yes"; then
12034 if test "${with_tiff}" != "no"; then
12035 if test "${ac_cv_header_tiffio_h+set}" = set; then
12036 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12037 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12038 if test "${ac_cv_header_tiffio_h+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12042 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12044 # Is the header compilable?
12045 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12046 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12047 cat >conftest.
$ac_ext <<_ACEOF
12050 cat confdefs.h
>>conftest.
$ac_ext
12051 cat >>conftest.
$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 $ac_includes_default
12054 #include <tiffio.h>
12056 rm -f conftest.
$ac_objext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058 (eval $ac_compile) 2>conftest.er1
12060 grep -v '^ *+' conftest.er1
>conftest.err
12062 cat conftest.err
>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; } &&
12071 { ac_try
='test -s conftest.$ac_objext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 ac_header_compiler
=yes
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.
$ac_ext >&5
12082 ac_header_compiler
=no
12084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12086 echo "${ECHO_T}$ac_header_compiler" >&6
12088 # Is the header present?
12089 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12090 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12091 cat >conftest.
$ac_ext <<_ACEOF
12094 cat confdefs.h
>>conftest.
$ac_ext
12095 cat >>conftest.
$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 #include <tiffio.h>
12099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12102 grep -v '^ *+' conftest.er1
>conftest.err
12104 cat conftest.err
>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } >/dev
/null
; then
12107 if test -s conftest.err
; then
12108 ac_cpp_err
=$ac_c_preproc_warn_flag
12109 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12116 if test -z "$ac_cpp_err"; then
12117 ac_header_preproc
=yes
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.
$ac_ext >&5
12122 ac_header_preproc
=no
12124 rm -f conftest.err conftest.
$ac_ext
12125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12126 echo "${ECHO_T}$ac_header_preproc" >&6
12128 # So? What about this header?
12129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12131 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12132 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12134 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12135 ac_header_preproc
=yes
12138 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12139 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12141 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12143 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12145 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12147 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12149 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12152 ## ------------------------------------------ ##
12153 ## Report this to the AC_PACKAGE_NAME lists. ##
12154 ## ------------------------------------------ ##
12157 sed "s/^/$as_me: WARNING: /" >&2
12160 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12161 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12162 if test "${ac_cv_header_tiffio_h+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 ac_cv_header_tiffio_h
=$ac_header_preproc
12167 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12168 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12171 if test $ac_cv_header_tiffio_h = yes; then
12173 # At least one tiff package requires the jpeg library.
12174 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12175 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12176 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12177 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 ac_check_lib_save_LIBS
=$LIBS
12181 LIBS
="-ltiff $tifflibs $LIBS"
12182 cat >conftest.
$ac_ext <<_ACEOF
12185 cat confdefs.h
>>conftest.
$ac_ext
12186 cat >>conftest.
$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12189 /* Override any gcc2 internal prototype to avoid an error. */
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12195 char TIFFGetVersion ();
12204 rm -f conftest.
$ac_objext conftest
$ac_exeext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206 (eval $ac_link) 2>conftest.er1
12208 grep -v '^ *+' conftest.er1
>conftest.err
12210 cat conftest.err
>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try
='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_tiff_TIFFGetVersion
=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.
$ac_ext >&5
12230 ac_cv_lib_tiff_TIFFGetVersion
=no
12232 rm -f conftest.err conftest.
$ac_objext \
12233 conftest
$ac_exeext conftest.
$ac_ext
12234 LIBS
=$ac_check_lib_save_LIBS
12236 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12237 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12238 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12247 if test "${HAVE_TIFF}" = "yes"; then
12249 cat >>confdefs.h
<<\_ACEOF
12250 #define HAVE_TIFF 1
12256 ### Use -lgif if available, unless `--with-gif=no'.
12258 if test "${HAVE_X11}" = "yes"; then
12259 if test "${with_gif}" != "no"; then
12260 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12261 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12262 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12263 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12267 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12269 # Is the header compilable?
12270 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12271 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12272 cat >conftest.
$ac_ext <<_ACEOF
12275 cat confdefs.h
>>conftest.
$ac_ext
12276 cat >>conftest.
$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 #include <gif_lib.h>
12281 rm -f conftest.
$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12285 grep -v '^ *+' conftest.er1
>conftest.err
12287 cat conftest.err
>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try
='test -s conftest.$ac_objext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 ac_header_compiler
=yes
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.
$ac_ext >&5
12307 ac_header_compiler
=no
12309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12311 echo "${ECHO_T}$ac_header_compiler" >&6
12313 # Is the header present?
12314 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12315 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12316 cat >conftest.
$ac_ext <<_ACEOF
12319 cat confdefs.h
>>conftest.
$ac_ext
12320 cat >>conftest.
$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <gif_lib.h>
12324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12325 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12327 grep -v '^ *+' conftest.er1
>conftest.err
12329 cat conftest.err
>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } >/dev
/null
; then
12332 if test -s conftest.err
; then
12333 ac_cpp_err
=$ac_c_preproc_warn_flag
12334 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12341 if test -z "$ac_cpp_err"; then
12342 ac_header_preproc
=yes
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.
$ac_ext >&5
12347 ac_header_preproc
=no
12349 rm -f conftest.err conftest.
$ac_ext
12350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12351 echo "${ECHO_T}$ac_header_preproc" >&6
12353 # So? What about this header?
12354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12356 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12357 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12359 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12360 ac_header_preproc
=yes
12363 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12364 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12366 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12368 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12370 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12372 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12374 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12377 ## ------------------------------------------ ##
12378 ## Report this to the AC_PACKAGE_NAME lists. ##
12379 ## ------------------------------------------ ##
12382 sed "s/^/$as_me: WARNING: /" >&2
12385 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12386 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12387 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 ac_cv_header_gif_lib_h
=$ac_header_preproc
12392 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12393 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12396 if test $ac_cv_header_gif_lib_h = yes; then
12397 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12398 # Earlier versions can crash Emacs.
12399 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12400 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12401 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 ac_check_lib_save_LIBS
=$LIBS
12405 LIBS
="-lungif $LIBS"
12406 cat >conftest.
$ac_ext <<_ACEOF
12409 cat confdefs.h
>>conftest.
$ac_ext
12410 cat >>conftest.
$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12413 /* Override any gcc2 internal prototype to avoid an error. */
12417 /* We use char because int might match the return type of a gcc2
12418 builtin and then its argument prototype would still apply. */
12419 char EGifPutExtensionLast ();
12423 EGifPutExtensionLast ();
12428 rm -f conftest.
$ac_objext conftest
$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430 (eval $ac_link) 2>conftest.er1
12432 grep -v '^ *+' conftest.er1
>conftest.err
12434 cat conftest.err
>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try
='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.
$ac_ext >&5
12454 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12456 rm -f conftest.err conftest.
$ac_objext \
12457 conftest
$ac_exeext conftest.
$ac_ext
12458 LIBS
=$ac_check_lib_save_LIBS
12460 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12461 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12462 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12471 if test "${HAVE_GIF}" = "yes"; then
12473 cat >>confdefs.h
<<\_ACEOF
12480 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12481 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12482 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12483 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12487 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12489 # Is the header compilable?
12490 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12491 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12492 cat >conftest.
$ac_ext <<_ACEOF
12495 cat confdefs.h
>>conftest.
$ac_ext
12496 cat >>conftest.
$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 $ac_includes_default
12499 #include <malloc/malloc.h>
12501 rm -f conftest.
$ac_objext
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>conftest.er1
12505 grep -v '^ *+' conftest.er1
>conftest.err
12507 cat conftest.err
>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } &&
12510 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try
='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_header_compiler
=yes
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.
$ac_ext >&5
12527 ac_header_compiler
=no
12529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12531 echo "${ECHO_T}$ac_header_compiler" >&6
12533 # Is the header present?
12534 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12535 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12536 cat >conftest.
$ac_ext <<_ACEOF
12539 cat confdefs.h
>>conftest.
$ac_ext
12540 cat >>conftest.
$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <malloc/malloc.h>
12544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12545 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12547 grep -v '^ *+' conftest.er1
>conftest.err
12549 cat conftest.err
>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } >/dev
/null
; then
12552 if test -s conftest.err
; then
12553 ac_cpp_err
=$ac_c_preproc_warn_flag
12554 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12561 if test -z "$ac_cpp_err"; then
12562 ac_header_preproc
=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.
$ac_ext >&5
12567 ac_header_preproc
=no
12569 rm -f conftest.err conftest.
$ac_ext
12570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12571 echo "${ECHO_T}$ac_header_preproc" >&6
12573 # So? What about this header?
12574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12576 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12577 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12579 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12580 ac_header_preproc
=yes
12583 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12584 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12586 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12588 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12590 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12592 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12594 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12597 ## ------------------------------------------ ##
12598 ## Report this to the AC_PACKAGE_NAME lists. ##
12599 ## ------------------------------------------ ##
12602 sed "s/^/$as_me: WARNING: /" >&2
12605 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12606 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12607 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12612 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12613 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12616 if test $ac_cv_header_malloc_malloc_h = yes; then
12618 cat >>confdefs.h
<<\_ACEOF
12619 #define HAVE_MALLOC_MALLOC_H 1
12626 ### Use Mac OS X Carbon API to implement GUI.
12627 if test "${HAVE_CARBON}" = "yes"; then
12629 cat >>confdefs.h
<<\_ACEOF
12630 #define HAVE_CARBON 1
12633 ## Specify the install directory
12635 if test "${carbon_appdir_x}" != ""; then
12636 case ${carbon_appdir_x} in
12637 y | ye |
yes) carbon_appdir
=/Applications
;;
12638 * ) carbon_appdir
=${carbon_appdir_x} ;;
12641 # We also have mouse menus.
12644 tmp_CFLAGS
="$CFLAGS"
12645 CFLAGS
="$CFLAGS -framework Carbon"
12646 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12647 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12648 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 cat >conftest.
$ac_ext <<_ACEOF
12654 cat confdefs.h
>>conftest.
$ac_ext
12655 cat >>conftest.
$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12659 #define CancelMenuTracking innocuous_CancelMenuTracking
12661 /* System header to define __stub macros and hopefully few prototypes,
12662 which can conflict with char CancelMenuTracking (); below.
12663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12664 <limits.h> exists even on freestanding compilers. */
12667 # include <limits.h>
12669 # include <assert.h>
12672 #undef CancelMenuTracking
12674 /* Override any gcc2 internal prototype to avoid an error. */
12679 /* We use char because int might match the return type of a gcc2
12680 builtin and then its argument prototype would still apply. */
12681 char CancelMenuTracking ();
12682 /* The GNU C library defines this for functions which it implements
12683 to always fail with ENOSYS. Some functions are actually named
12684 something starting with __ and the normal name is an alias. */
12685 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12688 char (*f) () = CancelMenuTracking;
12697 return f != CancelMenuTracking;
12702 rm -f conftest.
$ac_objext conftest
$ac_exeext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704 (eval $ac_link) 2>conftest.er1
12706 grep -v '^ *+' conftest.er1
>conftest.err
12708 cat conftest.err
>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try
='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_func_CancelMenuTracking
=yes
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.
$ac_ext >&5
12728 ac_cv_func_CancelMenuTracking
=no
12730 rm -f conftest.err conftest.
$ac_objext \
12731 conftest
$ac_exeext conftest.
$ac_ext
12733 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12734 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12735 if test $ac_cv_func_CancelMenuTracking = yes; then
12741 if test "$have_cmt" = yes; then
12743 cat >>confdefs.h
<<\_ACEOF
12744 #define HAVE_CANCELMENUTRACKING 1
12748 CFLAGS
="$tmp_CFLAGS"
12751 ### Use session management (-lSM -lICE) if available
12753 if test "${HAVE_X11}" = "yes"; then
12754 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12755 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12756 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12757 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12761 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12763 # Is the header compilable?
12764 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12765 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12766 cat >conftest.
$ac_ext <<_ACEOF
12769 cat confdefs.h
>>conftest.
$ac_ext
12770 cat >>conftest.
$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 $ac_includes_default
12773 #include <X11/SM/SMlib.h>
12775 rm -f conftest.
$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>conftest.er1
12779 grep -v '^ *+' conftest.er1
>conftest.err
12781 cat conftest.err
>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try
='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_header_compiler
=yes
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.
$ac_ext >&5
12801 ac_header_compiler
=no
12803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12805 echo "${ECHO_T}$ac_header_compiler" >&6
12807 # Is the header present?
12808 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12809 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12810 cat >conftest.
$ac_ext <<_ACEOF
12813 cat confdefs.h
>>conftest.
$ac_ext
12814 cat >>conftest.
$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 #include <X11/SM/SMlib.h>
12818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12819 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12821 grep -v '^ *+' conftest.er1
>conftest.err
12823 cat conftest.err
>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } >/dev
/null
; then
12826 if test -s conftest.err
; then
12827 ac_cpp_err
=$ac_c_preproc_warn_flag
12828 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12835 if test -z "$ac_cpp_err"; then
12836 ac_header_preproc
=yes
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.
$ac_ext >&5
12841 ac_header_preproc
=no
12843 rm -f conftest.err conftest.
$ac_ext
12844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12845 echo "${ECHO_T}$ac_header_preproc" >&6
12847 # So? What about this header?
12848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12850 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12851 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12853 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12854 ac_header_preproc
=yes
12857 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12858 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12860 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12862 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12864 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12866 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12868 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12871 ## ------------------------------------------ ##
12872 ## Report this to the AC_PACKAGE_NAME lists. ##
12873 ## ------------------------------------------ ##
12876 sed "s/^/$as_me: WARNING: /" >&2
12879 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12880 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12881 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12886 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12887 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12890 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12891 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12892 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12893 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 ac_check_lib_save_LIBS
=$LIBS
12897 LIBS
="-lSM -lICE $LIBS"
12898 cat >conftest.
$ac_ext <<_ACEOF
12901 cat confdefs.h
>>conftest.
$ac_ext
12902 cat >>conftest.
$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12905 /* Override any gcc2 internal prototype to avoid an error. */
12909 /* We use char because int might match the return type of a gcc2
12910 builtin and then its argument prototype would still apply. */
12911 char SmcOpenConnection ();
12915 SmcOpenConnection ();
12920 rm -f conftest.
$ac_objext conftest
$ac_exeext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12922 (eval $ac_link) 2>conftest.er1
12924 grep -v '^ *+' conftest.er1
>conftest.err
12926 cat conftest.err
>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try
='test -s conftest$ac_exeext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_cv_lib_SM_SmcOpenConnection
=yes
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.
$ac_ext >&5
12946 ac_cv_lib_SM_SmcOpenConnection
=no
12948 rm -f conftest.err conftest.
$ac_objext \
12949 conftest
$ac_exeext conftest.
$ac_ext
12950 LIBS
=$ac_check_lib_save_LIBS
12952 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12953 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12954 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12962 if test "${HAVE_X_SM}" = "yes"; then
12964 cat >>confdefs.h
<<\_ACEOF
12965 #define HAVE_X_SM 1
12970 *) LIBS
="-lSM -lICE $LIBS" ;;
12975 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12976 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12977 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12978 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 cat >conftest.
$ac_ext <<_ACEOF
12984 cat confdefs.h
>>conftest.
$ac_ext
12985 cat >>conftest.
$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12996 rm -f conftest.
$ac_objext conftest
$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
13000 grep -v '^ *+' conftest.er1
>conftest.err
13002 cat conftest.err
>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try
='test -s conftest$ac_exeext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 emacs_cv_netdb_declares_h_errno
=yes
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.
$ac_ext >&5
13022 emacs_cv_netdb_declares_h_errno
=no
13024 rm -f conftest.err conftest.
$ac_objext \
13025 conftest
$ac_exeext conftest.
$ac_ext
13027 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13028 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13029 if test $emacs_cv_netdb_declares_h_errno = yes; then
13031 cat >>confdefs.h
<<\_ACEOF
13032 #define HAVE_H_ERRNO 1
13037 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13038 # for constant arguments. Useless!
13039 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13040 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13041 if test "${ac_cv_working_alloca_h+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 cat >conftest.
$ac_ext <<_ACEOF
13047 cat confdefs.h
>>conftest.
$ac_ext
13048 cat >>conftest.
$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 #include <alloca.h>
13054 char *p = (char *) alloca (2 * sizeof (int));
13059 rm -f conftest.
$ac_objext conftest
$ac_exeext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13061 (eval $ac_link) 2>conftest.er1
13063 grep -v '^ *+' conftest.er1
>conftest.err
13065 cat conftest.err
>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try
='test -s conftest$ac_exeext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_working_alloca_h
=yes
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.
$ac_ext >&5
13085 ac_cv_working_alloca_h
=no
13087 rm -f conftest.err conftest.
$ac_objext \
13088 conftest
$ac_exeext conftest.
$ac_ext
13090 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13091 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13092 if test $ac_cv_working_alloca_h = yes; then
13094 cat >>confdefs.h
<<\_ACEOF
13095 #define HAVE_ALLOCA_H 1
13100 echo "$as_me:$LINENO: checking for alloca" >&5
13101 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13102 if test "${ac_cv_func_alloca_works+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 cat >conftest.
$ac_ext <<_ACEOF
13108 cat confdefs.h
>>conftest.
$ac_ext
13109 cat >>conftest.
$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 # define alloca __builtin_alloca
13115 # include <malloc.h>
13116 # define alloca _alloca
13119 # include <alloca.h>
13124 # ifndef alloca /* predefined by HP cc +Olibcalls */
13135 char *p = (char *) alloca (1);
13140 rm -f conftest.
$ac_objext conftest
$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>conftest.er1
13144 grep -v '^ *+' conftest.er1
>conftest.err
13146 cat conftest.err
>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try
='test -s conftest$ac_exeext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_func_alloca_works
=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.
$ac_ext >&5
13166 ac_cv_func_alloca_works
=no
13168 rm -f conftest.err conftest.
$ac_objext \
13169 conftest
$ac_exeext conftest.
$ac_ext
13171 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13172 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13174 if test $ac_cv_func_alloca_works = yes; then
13176 cat >>confdefs.h
<<\_ACEOF
13177 #define HAVE_ALLOCA 1
13181 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13182 # that cause trouble. Some versions do not even contain alloca or
13183 # contain a buggy version. If you still want to use their alloca,
13184 # use ar to extract alloca.o from them instead of compiling alloca.c.
13186 ALLOCA
=alloca.
$ac_objext
13188 cat >>confdefs.h
<<\_ACEOF
13193 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13194 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13195 if test "${ac_cv_os_cray+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 cat >conftest.
$ac_ext <<_ACEOF
13201 cat confdefs.h
>>conftest.
$ac_ext
13202 cat >>conftest.
$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 #if defined(CRAY) && ! defined(CRAY2)
13211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13212 $EGREP "webecray" >/dev
/null
2>&1; then
13220 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13221 echo "${ECHO_T}$ac_cv_os_cray" >&6
13222 if test $ac_cv_os_cray = yes; then
13223 for ac_func
in _getb67 GETB67 getb67
; do
13224 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13225 echo "$as_me:$LINENO: checking for $ac_func" >&5
13226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13227 if eval "test \"\${$as_ac_var+set}\" = set"; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 cat >conftest.
$ac_ext <<_ACEOF
13233 cat confdefs.h
>>conftest.
$ac_ext
13234 cat >>conftest.
$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13238 #define $ac_func innocuous_$ac_func
13240 /* System header to define __stub macros and hopefully few prototypes,
13241 which can conflict with char $ac_func (); below.
13242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13243 <limits.h> exists even on freestanding compilers. */
13246 # include <limits.h>
13248 # include <assert.h>
13253 /* Override any gcc2 internal prototype to avoid an error. */
13258 /* We use char because int might match the return type of a gcc2
13259 builtin and then its argument prototype would still apply. */
13261 /* The GNU C library defines this for functions which it implements
13262 to always fail with ENOSYS. Some functions are actually named
13263 something starting with __ and the normal name is an alias. */
13264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13267 char (*f) () = $ac_func;
13276 return f != $ac_func;
13281 rm -f conftest.
$ac_objext conftest
$ac_exeext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>conftest.er1
13285 grep -v '^ *+' conftest.er1
>conftest.err
13287 cat conftest.err
>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try
='test -s conftest$ac_exeext'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 eval "$as_ac_var=yes"
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.
$ac_ext >&5
13307 eval "$as_ac_var=no"
13309 rm -f conftest.err conftest.
$ac_objext \
13310 conftest
$ac_exeext conftest.
$ac_ext
13312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13314 if test `eval echo '${'$as_ac_var'}'` = yes; then
13316 cat >>confdefs.h
<<_ACEOF
13317 #define CRAY_STACKSEG_END $ac_func
13326 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13327 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13328 if test "${ac_cv_c_stack_direction+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 if test "$cross_compiling" = yes; then
13332 ac_cv_c_stack_direction
=0
13334 cat >conftest.
$ac_ext <<_ACEOF
13337 cat confdefs.h
>>conftest.
$ac_ext
13338 cat >>conftest.
$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13341 find_stack_direction ()
13343 static char *addr = 0;
13348 return find_stack_direction ();
13351 return (&dummy > addr) ? 1 : -1;
13357 exit (find_stack_direction () < 0);
13360 rm -f conftest
$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_c_stack_direction
=1
13373 echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.
$ac_ext >&5
13377 ( exit $ac_status )
13378 ac_cv_c_stack_direction
=-1
13380 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13383 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13384 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13386 cat >>confdefs.h
<<_ACEOF
13387 #define STACK_DIRECTION $ac_cv_c_stack_direction
13394 # fmod, logb, and frexp are found in -lm on most systems.
13395 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13397 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13398 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13399 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 ac_check_lib_save_LIBS
=$LIBS
13404 cat >conftest.
$ac_ext <<_ACEOF
13407 cat confdefs.h
>>conftest.
$ac_ext
13408 cat >>conftest.
$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13411 /* Override any gcc2 internal prototype to avoid an error. */
13415 /* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13426 rm -f conftest.
$ac_objext conftest
$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>conftest.er1
13430 grep -v '^ *+' conftest.er1
>conftest.err
13432 cat conftest.err
>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try
='test -s conftest$ac_exeext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_lib_m_sqrt
=yes
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.
$ac_ext >&5
13452 ac_cv_lib_m_sqrt
=no
13454 rm -f conftest.err conftest.
$ac_objext \
13455 conftest
$ac_exeext conftest.
$ac_ext
13456 LIBS
=$ac_check_lib_save_LIBS
13458 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13459 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13460 if test $ac_cv_lib_m_sqrt = yes; then
13461 cat >>confdefs.h
<<_ACEOF
13462 #define HAVE_LIBM 1
13470 # Check for mail-locking functions in a "mail" library. Probably this should
13471 # have the same check as for liblockfile below.
13473 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13474 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13475 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 ac_check_lib_save_LIBS
=$LIBS
13479 LIBS
="-lmail $LIBS"
13480 cat >conftest.
$ac_ext <<_ACEOF
13483 cat confdefs.h
>>conftest.
$ac_ext
13484 cat >>conftest.
$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13487 /* Override any gcc2 internal prototype to avoid an error. */
13491 /* We use char because int might match the return type of a gcc2
13492 builtin and then its argument prototype would still apply. */
13502 rm -f conftest.
$ac_objext conftest
$ac_exeext
13503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13504 (eval $ac_link) 2>conftest.er1
13506 grep -v '^ *+' conftest.er1
>conftest.err
13508 cat conftest.err
>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try
='test -s conftest$ac_exeext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_cv_lib_mail_maillock
=yes
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.
$ac_ext >&5
13528 ac_cv_lib_mail_maillock
=no
13530 rm -f conftest.err conftest.
$ac_objext \
13531 conftest
$ac_exeext conftest.
$ac_ext
13532 LIBS
=$ac_check_lib_save_LIBS
13534 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13535 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13536 if test $ac_cv_lib_mail_maillock = yes; then
13537 cat >>confdefs.h
<<_ACEOF
13538 #define HAVE_LIBMAIL 1
13541 LIBS
="-lmail $LIBS"
13546 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13547 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13548 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 ac_check_lib_save_LIBS
=$LIBS
13552 LIBS
="-llockfile $LIBS"
13553 cat >conftest.
$ac_ext <<_ACEOF
13556 cat confdefs.h
>>conftest.
$ac_ext
13557 cat >>conftest.
$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13560 /* Override any gcc2 internal prototype to avoid an error. */
13564 /* We use char because int might match the return type of a gcc2
13565 builtin and then its argument prototype would still apply. */
13575 rm -f conftest.
$ac_objext conftest
$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>conftest.er1
13579 grep -v '^ *+' conftest.er1
>conftest.err
13581 cat conftest.err
>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try
='test -s conftest$ac_exeext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_cv_lib_lockfile_maillock
=yes
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.
$ac_ext >&5
13601 ac_cv_lib_lockfile_maillock
=no
13603 rm -f conftest.err conftest.
$ac_objext \
13604 conftest
$ac_exeext conftest.
$ac_ext
13605 LIBS
=$ac_check_lib_save_LIBS
13607 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13608 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13609 if test $ac_cv_lib_lockfile_maillock = yes; then
13610 cat >>confdefs.h
<<_ACEOF
13611 #define HAVE_LIBLOCKFILE 1
13614 LIBS
="-llockfile $LIBS"
13618 # If we have the shared liblockfile, assume we must use it for mail
13619 # locking (e.g. Debian). If we couldn't link against liblockfile
13620 # (no liblockfile.a installed), ensure that we don't need to.
13621 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13622 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13623 set dummy liblockfile.so
; ac_word
=$2
13624 echo "$as_me:$LINENO: checking for $ac_word" >&5
13625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13626 if test "${ac_cv_prog_liblockfile+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 if test -n "$liblockfile"; then
13630 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13633 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13634 for as_dir
in $as_dummy
13637 test -z "$as_dir" && as_dir
=.
13638 for ac_exec_ext
in '' $ac_executable_extensions; do
13639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13640 ac_cv_prog_liblockfile
="yes"
13641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13650 liblockfile
=$ac_cv_prog_liblockfile
13651 if test -n "$liblockfile"; then
13652 echo "$as_me:$LINENO: result: $liblockfile" >&5
13653 echo "${ECHO_T}$liblockfile" >&6
13655 echo "$as_me:$LINENO: result: no" >&5
13656 echo "${ECHO_T}no" >&6
13659 if test $ac_cv_prog_liblockfile = yes; then
13660 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13661 This probably means that movemail could lose mail.
13662 There may be a \`development' package to install containing liblockfile." >&5
13663 echo "$as_me: error: Shared liblockfile found but can't link against it.
13664 This probably means that movemail could lose mail.
13665 There may be a \`development' package to install containing liblockfile." >&2;}
13666 { (exit 1); exit 1; }; }
13671 for ac_func
in touchlock
13673 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13674 echo "$as_me:$LINENO: checking for $ac_func" >&5
13675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13676 if eval "test \"\${$as_ac_var+set}\" = set"; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 cat >conftest.
$ac_ext <<_ACEOF
13682 cat confdefs.h
>>conftest.
$ac_ext
13683 cat >>conftest.
$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13687 #define $ac_func innocuous_$ac_func
13689 /* System header to define __stub macros and hopefully few prototypes,
13690 which can conflict with char $ac_func (); below.
13691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13692 <limits.h> exists even on freestanding compilers. */
13695 # include <limits.h>
13697 # include <assert.h>
13702 /* Override any gcc2 internal prototype to avoid an error. */
13707 /* We use char because int might match the return type of a gcc2
13708 builtin and then its argument prototype would still apply. */
13710 /* The GNU C library defines this for functions which it implements
13711 to always fail with ENOSYS. Some functions are actually named
13712 something starting with __ and the normal name is an alias. */
13713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13716 char (*f) () = $ac_func;
13725 return f != $ac_func;
13730 rm -f conftest.
$ac_objext conftest
$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>conftest.er1
13734 grep -v '^ *+' conftest.er1
>conftest.err
13736 cat conftest.err
>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try
='test -s conftest$ac_exeext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 eval "$as_ac_var=yes"
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.
$ac_ext >&5
13756 eval "$as_ac_var=no"
13758 rm -f conftest.err conftest.
$ac_objext \
13759 conftest
$ac_exeext conftest.
$ac_ext
13761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13763 if test `eval echo '${'$as_ac_var'}'` = yes; then
13764 cat >>confdefs.h
<<_ACEOF
13765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13772 for ac_header
in maillock.h
13774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13776 echo "$as_me:$LINENO: checking for $ac_header" >&5
13777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13784 # Is the header compilable?
13785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13787 cat >conftest.
$ac_ext <<_ACEOF
13790 cat confdefs.h
>>conftest.
$ac_ext
13791 cat >>conftest.
$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 $ac_includes_default
13794 #include <$ac_header>
13796 rm -f conftest.
$ac_objext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13798 (eval $ac_compile) 2>conftest.er1
13800 grep -v '^ *+' conftest.er1
>conftest.err
13802 cat conftest.err
>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
13805 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try
='test -s conftest.$ac_objext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_header_compiler
=yes
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.
$ac_ext >&5
13822 ac_header_compiler
=no
13824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13826 echo "${ECHO_T}$ac_header_compiler" >&6
13828 # Is the header present?
13829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13831 cat >conftest.
$ac_ext <<_ACEOF
13834 cat confdefs.h
>>conftest.
$ac_ext
13835 cat >>conftest.
$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 #include <$ac_header>
13839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13840 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13842 grep -v '^ *+' conftest.er1
>conftest.err
13844 cat conftest.err
>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } >/dev
/null
; then
13847 if test -s conftest.err
; then
13848 ac_cpp_err
=$ac_c_preproc_warn_flag
13849 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13856 if test -z "$ac_cpp_err"; then
13857 ac_header_preproc
=yes
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.
$ac_ext >&5
13862 ac_header_preproc
=no
13864 rm -f conftest.err conftest.
$ac_ext
13865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13866 echo "${ECHO_T}$ac_header_preproc" >&6
13868 # So? What about this header?
13869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13875 ac_header_preproc
=yes
13878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13892 ## ------------------------------------------ ##
13893 ## Report this to the AC_PACKAGE_NAME lists. ##
13894 ## ------------------------------------------ ##
13897 sed "s/^/$as_me: WARNING: /" >&2
13900 echo "$as_me:$LINENO: checking for $ac_header" >&5
13901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 eval "$as_ac_Header=\$ac_header_preproc"
13907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13912 cat >>confdefs.h
<<_ACEOF
13913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13989 for ac_func
in gethostname getdomainname dup2 \
13990 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13991 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13992 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13993 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13994 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13995 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13996 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13997 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14000 echo "$as_me:$LINENO: checking for $ac_func" >&5
14001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14002 if eval "test \"\${$as_ac_var+set}\" = set"; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 cat >conftest.
$ac_ext <<_ACEOF
14008 cat confdefs.h
>>conftest.
$ac_ext
14009 cat >>conftest.
$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14013 #define $ac_func innocuous_$ac_func
14015 /* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char $ac_func (); below.
14017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14018 <limits.h> exists even on freestanding compilers. */
14021 # include <limits.h>
14023 # include <assert.h>
14028 /* Override any gcc2 internal prototype to avoid an error. */
14033 /* We use char because int might match the return type of a gcc2
14034 builtin and then its argument prototype would still apply. */
14036 /* The GNU C library defines this for functions which it implements
14037 to always fail with ENOSYS. Some functions are actually named
14038 something starting with __ and the normal name is an alias. */
14039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14042 char (*f) () = $ac_func;
14051 return f != $ac_func;
14056 rm -f conftest.
$ac_objext conftest
$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>conftest.er1
14060 grep -v '^ *+' conftest.er1
>conftest.err
14062 cat conftest.err
>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } &&
14071 { ac_try
='test -s conftest$ac_exeext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 eval "$as_ac_var=yes"
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.
$ac_ext >&5
14082 eval "$as_ac_var=no"
14084 rm -f conftest.err conftest.
$ac_objext \
14085 conftest
$ac_exeext conftest.
$ac_ext
14087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14089 if test `eval echo '${'$as_ac_var'}'` = yes; then
14090 cat >>confdefs.h
<<_ACEOF
14091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14099 for ac_header
in sys
/un.h
14101 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo "$as_me:$LINENO: checking for $ac_header" >&5
14104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14111 # Is the header compilable?
14112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14114 cat >conftest.
$ac_ext <<_ACEOF
14117 cat confdefs.h
>>conftest.
$ac_ext
14118 cat >>conftest.
$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14120 $ac_includes_default
14121 #include <$ac_header>
14123 rm -f conftest.
$ac_objext
14124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14125 (eval $ac_compile) 2>conftest.er1
14127 grep -v '^ *+' conftest.er1
>conftest.err
14129 cat conftest.err
>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; } &&
14138 { ac_try
='test -s conftest.$ac_objext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 ac_header_compiler
=yes
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.
$ac_ext >&5
14149 ac_header_compiler
=no
14151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14153 echo "${ECHO_T}$ac_header_compiler" >&6
14155 # Is the header present?
14156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14158 cat >conftest.
$ac_ext <<_ACEOF
14161 cat confdefs.h
>>conftest.
$ac_ext
14162 cat >>conftest.
$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 #include <$ac_header>
14166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14167 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14169 grep -v '^ *+' conftest.er1
>conftest.err
14171 cat conftest.err
>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } >/dev
/null
; then
14174 if test -s conftest.err
; then
14175 ac_cpp_err
=$ac_c_preproc_warn_flag
14176 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14183 if test -z "$ac_cpp_err"; then
14184 ac_header_preproc
=yes
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.
$ac_ext >&5
14189 ac_header_preproc
=no
14191 rm -f conftest.err conftest.
$ac_ext
14192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14193 echo "${ECHO_T}$ac_header_preproc" >&6
14195 # So? What about this header?
14196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14202 ac_header_preproc
=yes
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14219 ## ------------------------------------------ ##
14220 ## Report this to the AC_PACKAGE_NAME lists. ##
14221 ## ------------------------------------------ ##
14224 sed "s/^/$as_me: WARNING: /" >&2
14227 echo "$as_me:$LINENO: checking for $ac_header" >&5
14228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 eval "$as_ac_Header=\$ac_header_preproc"
14234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14239 cat >>confdefs.h
<<_ACEOF
14240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14251 for ac_header
in stdlib.h sys
/time.h unistd.h
14253 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo "$as_me:$LINENO: checking for $ac_header" >&5
14256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14263 # Is the header compilable?
14264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14266 cat >conftest.
$ac_ext <<_ACEOF
14269 cat confdefs.h
>>conftest.
$ac_ext
14270 cat >>conftest.
$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 $ac_includes_default
14273 #include <$ac_header>
14275 rm -f conftest.
$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277 (eval $ac_compile) 2>conftest.er1
14279 grep -v '^ *+' conftest.er1
>conftest.err
14281 cat conftest.err
>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; } &&
14290 { ac_try
='test -s conftest.$ac_objext'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 ac_header_compiler
=yes
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.
$ac_ext >&5
14301 ac_header_compiler
=no
14303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14305 echo "${ECHO_T}$ac_header_compiler" >&6
14307 # Is the header present?
14308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14310 cat >conftest.
$ac_ext <<_ACEOF
14313 cat confdefs.h
>>conftest.
$ac_ext
14314 cat >>conftest.
$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 #include <$ac_header>
14318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14319 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14321 grep -v '^ *+' conftest.er1
>conftest.err
14323 cat conftest.err
>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } >/dev
/null
; then
14326 if test -s conftest.err
; then
14327 ac_cpp_err
=$ac_c_preproc_warn_flag
14328 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14335 if test -z "$ac_cpp_err"; then
14336 ac_header_preproc
=yes
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.
$ac_ext >&5
14341 ac_header_preproc
=no
14343 rm -f conftest.err conftest.
$ac_ext
14344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14345 echo "${ECHO_T}$ac_header_preproc" >&6
14347 # So? What about this header?
14348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14354 ac_header_preproc
=yes
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14371 ## ------------------------------------------ ##
14372 ## Report this to the AC_PACKAGE_NAME lists. ##
14373 ## ------------------------------------------ ##
14376 sed "s/^/$as_me: WARNING: /" >&2
14379 echo "$as_me:$LINENO: checking for $ac_header" >&5
14380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 eval "$as_ac_Header=\$ac_header_preproc"
14386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14391 cat >>confdefs.h
<<_ACEOF
14392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14400 for ac_func
in alarm
14402 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14403 echo "$as_me:$LINENO: checking for $ac_func" >&5
14404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14405 if eval "test \"\${$as_ac_var+set}\" = set"; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14408 cat >conftest.
$ac_ext <<_ACEOF
14411 cat confdefs.h
>>conftest.
$ac_ext
14412 cat >>conftest.
$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14416 #define $ac_func innocuous_$ac_func
14418 /* System header to define __stub macros and hopefully few prototypes,
14419 which can conflict with char $ac_func (); below.
14420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14421 <limits.h> exists even on freestanding compilers. */
14424 # include <limits.h>
14426 # include <assert.h>
14431 /* Override any gcc2 internal prototype to avoid an error. */
14436 /* We use char because int might match the return type of a gcc2
14437 builtin and then its argument prototype would still apply. */
14439 /* The GNU C library defines this for functions which it implements
14440 to always fail with ENOSYS. Some functions are actually named
14441 something starting with __ and the normal name is an alias. */
14442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14445 char (*f) () = $ac_func;
14454 return f != $ac_func;
14459 rm -f conftest.
$ac_objext conftest
$ac_exeext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14461 (eval $ac_link) 2>conftest.er1
14463 grep -v '^ *+' conftest.er1
>conftest.err
14465 cat conftest.err
>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; } &&
14474 { ac_try
='test -s conftest$ac_exeext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 eval "$as_ac_var=yes"
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.
$ac_ext >&5
14485 eval "$as_ac_var=no"
14487 rm -f conftest.err conftest.
$ac_objext \
14488 conftest
$ac_exeext conftest.
$ac_ext
14490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14492 if test `eval echo '${'$as_ac_var'}'` = yes; then
14493 cat >>confdefs.h
<<_ACEOF
14494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14500 echo "$as_me:$LINENO: checking for working mktime" >&5
14501 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14502 if test "${ac_cv_func_working_mktime+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 if test "$cross_compiling" = yes; then
14506 ac_cv_func_working_mktime
=no
14508 cat >conftest.
$ac_ext <<_ACEOF
14511 cat confdefs.h
>>conftest.
$ac_ext
14512 cat >>conftest.
$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 /* Test program from Paul Eggert and Tony Leneis. */
14515 #if TIME_WITH_SYS_TIME
14516 # include <sys/time.h>
14519 # if HAVE_SYS_TIME_H
14520 # include <sys/time.h>
14527 # include <stdlib.h>
14531 # include <unistd.h>
14535 # define alarm(X) /* empty */
14538 /* Work around redefinition to rpl_putenv by other config tests. */
14541 static time_t time_t_max;
14542 static time_t time_t_min;
14544 /* Values we'll use to set the TZ environment variable. */
14545 static char *tz_strings[] = {
14546 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14547 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14549 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14551 /* Fail if mktime fails to convert a date in the spring-forward gap.
14552 Based on a problem report from Andreas Jaeger. */
14554 spring_forward_gap ()
14556 /* glibc (up to about 1998-10-07) failed this test. */
14559 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14560 instead of "TZ=America/Vancouver" in order to detect the bug even
14561 on systems that don't support the Olson extension, or don't have the
14562 full zoneinfo tables installed. */
14563 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14572 if (mktime (&tm) == (time_t)-1)
14581 if ((lt = localtime (&now)) && mktime (lt) != now)
14589 mktime_test1 (now);
14590 mktime_test1 ((time_t) (time_t_max - now));
14591 mktime_test1 ((time_t) (time_t_min + now));
14597 /* Based on code from Ariel Faigon. */
14607 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14617 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14618 now = mktime (&tm);
14619 if (now != (time_t) -1)
14621 struct tm *lt = localtime (&now);
14623 && lt->tm_year == tm.tm_year
14624 && lt->tm_mon == tm.tm_mon
14625 && lt->tm_mday == tm.tm_mday
14626 && lt->tm_hour == tm.tm_hour
14627 && lt->tm_min == tm.tm_min
14628 && lt->tm_sec == tm.tm_sec
14629 && lt->tm_yday == tm.tm_yday
14630 && lt->tm_wday == tm.tm_wday
14631 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14632 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14643 /* This test makes some buggy mktime implementations loop.
14644 Give up after 60 seconds; a mktime slower than that
14645 isn't worth using anyway. */
14648 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14651 if ((time_t) -1 < 0)
14652 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14654 delta = time_t_max / 997; /* a suitable prime number */
14655 for (i = 0; i < N_STRINGS; i++)
14658 putenv (tz_strings[i]);
14660 for (t = 0; t <= time_t_max - delta; t += delta)
14662 mktime_test ((time_t) 1);
14663 mktime_test ((time_t) (60 * 60));
14664 mktime_test ((time_t) (60 * 60 * 24));
14666 for (j = 1; 0 < j; j *= 2)
14668 bigtime_test (j - 1);
14671 spring_forward_gap ();
14675 rm -f conftest
$ac_exeext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14677 (eval $ac_link) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_cv_func_working_mktime
=yes
14688 echo "$as_me: program exited with status $ac_status" >&5
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.
$ac_ext >&5
14692 ( exit $ac_status )
14693 ac_cv_func_working_mktime
=no
14695 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14698 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14699 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14700 if test $ac_cv_func_working_mktime = no
; then
14702 "mktime.$ac_objext" | \
14703 *" mktime.$ac_objext" | \
14704 "mktime.$ac_objext "* | \
14705 *" mktime.$ac_objext "* ) ;;
14706 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14711 if test "$ac_cv_func_working_mktime" = no
; then
14713 cat >>confdefs.h
<<\_ACEOF
14714 #define BROKEN_MKTIME 1
14719 ac_have_func
=no
# yes means we've found a way to get the load average.
14721 # Make sure getloadavg.c is where it belongs, at configure-time.
14722 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14723 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14724 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14725 { (exit 1); exit 1; }; }
14729 # Check for getloadavg, but be sure not to touch the cache variable.
14730 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14731 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14732 if test "${ac_cv_func_getloadavg+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 cat >conftest.
$ac_ext <<_ACEOF
14738 cat confdefs.h
>>conftest.
$ac_ext
14739 cat >>conftest.
$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14743 #define getloadavg innocuous_getloadavg
14745 /* System header to define __stub macros and hopefully few prototypes,
14746 which can conflict with char getloadavg (); below.
14747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748 <limits.h> exists even on freestanding compilers. */
14751 # include <limits.h>
14753 # include <assert.h>
14758 /* Override any gcc2 internal prototype to avoid an error. */
14763 /* We use char because int might match the return type of a gcc2
14764 builtin and then its argument prototype would still apply. */
14765 char getloadavg ();
14766 /* The GNU C library defines this for functions which it implements
14767 to always fail with ENOSYS. Some functions are actually named
14768 something starting with __ and the normal name is an alias. */
14769 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14772 char (*f) () = getloadavg;
14781 return f != getloadavg;
14786 rm -f conftest.
$ac_objext conftest
$ac_exeext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14788 (eval $ac_link) 2>conftest.er1
14790 grep -v '^ *+' conftest.er1
>conftest.err
14792 cat conftest.err
>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try
='test -s conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_func_getloadavg
=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.
$ac_ext >&5
14812 ac_cv_func_getloadavg
=no
14814 rm -f conftest.err conftest.
$ac_objext \
14815 conftest
$ac_exeext conftest.
$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14818 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14819 if test $ac_cv_func_getloadavg = yes; then
14824 ) && ac_have_func
=yes
14826 # On HPUX9, an unprivileged user can get load averages through this function.
14828 for ac_func
in pstat_getdynamic
14830 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 echo "$as_me:$LINENO: checking for $ac_func" >&5
14832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14833 if eval "test \"\${$as_ac_var+set}\" = set"; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 cat >conftest.
$ac_ext <<_ACEOF
14839 cat confdefs.h
>>conftest.
$ac_ext
14840 cat >>conftest.
$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14844 #define $ac_func innocuous_$ac_func
14846 /* System header to define __stub macros and hopefully few prototypes,
14847 which can conflict with char $ac_func (); below.
14848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14849 <limits.h> exists even on freestanding compilers. */
14852 # include <limits.h>
14854 # include <assert.h>
14859 /* Override any gcc2 internal prototype to avoid an error. */
14864 /* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14873 char (*f) () = $ac_func;
14882 return f != $ac_func;
14887 rm -f conftest.
$ac_objext conftest
$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>conftest.er1
14891 grep -v '^ *+' conftest.er1
>conftest.err
14893 cat conftest.err
>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try
='test -s conftest$ac_exeext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 eval "$as_ac_var=yes"
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.
$ac_ext >&5
14913 eval "$as_ac_var=no"
14915 rm -f conftest.err conftest.
$ac_objext \
14916 conftest
$ac_exeext conftest.
$ac_ext
14918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14920 if test `eval echo '${'$as_ac_var'}'` = yes; then
14921 cat >>confdefs.h
<<_ACEOF
14922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14929 # Solaris has libkstat which does not require root.
14931 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14932 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14933 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 ac_check_lib_save_LIBS
=$LIBS
14937 LIBS
="-lkstat $LIBS"
14938 cat >conftest.
$ac_ext <<_ACEOF
14941 cat confdefs.h
>>conftest.
$ac_ext
14942 cat >>conftest.
$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14945 /* Override any gcc2 internal prototype to avoid an error. */
14949 /* We use char because int might match the return type of a gcc2
14950 builtin and then its argument prototype would still apply. */
14951 char kstat_open ();
14960 rm -f conftest.
$ac_objext conftest
$ac_exeext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>conftest.er1
14964 grep -v '^ *+' conftest.er1
>conftest.err
14966 cat conftest.err
>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try
='test -s conftest$ac_exeext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 ac_cv_lib_kstat_kstat_open
=yes
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.
$ac_ext >&5
14986 ac_cv_lib_kstat_kstat_open
=no
14988 rm -f conftest.err conftest.
$ac_objext \
14989 conftest
$ac_exeext conftest.
$ac_ext
14990 LIBS
=$ac_check_lib_save_LIBS
14992 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14993 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14994 if test $ac_cv_lib_kstat_kstat_open = yes; then
14995 cat >>confdefs.h
<<_ACEOF
14996 #define HAVE_LIBKSTAT 1
14999 LIBS
="-lkstat $LIBS"
15003 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15005 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15006 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15007 # to get the right answer into the cache.
15008 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15009 if test $ac_have_func = no
; then
15010 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15011 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15012 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 ac_check_lib_save_LIBS
=$LIBS
15017 cat >conftest.
$ac_ext <<_ACEOF
15020 cat confdefs.h
>>conftest.
$ac_ext
15021 cat >>conftest.
$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15024 /* Override any gcc2 internal prototype to avoid an error. */
15028 /* We use char because int might match the return type of a gcc2
15029 builtin and then its argument prototype would still apply. */
15039 rm -f conftest.
$ac_objext conftest
$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>conftest.er1
15043 grep -v '^ *+' conftest.er1
>conftest.err
15045 cat conftest.err
>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try
='test -s conftest$ac_exeext'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 ac_cv_lib_elf_elf_begin
=yes
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.
$ac_ext >&5
15065 ac_cv_lib_elf_elf_begin
=no
15067 rm -f conftest.err conftest.
$ac_objext \
15068 conftest
$ac_exeext conftest.
$ac_ext
15069 LIBS
=$ac_check_lib_save_LIBS
15071 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15072 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15073 if test $ac_cv_lib_elf_elf_begin = yes; then
15078 if test $ac_have_func = no
; then
15079 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15080 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15081 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 ac_check_lib_save_LIBS
=$LIBS
15086 cat >conftest.
$ac_ext <<_ACEOF
15089 cat confdefs.h
>>conftest.
$ac_ext
15090 cat >>conftest.
$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 /* Override any gcc2 internal prototype to avoid an error. */
15097 /* We use char because int might match the return type of a gcc2
15098 builtin and then its argument prototype would still apply. */
15108 rm -f conftest.
$ac_objext conftest
$ac_exeext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15110 (eval $ac_link) 2>conftest.er1
15112 grep -v '^ *+' conftest.er1
>conftest.err
15114 cat conftest.err
>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try
='test -s conftest$ac_exeext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_cv_lib_kvm_kvm_open
=yes
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.
$ac_ext >&5
15134 ac_cv_lib_kvm_kvm_open
=no
15136 rm -f conftest.err conftest.
$ac_objext \
15137 conftest
$ac_exeext conftest.
$ac_ext
15138 LIBS
=$ac_check_lib_save_LIBS
15140 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15141 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15142 if test $ac_cv_lib_kvm_kvm_open = yes; then
15146 # Check for the 4.4BSD definition of getloadavg.
15147 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15148 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15149 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 ac_check_lib_save_LIBS
=$LIBS
15153 LIBS
="-lutil $LIBS"
15154 cat >conftest.
$ac_ext <<_ACEOF
15157 cat confdefs.h
>>conftest.
$ac_ext
15158 cat >>conftest.
$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15161 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15167 char getloadavg ();
15176 rm -f conftest.
$ac_objext conftest
$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15180 grep -v '^ *+' conftest.er1
>conftest.err
15182 cat conftest.err
>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try
='test -s conftest$ac_exeext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 ac_cv_lib_util_getloadavg
=yes
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.
$ac_ext >&5
15202 ac_cv_lib_util_getloadavg
=no
15204 rm -f conftest.err conftest.
$ac_objext \
15205 conftest
$ac_exeext conftest.
$ac_ext
15206 LIBS
=$ac_check_lib_save_LIBS
15208 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15209 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15210 if test $ac_cv_lib_util_getloadavg = yes; then
15211 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15216 if test $ac_have_func = no
; then
15217 # There is a commonly available library for RS/6000 AIX.
15218 # Since it is not a standard part of AIX, it might be installed locally.
15219 ac_getloadavg_LIBS
=$LIBS
15220 LIBS
="-L/usr/local/lib $LIBS"
15221 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15222 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15223 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 ac_check_lib_save_LIBS
=$LIBS
15227 LIBS
="-lgetloadavg $LIBS"
15228 cat >conftest.
$ac_ext <<_ACEOF
15231 cat confdefs.h
>>conftest.
$ac_ext
15232 cat >>conftest.
$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15235 /* Override any gcc2 internal prototype to avoid an error. */
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15241 char getloadavg ();
15250 rm -f conftest.
$ac_objext conftest
$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>conftest.er1
15254 grep -v '^ *+' conftest.er1
>conftest.err
15256 cat conftest.err
>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try
='test -s conftest$ac_exeext'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15271 ac_cv_lib_getloadavg_getloadavg
=yes
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.
$ac_ext >&5
15276 ac_cv_lib_getloadavg_getloadavg
=no
15278 rm -f conftest.err conftest.
$ac_objext \
15279 conftest
$ac_exeext conftest.
$ac_ext
15280 LIBS
=$ac_check_lib_save_LIBS
15282 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15283 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15284 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15285 LIBS
="-lgetloadavg $LIBS"
15287 LIBS
=$ac_getloadavg_LIBS
15292 # Make sure it is really in the library, if we think we found it,
15293 # otherwise set up the replacement function.
15295 for ac_func
in getloadavg
15297 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_var+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 cat >conftest.
$ac_ext <<_ACEOF
15306 cat confdefs.h
>>conftest.
$ac_ext
15307 cat >>conftest.
$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15311 #define $ac_func innocuous_$ac_func
15313 /* System header to define __stub macros and hopefully few prototypes,
15314 which can conflict with char $ac_func (); below.
15315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15316 <limits.h> exists even on freestanding compilers. */
15319 # include <limits.h>
15321 # include <assert.h>
15326 /* Override any gcc2 internal prototype to avoid an error. */
15331 /* We use char because int might match the return type of a gcc2
15332 builtin and then its argument prototype would still apply. */
15334 /* The GNU C library defines this for functions which it implements
15335 to always fail with ENOSYS. Some functions are actually named
15336 something starting with __ and the normal name is an alias. */
15337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15340 char (*f) () = $ac_func;
15349 return f != $ac_func;
15354 rm -f conftest.
$ac_objext conftest
$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356 (eval $ac_link) 2>conftest.er1
15358 grep -v '^ *+' conftest.er1
>conftest.err
15360 cat conftest.err
>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try
='test -s conftest$ac_exeext'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 eval "$as_ac_var=yes"
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.
$ac_ext >&5
15380 eval "$as_ac_var=no"
15382 rm -f conftest.err conftest.
$ac_objext \
15383 conftest
$ac_exeext conftest.
$ac_ext
15385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15387 if test `eval echo '${'$as_ac_var'}'` = yes; then
15388 cat >>confdefs.h
<<_ACEOF
15389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15394 "getloadavg.$ac_objext" | \
15395 *" getloadavg.$ac_objext" | \
15396 "getloadavg.$ac_objext "* | \
15397 *" getloadavg.$ac_objext "* ) ;;
15398 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15402 cat >>confdefs.h
<<\_ACEOF
15403 #define C_GETLOADAVG 1
15406 # Figure out what our getloadavg.c needs.
15408 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15409 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15410 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15411 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15415 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15417 # Is the header compilable?
15418 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15419 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15420 cat >conftest.
$ac_ext <<_ACEOF
15423 cat confdefs.h
>>conftest.
$ac_ext
15424 cat >>conftest.
$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <sys/dg_sys_info.h>
15429 rm -f conftest.
$ac_objext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431 (eval $ac_compile) 2>conftest.er1
15433 grep -v '^ *+' conftest.er1
>conftest.err
15435 cat conftest.err
>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try
='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_header_compiler
=yes
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.
$ac_ext >&5
15455 ac_header_compiler
=no
15457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15459 echo "${ECHO_T}$ac_header_compiler" >&6
15461 # Is the header present?
15462 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15463 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15464 cat >conftest.
$ac_ext <<_ACEOF
15467 cat confdefs.h
>>conftest.
$ac_ext
15468 cat >>conftest.
$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <sys/dg_sys_info.h>
15472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15473 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15475 grep -v '^ *+' conftest.er1
>conftest.err
15477 cat conftest.err
>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } >/dev
/null
; then
15480 if test -s conftest.err
; then
15481 ac_cpp_err
=$ac_c_preproc_warn_flag
15482 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15489 if test -z "$ac_cpp_err"; then
15490 ac_header_preproc
=yes
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.
$ac_ext >&5
15495 ac_header_preproc
=no
15497 rm -f conftest.err conftest.
$ac_ext
15498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15499 echo "${ECHO_T}$ac_header_preproc" >&6
15501 # So? What about this header?
15502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15504 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15505 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15507 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15508 ac_header_preproc
=yes
15511 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15512 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15514 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15516 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15518 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15520 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15522 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15525 ## ------------------------------------------ ##
15526 ## Report this to the AC_PACKAGE_NAME lists. ##
15527 ## ------------------------------------------ ##
15530 sed "s/^/$as_me: WARNING: /" >&2
15533 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15534 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15535 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15541 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15544 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15547 cat >>confdefs.h
<<\_ACEOF
15552 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15553 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15554 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 ac_check_lib_save_LIBS
=$LIBS
15559 cat >conftest.
$ac_ext <<_ACEOF
15562 cat confdefs.h
>>conftest.
$ac_ext
15563 cat >>conftest.
$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15566 /* Override any gcc2 internal prototype to avoid an error. */
15570 /* We use char because int might match the return type of a gcc2
15571 builtin and then its argument prototype would still apply. */
15572 char dg_sys_info ();
15581 rm -f conftest.
$ac_objext conftest
$ac_exeext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15583 (eval $ac_link) 2>conftest.er1
15585 grep -v '^ *+' conftest.er1
>conftest.err
15587 cat conftest.err
>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try
='test -s conftest$ac_exeext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_lib_dgc_dg_sys_info
=yes
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.
$ac_ext >&5
15607 ac_cv_lib_dgc_dg_sys_info
=no
15609 rm -f conftest.err conftest.
$ac_objext \
15610 conftest
$ac_exeext conftest.
$ac_ext
15611 LIBS
=$ac_check_lib_save_LIBS
15613 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15614 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15615 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15616 cat >>confdefs.h
<<_ACEOF
15617 #define HAVE_LIBDGC 1
15628 if test "${ac_cv_header_locale_h+set}" = set; then
15629 echo "$as_me:$LINENO: checking for locale.h" >&5
15630 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15631 if test "${ac_cv_header_locale_h+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15635 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15637 # Is the header compilable?
15638 echo "$as_me:$LINENO: checking locale.h usability" >&5
15639 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15640 cat >conftest.
$ac_ext <<_ACEOF
15643 cat confdefs.h
>>conftest.
$ac_ext
15644 cat >>conftest.
$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 $ac_includes_default
15647 #include <locale.h>
15649 rm -f conftest.
$ac_objext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15651 (eval $ac_compile) 2>conftest.er1
15653 grep -v '^ *+' conftest.er1
>conftest.err
15655 cat conftest.err
>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
15658 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try
='test -s conftest.$ac_objext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_header_compiler
=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.
$ac_ext >&5
15675 ac_header_compiler
=no
15677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15679 echo "${ECHO_T}$ac_header_compiler" >&6
15681 # Is the header present?
15682 echo "$as_me:$LINENO: checking locale.h presence" >&5
15683 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15684 cat >conftest.
$ac_ext <<_ACEOF
15687 cat confdefs.h
>>conftest.
$ac_ext
15688 cat >>conftest.
$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15690 #include <locale.h>
15692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15693 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15695 grep -v '^ *+' conftest.er1
>conftest.err
15697 cat conftest.err
>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } >/dev
/null
; then
15700 if test -s conftest.err
; then
15701 ac_cpp_err
=$ac_c_preproc_warn_flag
15702 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15709 if test -z "$ac_cpp_err"; then
15710 ac_header_preproc
=yes
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.
$ac_ext >&5
15715 ac_header_preproc
=no
15717 rm -f conftest.err conftest.
$ac_ext
15718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15719 echo "${ECHO_T}$ac_header_preproc" >&6
15721 # So? What about this header?
15722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15724 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15725 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15727 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15728 ac_header_preproc
=yes
15731 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15732 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15734 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15736 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15738 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15740 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15742 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15745 ## ------------------------------------------ ##
15746 ## Report this to the AC_PACKAGE_NAME lists. ##
15747 ## ------------------------------------------ ##
15750 sed "s/^/$as_me: WARNING: /" >&2
15753 echo "$as_me:$LINENO: checking for locale.h" >&5
15754 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15755 if test "${ac_cv_header_locale_h+set}" = set; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 ac_cv_header_locale_h
=$ac_header_preproc
15760 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15761 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15767 for ac_func
in setlocale
15769 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15770 echo "$as_me:$LINENO: checking for $ac_func" >&5
15771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15772 if eval "test \"\${$as_ac_var+set}\" = set"; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 cat >conftest.
$ac_ext <<_ACEOF
15778 cat confdefs.h
>>conftest.
$ac_ext
15779 cat >>conftest.
$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15783 #define $ac_func innocuous_$ac_func
15785 /* System header to define __stub macros and hopefully few prototypes,
15786 which can conflict with char $ac_func (); below.
15787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15788 <limits.h> exists even on freestanding compilers. */
15791 # include <limits.h>
15793 # include <assert.h>
15798 /* Override any gcc2 internal prototype to avoid an error. */
15803 /* We use char because int might match the return type of a gcc2
15804 builtin and then its argument prototype would still apply. */
15806 /* The GNU C library defines this for functions which it implements
15807 to always fail with ENOSYS. Some functions are actually named
15808 something starting with __ and the normal name is an alias. */
15809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15812 char (*f) () = $ac_func;
15821 return f != $ac_func;
15826 rm -f conftest.
$ac_objext conftest
$ac_exeext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15828 (eval $ac_link) 2>conftest.er1
15830 grep -v '^ *+' conftest.er1
>conftest.err
15832 cat conftest.err
>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try
='test -s conftest$ac_exeext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 eval "$as_ac_var=yes"
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.
$ac_ext >&5
15852 eval "$as_ac_var=no"
15854 rm -f conftest.err conftest.
$ac_objext \
15855 conftest
$ac_exeext conftest.
$ac_ext
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15859 if test `eval echo '${'$as_ac_var'}'` = yes; then
15860 cat >>confdefs.h
<<_ACEOF
15861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15868 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15869 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15870 # Irix 4.0.5F has the header but not the library.
15871 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15874 cat >>confdefs.h
<<\_ACEOF
15880 if test $ac_have_func = no
; then
15881 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15882 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15883 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15884 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15888 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15890 # Is the header compilable?
15891 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15892 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15893 cat >conftest.
$ac_ext <<_ACEOF
15896 cat confdefs.h
>>conftest.
$ac_ext
15897 cat >>conftest.
$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 $ac_includes_default
15900 #include <inq_stats/cpustats.h>
15902 rm -f conftest.
$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904 (eval $ac_compile) 2>conftest.er1
15906 grep -v '^ *+' conftest.er1
>conftest.err
15908 cat conftest.err
>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try
='test -s conftest.$ac_objext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_header_compiler
=yes
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.
$ac_ext >&5
15928 ac_header_compiler
=no
15930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932 echo "${ECHO_T}$ac_header_compiler" >&6
15934 # Is the header present?
15935 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15936 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15937 cat >conftest.
$ac_ext <<_ACEOF
15940 cat confdefs.h
>>conftest.
$ac_ext
15941 cat >>conftest.
$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 #include <inq_stats/cpustats.h>
15945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15946 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15948 grep -v '^ *+' conftest.er1
>conftest.err
15950 cat conftest.err
>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } >/dev
/null
; then
15953 if test -s conftest.err
; then
15954 ac_cpp_err
=$ac_c_preproc_warn_flag
15955 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15962 if test -z "$ac_cpp_err"; then
15963 ac_header_preproc
=yes
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.
$ac_ext >&5
15968 ac_header_preproc
=no
15970 rm -f conftest.err conftest.
$ac_ext
15971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15972 echo "${ECHO_T}$ac_header_preproc" >&6
15974 # So? What about this header?
15975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15977 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15978 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15980 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15981 ac_header_preproc
=yes
15984 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15985 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15987 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15989 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15991 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15993 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15995 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15998 ## ------------------------------------------ ##
15999 ## Report this to the AC_PACKAGE_NAME lists. ##
16000 ## ------------------------------------------ ##
16003 sed "s/^/$as_me: WARNING: /" >&2
16006 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16007 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16008 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16013 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16014 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16017 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16020 cat >>confdefs.h
<<\_ACEOF
16025 cat >>confdefs.h
<<\_ACEOF
16034 if test $ac_have_func = no
; then
16035 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16036 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16037 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16038 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16042 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16044 # Is the header compilable?
16045 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16046 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16047 cat >conftest.
$ac_ext <<_ACEOF
16050 cat confdefs.h
>>conftest.
$ac_ext
16051 cat >>conftest.
$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16054 #include <sys/cpustats.h>
16056 rm -f conftest.
$ac_objext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16058 (eval $ac_compile) 2>conftest.er1
16060 grep -v '^ *+' conftest.er1
>conftest.err
16062 cat conftest.err
>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; } &&
16071 { ac_try
='test -s conftest.$ac_objext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 ac_header_compiler
=yes
16079 echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.
$ac_ext >&5
16082 ac_header_compiler
=no
16084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16086 echo "${ECHO_T}$ac_header_compiler" >&6
16088 # Is the header present?
16089 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16090 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16091 cat >conftest.
$ac_ext <<_ACEOF
16094 cat confdefs.h
>>conftest.
$ac_ext
16095 cat >>conftest.
$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 #include <sys/cpustats.h>
16099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16102 grep -v '^ *+' conftest.er1
>conftest.err
16104 cat conftest.err
>&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } >/dev
/null
; then
16107 if test -s conftest.err
; then
16108 ac_cpp_err
=$ac_c_preproc_warn_flag
16109 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16116 if test -z "$ac_cpp_err"; then
16117 ac_header_preproc
=yes
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.
$ac_ext >&5
16122 ac_header_preproc
=no
16124 rm -f conftest.err conftest.
$ac_ext
16125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16126 echo "${ECHO_T}$ac_header_preproc" >&6
16128 # So? What about this header?
16129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16131 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16132 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16134 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16135 ac_header_preproc
=yes
16138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16139 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16141 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16143 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16145 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16147 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16149 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16152 ## ------------------------------------------ ##
16153 ## Report this to the AC_PACKAGE_NAME lists. ##
16154 ## ------------------------------------------ ##
16157 sed "s/^/$as_me: WARNING: /" >&2
16160 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16161 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16162 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16167 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16168 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16171 if test $ac_cv_header_sys_cpustats_h = yes; then
16172 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16181 if test $ac_have_func = no
; then
16183 for ac_header
in mach
/mach.h
16185 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16187 echo "$as_me:$LINENO: checking for $ac_header" >&5
16188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16195 # Is the header compilable?
16196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16198 cat >conftest.
$ac_ext <<_ACEOF
16201 cat confdefs.h
>>conftest.
$ac_ext
16202 cat >>conftest.
$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 $ac_includes_default
16205 #include <$ac_header>
16207 rm -f conftest.
$ac_objext
16208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>conftest.er1
16211 grep -v '^ *+' conftest.er1
>conftest.err
16213 cat conftest.err
>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
16216 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try
='test -s conftest.$ac_objext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_header_compiler
=yes
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.
$ac_ext >&5
16233 ac_header_compiler
=no
16235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237 echo "${ECHO_T}$ac_header_compiler" >&6
16239 # Is the header present?
16240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16242 cat >conftest.
$ac_ext <<_ACEOF
16245 cat confdefs.h
>>conftest.
$ac_ext
16246 cat >>conftest.
$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 #include <$ac_header>
16250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16251 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16253 grep -v '^ *+' conftest.er1
>conftest.err
16255 cat conftest.err
>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } >/dev
/null
; then
16258 if test -s conftest.err
; then
16259 ac_cpp_err
=$ac_c_preproc_warn_flag
16260 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16267 if test -z "$ac_cpp_err"; then
16268 ac_header_preproc
=yes
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.
$ac_ext >&5
16273 ac_header_preproc
=no
16275 rm -f conftest.err conftest.
$ac_ext
16276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16277 echo "${ECHO_T}$ac_header_preproc" >&6
16279 # So? What about this header?
16280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16286 ac_header_preproc
=yes
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16303 ## ------------------------------------------ ##
16304 ## Report this to the AC_PACKAGE_NAME lists. ##
16305 ## ------------------------------------------ ##
16308 sed "s/^/$as_me: WARNING: /" >&2
16311 echo "$as_me:$LINENO: checking for $ac_header" >&5
16312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 eval "$as_ac_Header=\$ac_header_preproc"
16318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16323 cat >>confdefs.h
<<_ACEOF
16324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16334 for ac_header
in nlist.h
16336 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16338 echo "$as_me:$LINENO: checking for $ac_header" >&5
16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16346 # Is the header compilable?
16347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16349 cat >conftest.
$ac_ext <<_ACEOF
16352 cat confdefs.h
>>conftest.
$ac_ext
16353 cat >>conftest.
$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16356 #include <$ac_header>
16358 rm -f conftest.
$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>conftest.er1
16362 grep -v '^ *+' conftest.er1
>conftest.err
16364 cat conftest.err
>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; } &&
16373 { ac_try
='test -s conftest.$ac_objext'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_header_compiler
=yes
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.
$ac_ext >&5
16384 ac_header_compiler
=no
16386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16388 echo "${ECHO_T}$ac_header_compiler" >&6
16390 # Is the header present?
16391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16393 cat >conftest.
$ac_ext <<_ACEOF
16396 cat confdefs.h
>>conftest.
$ac_ext
16397 cat >>conftest.
$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <$ac_header>
16401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16404 grep -v '^ *+' conftest.er1
>conftest.err
16406 cat conftest.err
>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } >/dev
/null
; then
16409 if test -s conftest.err
; then
16410 ac_cpp_err
=$ac_c_preproc_warn_flag
16411 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16418 if test -z "$ac_cpp_err"; then
16419 ac_header_preproc
=yes
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.
$ac_ext >&5
16424 ac_header_preproc
=no
16426 rm -f conftest.err conftest.
$ac_ext
16427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16428 echo "${ECHO_T}$ac_header_preproc" >&6
16430 # So? What about this header?
16431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16437 ac_header_preproc
=yes
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16454 ## ------------------------------------------ ##
16455 ## Report this to the AC_PACKAGE_NAME lists. ##
16456 ## ------------------------------------------ ##
16459 sed "s/^/$as_me: WARNING: /" >&2
16462 echo "$as_me:$LINENO: checking for $ac_header" >&5
16463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 eval "$as_ac_Header=\$ac_header_preproc"
16469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16474 cat >>confdefs.h
<<_ACEOF
16475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16477 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16478 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16479 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 cat >conftest.
$ac_ext <<_ACEOF
16485 cat confdefs.h
>>conftest.
$ac_ext
16486 cat >>conftest.
$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16493 static struct nlist ac_aggr;
16494 if (ac_aggr.n_un.n_name)
16500 rm -f conftest.
$ac_objext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16502 (eval $ac_compile) 2>conftest.er1
16504 grep -v '^ *+' conftest.er1
>conftest.err
16506 cat conftest.err
>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try
='test -s conftest.$ac_objext'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_cv_member_struct_nlist_n_un_n_name
=yes
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.
$ac_ext >&5
16526 cat >conftest.
$ac_ext <<_ACEOF
16529 cat confdefs.h
>>conftest.
$ac_ext
16530 cat >>conftest.
$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16537 static struct nlist ac_aggr;
16538 if (sizeof ac_aggr.n_un.n_name)
16544 rm -f conftest.
$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16548 grep -v '^ *+' conftest.er1
>conftest.err
16550 cat conftest.err
>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try
='test -s conftest.$ac_objext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_member_struct_nlist_n_un_n_name
=yes
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.
$ac_ext >&5
16570 ac_cv_member_struct_nlist_n_un_n_name
=no
16572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16577 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16578 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16580 cat >>confdefs.h
<<_ACEOF
16581 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16585 cat >>confdefs.h
<<\_ACEOF
16586 #define NLIST_NAME_UNION 1
16600 # Some definitions of getloadavg require that the program be installed setgid.
16601 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16602 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16603 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 cat >conftest.
$ac_ext <<_ACEOF
16609 cat confdefs.h
>>conftest.
$ac_ext
16610 cat >>conftest.
$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16613 #ifdef LDAV_PRIVILEGED
16614 Yowza Am I SETGID yet
16617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16618 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16619 ac_cv_func_getloadavg_setgid
=yes
16621 ac_cv_func_getloadavg_setgid
=no
16626 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16627 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16628 if test $ac_cv_func_getloadavg_setgid = yes; then
16631 cat >>confdefs.h
<<\_ACEOF
16632 #define GETLOADAVG_PRIVILEGED 1
16639 if test $ac_cv_func_getloadavg_setgid = yes; then
16640 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16641 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16642 if test "${ac_cv_group_kmem+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16646 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16647 # If we got an error (system does not support symlinks), try without -L.
16648 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16649 ac_cv_group_kmem
=`echo $ac_ls_output \
16650 | sed -ne 's/[ ][ ]*/ /g;
16651 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16655 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16656 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16657 KMEM_GROUP
=$ac_cv_group_kmem
16659 if test "x$ac_save_LIBS" = x
; then
16660 GETLOADAVG_LIBS
=$LIBS
16662 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16668 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16669 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16670 if test "${ac_cv_sys_largefile_source+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 ac_cv_sys_largefile_source
=no
16675 cat >conftest.
$ac_ext <<_ACEOF
16678 cat confdefs.h
>>conftest.
$ac_ext
16679 cat >>conftest.
$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16690 rm -f conftest.
$ac_objext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16692 (eval $ac_compile) 2>conftest.er1
16694 grep -v '^ *+' conftest.er1
>conftest.err
16696 cat conftest.err
>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try
='test -s conftest.$ac_objext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.
$ac_ext >&5
16717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16718 cat >conftest.
$ac_ext <<_ACEOF
16721 cat confdefs.h
>>conftest.
$ac_ext
16722 cat >>conftest.
$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #define _LARGEFILE_SOURCE 1
16734 rm -f conftest.
$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>conftest.er1
16738 grep -v '^ *+' conftest.er1
>conftest.err
16740 cat conftest.err
>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try
='test -s conftest.$ac_objext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_sys_largefile_source
=1; break
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.
$ac_ext >&5
16761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16765 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16766 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16767 if test "$ac_cv_sys_largefile_source" != no
; then
16769 cat >>confdefs.h
<<_ACEOF
16770 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16776 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16777 # in glibc 2.1.3, but that breaks too many other things.
16778 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16779 echo "$as_me:$LINENO: checking for fseeko" >&5
16780 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16781 if test "${ac_cv_func_fseeko+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 cat >conftest.
$ac_ext <<_ACEOF
16787 cat confdefs.h
>>conftest.
$ac_ext
16788 cat >>conftest.
$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16794 return fseeko && fseeko (stdin, 0, 0);
16799 rm -f conftest.
$ac_objext conftest
$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>conftest.er1
16803 grep -v '^ *+' conftest.er1
>conftest.err
16805 cat conftest.err
>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try
='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_cv_func_fseeko
=yes
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.
$ac_ext >&5
16825 ac_cv_func_fseeko
=no
16827 rm -f conftest.err conftest.
$ac_objext \
16828 conftest
$ac_exeext conftest.
$ac_ext
16830 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16831 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16832 if test $ac_cv_func_fseeko = yes; then
16834 cat >>confdefs.h
<<\_ACEOF
16835 #define HAVE_FSEEKO 1
16841 # Configure getopt.
16842 # getopt.m4 serial 10
16844 # The getopt module assume you want GNU getopt, with getopt_long etc,
16845 # rather than vanilla POSIX getopt. This means your your code should
16846 # always include <getopt.h> for the getopt prototypes.
16858 # Prerequisites of lib/getopt*.
16865 for ac_header
in getopt.h
16867 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo "$as_me:$LINENO: checking for $ac_header" >&5
16870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16877 # Is the header compilable?
16878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16880 cat >conftest.
$ac_ext <<_ACEOF
16883 cat confdefs.h
>>conftest.
$ac_ext
16884 cat >>conftest.
$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886 $ac_includes_default
16887 #include <$ac_header>
16889 rm -f conftest.
$ac_objext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16891 (eval $ac_compile) 2>conftest.er1
16893 grep -v '^ *+' conftest.er1
>conftest.err
16895 cat conftest.err
>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
16898 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try
='test -s conftest.$ac_objext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_header_compiler
=yes
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.
$ac_ext >&5
16915 ac_header_compiler
=no
16917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 echo "${ECHO_T}$ac_header_compiler" >&6
16921 # Is the header present?
16922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16924 cat >conftest.
$ac_ext <<_ACEOF
16927 cat confdefs.h
>>conftest.
$ac_ext
16928 cat >>conftest.
$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 #include <$ac_header>
16932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16933 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16935 grep -v '^ *+' conftest.er1
>conftest.err
16937 cat conftest.err
>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } >/dev
/null
; then
16940 if test -s conftest.err
; then
16941 ac_cpp_err
=$ac_c_preproc_warn_flag
16942 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16949 if test -z "$ac_cpp_err"; then
16950 ac_header_preproc
=yes
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.
$ac_ext >&5
16955 ac_header_preproc
=no
16957 rm -f conftest.err conftest.
$ac_ext
16958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16959 echo "${ECHO_T}$ac_header_preproc" >&6
16961 # So? What about this header?
16962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16968 ac_header_preproc
=yes
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16985 ## ------------------------------------------ ##
16986 ## Report this to the AC_PACKAGE_NAME lists. ##
16987 ## ------------------------------------------ ##
16990 sed "s/^/$as_me: WARNING: /" >&2
16993 echo "$as_me:$LINENO: checking for $ac_header" >&5
16994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 eval "$as_ac_Header=\$ac_header_preproc"
17000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17005 cat >>confdefs.h
<<_ACEOF
17006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17015 if test -z "$GETOPT_H"; then
17017 for ac_func
in getopt_long_only
17019 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17020 echo "$as_me:$LINENO: checking for $ac_func" >&5
17021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17022 if eval "test \"\${$as_ac_var+set}\" = set"; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 cat >conftest.
$ac_ext <<_ACEOF
17028 cat confdefs.h
>>conftest.
$ac_ext
17029 cat >>conftest.
$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17033 #define $ac_func innocuous_$ac_func
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char $ac_func (); below.
17037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038 <limits.h> exists even on freestanding compilers. */
17041 # include <limits.h>
17043 # include <assert.h>
17048 /* Override any gcc2 internal prototype to avoid an error. */
17053 /* We use char because int might match the return type of a gcc2
17054 builtin and then its argument prototype would still apply. */
17056 /* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17062 char (*f) () = $ac_func;
17071 return f != $ac_func;
17076 rm -f conftest.
$ac_objext conftest
$ac_exeext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17078 (eval $ac_link) 2>conftest.er1
17080 grep -v '^ *+' conftest.er1
>conftest.err
17082 cat conftest.err
>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try
='test -s conftest$ac_exeext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 eval "$as_ac_var=yes"
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.
$ac_ext >&5
17102 eval "$as_ac_var=no"
17104 rm -f conftest.err conftest.
$ac_objext \
17105 conftest
$ac_exeext conftest.
$ac_ext
17107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17109 if test `eval echo '${'$as_ac_var'}'` = yes; then
17110 cat >>confdefs.h
<<_ACEOF
17111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17121 if test -z "$GETOPT_H"; then
17122 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17123 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17124 if test "${ac_cv_have_decl_optreset+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 cat >conftest.
$ac_ext <<_ACEOF
17130 cat confdefs.h
>>conftest.
$ac_ext
17131 cat >>conftest.
$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 #include <getopt.h>
17139 char *p = (char *) optreset;
17146 rm -f conftest.
$ac_objext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17150 grep -v '^ *+' conftest.er1
>conftest.err
17152 cat conftest.err
>&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try
='test -s conftest.$ac_objext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_cv_have_decl_optreset
=yes
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.
$ac_ext >&5
17172 ac_cv_have_decl_optreset
=no
17174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17176 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17177 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17178 if test $ac_cv_have_decl_optreset = yes; then
17184 if test -z "$GETOPT_H"; then
17185 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17186 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17187 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17190 if test "$cross_compiling" = yes; then
17191 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17192 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17193 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 cat >conftest.
$ac_ext <<_ACEOF
17199 cat confdefs.h
>>conftest.
$ac_ext
17200 cat >>conftest.
$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 #include <getopt.h>
17207 #ifndef getopt_clip
17208 char *p = (char *) getopt_clip;
17215 rm -f conftest.
$ac_objext
17216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17217 (eval $ac_compile) 2>conftest.er1
17219 grep -v '^ *+' conftest.er1
>conftest.err
17221 cat conftest.err
>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try
='test -s conftest.$ac_objext'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_have_decl_getopt_clip
=yes
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.
$ac_ext >&5
17241 ac_cv_have_decl_getopt_clip
=no
17243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17246 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17247 if test $ac_cv_have_decl_getopt_clip = yes; then
17248 gl_cv_func_gnu_getopt
=no
17250 gl_cv_func_gnu_getopt
=yes
17254 cat >conftest.
$ac_ext <<_ACEOF
17257 cat confdefs.h
>>conftest.
$ac_ext
17258 cat >>conftest.
$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17260 #include <getopt.h>
17266 myargv[0] = "conftest";
17269 return getopt (2, myargv, "+a") != '?';
17275 rm -f conftest
$ac_exeext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17277 (eval $ac_link) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 gl_cv_func_gnu_getopt
=yes
17288 echo "$as_me: program exited with status $ac_status" >&5
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.
$ac_ext >&5
17292 ( exit $ac_status )
17293 gl_cv_func_gnu_getopt
=no
17295 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17298 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17299 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17300 if test "$gl_cv_func_gnu_getopt" = "no"; then
17307 if test -n "$GETOPT_H"; then
17312 cat >>confdefs.h
<<\_ACEOF
17313 #define __GETOPT_PREFIX rpl_
17319 GETOPTOBJS
='getopt.o getopt1.o'
17326 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17327 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17328 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 # Use it with a single arg.
17332 cat >conftest.
$ac_ext <<_ACEOF
17335 cat confdefs.h
>>conftest.
$ac_ext
17336 cat >>conftest.
$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 $ac_includes_default
17347 rm -f conftest.
$ac_objext
17348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17349 (eval $ac_compile) 2>conftest.er1
17351 grep -v '^ *+' conftest.er1
>conftest.err
17353 cat conftest.err
>&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try
='test -s conftest.$ac_objext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_cv_func_getpgrp_void
=no
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.
$ac_ext >&5
17373 ac_cv_func_getpgrp_void
=yes
17375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17378 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17379 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17380 if test $ac_cv_func_getpgrp_void = yes; then
17382 cat >>confdefs.h
<<\_ACEOF
17383 #define GETPGRP_VOID 1
17390 for ac_func
in strftime
17392 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17395 if eval "test \"\${$as_ac_var+set}\" = set"; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 cat >conftest.
$ac_ext <<_ACEOF
17401 cat confdefs.h
>>conftest.
$ac_ext
17402 cat >>conftest.
$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17406 #define $ac_func innocuous_$ac_func
17408 /* System header to define __stub macros and hopefully few prototypes,
17409 which can conflict with char $ac_func (); below.
17410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17411 <limits.h> exists even on freestanding compilers. */
17414 # include <limits.h>
17416 # include <assert.h>
17421 /* Override any gcc2 internal prototype to avoid an error. */
17426 /* We use char because int might match the return type of a gcc2
17427 builtin and then its argument prototype would still apply. */
17429 /* The GNU C library defines this for functions which it implements
17430 to always fail with ENOSYS. Some functions are actually named
17431 something starting with __ and the normal name is an alias. */
17432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17435 char (*f) () = $ac_func;
17444 return f != $ac_func;
17449 rm -f conftest.
$ac_objext conftest
$ac_exeext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451 (eval $ac_link) 2>conftest.er1
17453 grep -v '^ *+' conftest.er1
>conftest.err
17455 cat conftest.err
>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try
='test -s conftest$ac_exeext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 eval "$as_ac_var=yes"
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.
$ac_ext >&5
17475 eval "$as_ac_var=no"
17477 rm -f conftest.err conftest.
$ac_objext \
17478 conftest
$ac_exeext conftest.
$ac_ext
17480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17482 if test `eval echo '${'$as_ac_var'}'` = yes; then
17483 cat >>confdefs.h
<<_ACEOF
17484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17488 # strftime is in -lintl on SCO UNIX.
17489 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17490 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17491 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17494 ac_check_lib_save_LIBS
=$LIBS
17495 LIBS
="-lintl $LIBS"
17496 cat >conftest.
$ac_ext <<_ACEOF
17499 cat confdefs.h
>>conftest.
$ac_ext
17500 cat >>conftest.
$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17503 /* Override any gcc2 internal prototype to avoid an error. */
17507 /* We use char because int might match the return type of a gcc2
17508 builtin and then its argument prototype would still apply. */
17518 rm -f conftest.
$ac_objext conftest
$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>conftest.er1
17522 grep -v '^ *+' conftest.er1
>conftest.err
17524 cat conftest.err
>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try
='test -s conftest$ac_exeext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_lib_intl_strftime
=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.
$ac_ext >&5
17544 ac_cv_lib_intl_strftime
=no
17546 rm -f conftest.err conftest.
$ac_objext \
17547 conftest
$ac_exeext conftest.
$ac_ext
17548 LIBS
=$ac_check_lib_save_LIBS
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17551 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17552 if test $ac_cv_lib_intl_strftime = yes; then
17553 cat >>confdefs.h
<<\_ACEOF
17554 #define HAVE_STRFTIME 1
17557 LIBS
="-lintl $LIBS"
17566 for ac_func
in grantpt
17568 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17569 echo "$as_me:$LINENO: checking for $ac_func" >&5
17570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17571 if eval "test \"\${$as_ac_var+set}\" = set"; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 cat >conftest.
$ac_ext <<_ACEOF
17577 cat confdefs.h
>>conftest.
$ac_ext
17578 cat >>conftest.
$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17582 #define $ac_func innocuous_$ac_func
17584 /* System header to define __stub macros and hopefully few prototypes,
17585 which can conflict with char $ac_func (); below.
17586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17587 <limits.h> exists even on freestanding compilers. */
17590 # include <limits.h>
17592 # include <assert.h>
17597 /* Override any gcc2 internal prototype to avoid an error. */
17602 /* We use char because int might match the return type of a gcc2
17603 builtin and then its argument prototype would still apply. */
17605 /* The GNU C library defines this for functions which it implements
17606 to always fail with ENOSYS. Some functions are actually named
17607 something starting with __ and the normal name is an alias. */
17608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17611 char (*f) () = $ac_func;
17620 return f != $ac_func;
17625 rm -f conftest.
$ac_objext conftest
$ac_exeext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17627 (eval $ac_link) 2>conftest.er1
17629 grep -v '^ *+' conftest.er1
>conftest.err
17631 cat conftest.err
>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try
='test -s conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 eval "$as_ac_var=yes"
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.
$ac_ext >&5
17651 eval "$as_ac_var=no"
17653 rm -f conftest.err conftest.
$ac_objext \
17654 conftest
$ac_exeext conftest.
$ac_ext
17656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h
<<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17667 # PTY-related GNU extensions.
17669 for ac_func
in getpt
17671 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17672 echo "$as_me:$LINENO: checking for $ac_func" >&5
17673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17674 if eval "test \"\${$as_ac_var+set}\" = set"; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 cat >conftest.
$ac_ext <<_ACEOF
17680 cat confdefs.h
>>conftest.
$ac_ext
17681 cat >>conftest.
$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17685 #define $ac_func innocuous_$ac_func
17687 /* System header to define __stub macros and hopefully few prototypes,
17688 which can conflict with char $ac_func (); below.
17689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17690 <limits.h> exists even on freestanding compilers. */
17693 # include <limits.h>
17695 # include <assert.h>
17700 /* Override any gcc2 internal prototype to avoid an error. */
17705 /* We use char because int might match the return type of a gcc2
17706 builtin and then its argument prototype would still apply. */
17708 /* The GNU C library defines this for functions which it implements
17709 to always fail with ENOSYS. Some functions are actually named
17710 something starting with __ and the normal name is an alias. */
17711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17714 char (*f) () = $ac_func;
17723 return f != $ac_func;
17728 rm -f conftest.
$ac_objext conftest
$ac_exeext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730 (eval $ac_link) 2>conftest.er1
17732 grep -v '^ *+' conftest.er1
>conftest.err
17734 cat conftest.err
>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try
='test -s conftest$ac_exeext'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 eval "$as_ac_var=yes"
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.
$ac_ext >&5
17754 eval "$as_ac_var=no"
17756 rm -f conftest.err conftest.
$ac_objext \
17757 conftest
$ac_exeext conftest.
$ac_ext
17759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17761 if test `eval echo '${'$as_ac_var'}'` = yes; then
17762 cat >>confdefs.h
<<_ACEOF
17763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17770 # Check this now, so that we will NOT find the above functions in ncurses.
17771 # That is because we have not set up to link ncurses in lib-src.
17772 # It's better to believe a function is not available
17773 # than to expect to find it in ncurses.
17775 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17776 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17777 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 ac_check_lib_save_LIBS
=$LIBS
17781 LIBS
="-lncurses $LIBS"
17782 cat >conftest.
$ac_ext <<_ACEOF
17785 cat confdefs.h
>>conftest.
$ac_ext
17786 cat >>conftest.
$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17789 /* Override any gcc2 internal prototype to avoid an error. */
17793 /* We use char because int might match the return type of a gcc2
17794 builtin and then its argument prototype would still apply. */
17804 rm -f conftest.
$ac_objext conftest
$ac_exeext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806 (eval $ac_link) 2>conftest.er1
17808 grep -v '^ *+' conftest.er1
>conftest.err
17810 cat conftest.err
>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try
='test -s conftest$ac_exeext'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_cv_lib_ncurses_tparm
=yes
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.
$ac_ext >&5
17830 ac_cv_lib_ncurses_tparm
=no
17832 rm -f conftest.err conftest.
$ac_objext \
17833 conftest
$ac_exeext conftest.
$ac_ext
17834 LIBS
=$ac_check_lib_save_LIBS
17836 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17837 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17838 if test $ac_cv_lib_ncurses_tparm = yes; then
17839 cat >>confdefs.h
<<_ACEOF
17840 #define HAVE_LIBNCURSES 1
17843 LIBS
="-lncurses $LIBS"
17848 # Do we need the Hesiod library to provide the support routines?
17849 if test "$with_hesiod" = yes ; then
17850 # Don't set $LIBS here -- see comments above.
17852 echo "$as_me:$LINENO: checking for res_send" >&5
17853 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17854 if test "${ac_cv_func_res_send+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 cat >conftest.
$ac_ext <<_ACEOF
17860 cat confdefs.h
>>conftest.
$ac_ext
17861 cat >>conftest.
$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17865 #define res_send innocuous_res_send
17867 /* System header to define __stub macros and hopefully few prototypes,
17868 which can conflict with char res_send (); below.
17869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17870 <limits.h> exists even on freestanding compilers. */
17873 # include <limits.h>
17875 # include <assert.h>
17880 /* Override any gcc2 internal prototype to avoid an error. */
17885 /* We use char because int might match the return type of a gcc2
17886 builtin and then its argument prototype would still apply. */
17888 /* The GNU C library defines this for functions which it implements
17889 to always fail with ENOSYS. Some functions are actually named
17890 something starting with __ and the normal name is an alias. */
17891 #if defined (__stub_res_send) || defined (__stub___res_send)
17894 char (*f) () = res_send;
17903 return f != res_send;
17908 rm -f conftest.
$ac_objext conftest
$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>conftest.er1
17912 grep -v '^ *+' conftest.er1
>conftest.err
17914 cat conftest.err
>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try
='test -s conftest$ac_exeext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_func_res_send
=yes
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.
$ac_ext >&5
17934 ac_cv_func_res_send
=no
17936 rm -f conftest.err conftest.
$ac_objext \
17937 conftest
$ac_exeext conftest.
$ac_ext
17939 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17940 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17941 if test $ac_cv_func_res_send = yes; then
17944 echo "$as_me:$LINENO: checking for __res_send" >&5
17945 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17946 if test "${ac_cv_func___res_send+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 cat >conftest.
$ac_ext <<_ACEOF
17952 cat confdefs.h
>>conftest.
$ac_ext
17953 cat >>conftest.
$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17957 #define __res_send innocuous___res_send
17959 /* System header to define __stub macros and hopefully few prototypes,
17960 which can conflict with char __res_send (); below.
17961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17962 <limits.h> exists even on freestanding compilers. */
17965 # include <limits.h>
17967 # include <assert.h>
17972 /* Override any gcc2 internal prototype to avoid an error. */
17977 /* We use char because int might match the return type of a gcc2
17978 builtin and then its argument prototype would still apply. */
17979 char __res_send ();
17980 /* The GNU C library defines this for functions which it implements
17981 to always fail with ENOSYS. Some functions are actually named
17982 something starting with __ and the normal name is an alias. */
17983 #if defined (__stub___res_send) || defined (__stub_____res_send)
17986 char (*f) () = __res_send;
17995 return f != __res_send;
18000 rm -f conftest.
$ac_objext conftest
$ac_exeext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>conftest.er1
18004 grep -v '^ *+' conftest.er1
>conftest.err
18006 cat conftest.err
>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try
='test -s conftest$ac_exeext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_func___res_send
=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.
$ac_ext >&5
18026 ac_cv_func___res_send
=no
18028 rm -f conftest.err conftest.
$ac_objext \
18029 conftest
$ac_exeext conftest.
$ac_ext
18031 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18032 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18033 if test $ac_cv_func___res_send = yes; then
18036 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18037 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18038 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 ac_check_lib_save_LIBS
=$LIBS
18042 LIBS
="-lresolv $LIBS"
18043 cat >conftest.
$ac_ext <<_ACEOF
18046 cat confdefs.h
>>conftest.
$ac_ext
18047 cat >>conftest.
$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18050 /* Override any gcc2 internal prototype to avoid an error. */
18054 /* We use char because int might match the return type of a gcc2
18055 builtin and then its argument prototype would still apply. */
18065 rm -f conftest.
$ac_objext conftest
$ac_exeext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067 (eval $ac_link) 2>conftest.er1
18069 grep -v '^ *+' conftest.er1
>conftest.err
18071 cat conftest.err
>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try
='test -s conftest$ac_exeext'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
18086 ac_cv_lib_resolv_res_send
=yes
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.
$ac_ext >&5
18091 ac_cv_lib_resolv_res_send
=no
18093 rm -f conftest.err conftest.
$ac_objext \
18094 conftest
$ac_exeext conftest.
$ac_ext
18095 LIBS
=$ac_check_lib_save_LIBS
18097 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18098 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18099 if test $ac_cv_lib_resolv_res_send = yes; then
18102 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18103 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18104 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 ac_check_lib_save_LIBS
=$LIBS
18108 LIBS
="-lresolv $LIBS"
18109 cat >conftest.
$ac_ext <<_ACEOF
18112 cat confdefs.h
>>conftest.
$ac_ext
18113 cat >>conftest.
$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18116 /* Override any gcc2 internal prototype to avoid an error. */
18120 /* We use char because int might match the return type of a gcc2
18121 builtin and then its argument prototype would still apply. */
18122 char __res_send ();
18131 rm -f conftest.
$ac_objext conftest
$ac_exeext
18132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133 (eval $ac_link) 2>conftest.er1
18135 grep -v '^ *+' conftest.er1
>conftest.err
18137 cat conftest.err
>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } &&
18140 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try
='test -s conftest$ac_exeext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 ac_cv_lib_resolv___res_send
=yes
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.
$ac_ext >&5
18157 ac_cv_lib_resolv___res_send
=no
18159 rm -f conftest.err conftest.
$ac_objext \
18160 conftest
$ac_exeext conftest.
$ac_ext
18161 LIBS
=$ac_check_lib_save_LIBS
18163 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18164 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18165 if test $ac_cv_lib_resolv___res_send = yes; then
18175 if test "$resolv" = yes ; then
18178 cat >>confdefs.h
<<\_ACEOF
18179 #define HAVE_LIBRESOLV 1
18185 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18186 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18187 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 cat >conftest.
$ac_ext <<_ACEOF
18193 cat confdefs.h
>>conftest.
$ac_ext
18194 cat >>conftest.
$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18198 #define hes_getmailhost innocuous_hes_getmailhost
18200 /* System header to define __stub macros and hopefully few prototypes,
18201 which can conflict with char hes_getmailhost (); below.
18202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18203 <limits.h> exists even on freestanding compilers. */
18206 # include <limits.h>
18208 # include <assert.h>
18211 #undef hes_getmailhost
18213 /* Override any gcc2 internal prototype to avoid an error. */
18218 /* We use char because int might match the return type of a gcc2
18219 builtin and then its argument prototype would still apply. */
18220 char hes_getmailhost ();
18221 /* The GNU C library defines this for functions which it implements
18222 to always fail with ENOSYS. Some functions are actually named
18223 something starting with __ and the normal name is an alias. */
18224 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18227 char (*f) () = hes_getmailhost;
18236 return f != hes_getmailhost;
18241 rm -f conftest.
$ac_objext conftest
$ac_exeext
18242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18243 (eval $ac_link) 2>conftest.er1
18245 grep -v '^ *+' conftest.er1
>conftest.err
18247 cat conftest.err
>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } &&
18250 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try
='test -s conftest$ac_exeext'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262 ac_cv_func_hes_getmailhost
=yes
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.
$ac_ext >&5
18267 ac_cv_func_hes_getmailhost
=no
18269 rm -f conftest.err conftest.
$ac_objext \
18270 conftest
$ac_exeext conftest.
$ac_ext
18272 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18273 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18274 if test $ac_cv_func_hes_getmailhost = yes; then
18277 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18278 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18279 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 ac_check_lib_save_LIBS
=$LIBS
18283 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18284 cat >conftest.
$ac_ext <<_ACEOF
18287 cat confdefs.h
>>conftest.
$ac_ext
18288 cat >>conftest.
$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18291 /* Override any gcc2 internal prototype to avoid an error. */
18295 /* We use char because int might match the return type of a gcc2
18296 builtin and then its argument prototype would still apply. */
18297 char hes_getmailhost ();
18301 hes_getmailhost ();
18306 rm -f conftest.
$ac_objext conftest
$ac_exeext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18308 (eval $ac_link) 2>conftest.er1
18310 grep -v '^ *+' conftest.er1
>conftest.err
18312 cat conftest.err
>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
18315 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; } &&
18321 { ac_try
='test -s conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_cv_lib_hesiod_hes_getmailhost
=yes
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.
$ac_ext >&5
18332 ac_cv_lib_hesiod_hes_getmailhost
=no
18334 rm -f conftest.err conftest.
$ac_objext \
18335 conftest
$ac_exeext conftest.
$ac_ext
18336 LIBS
=$ac_check_lib_save_LIBS
18338 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18339 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18340 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18342 cat >>confdefs.h
<<\_ACEOF
18343 #define HAVE_LIBHESIOD 1
18354 # These tell us which Kerberos-related libraries to use.
18355 if test "${with_kerberos+set}" = set; then
18357 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18358 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18359 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 ac_check_lib_save_LIBS
=$LIBS
18363 LIBS
="-lcom_err $LIBS"
18364 cat >conftest.
$ac_ext <<_ACEOF
18367 cat confdefs.h
>>conftest.
$ac_ext
18368 cat >>conftest.
$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18371 /* Override any gcc2 internal prototype to avoid an error. */
18375 /* We use char because int might match the return type of a gcc2
18376 builtin and then its argument prototype would still apply. */
18386 rm -f conftest.
$ac_objext conftest
$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>conftest.er1
18390 grep -v '^ *+' conftest.er1
>conftest.err
18392 cat conftest.err
>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try
='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_lib_com_err_com_err
=yes
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.
$ac_ext >&5
18412 ac_cv_lib_com_err_com_err
=no
18414 rm -f conftest.err conftest.
$ac_objext \
18415 conftest
$ac_exeext conftest.
$ac_ext
18416 LIBS
=$ac_check_lib_save_LIBS
18418 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18419 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18420 if test $ac_cv_lib_com_err_com_err = yes; then
18421 cat >>confdefs.h
<<_ACEOF
18422 #define HAVE_LIBCOM_ERR 1
18425 LIBS
="-lcom_err $LIBS"
18430 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18431 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18432 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18435 ac_check_lib_save_LIBS
=$LIBS
18436 LIBS
="-lk5crypto $LIBS"
18437 cat >conftest.
$ac_ext <<_ACEOF
18440 cat confdefs.h
>>conftest.
$ac_ext
18441 cat >>conftest.
$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18444 /* Override any gcc2 internal prototype to avoid an error. */
18448 /* We use char because int might match the return type of a gcc2
18449 builtin and then its argument prototype would still apply. */
18450 char mit_des_cbc_encrypt ();
18454 mit_des_cbc_encrypt ();
18459 rm -f conftest.
$ac_objext conftest
$ac_exeext
18460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18461 (eval $ac_link) 2>conftest.er1
18463 grep -v '^ *+' conftest.er1
>conftest.err
18465 cat conftest.err
>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try
='test -s conftest$ac_exeext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.
$ac_ext >&5
18485 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18487 rm -f conftest.err conftest.
$ac_objext \
18488 conftest
$ac_exeext conftest.
$ac_ext
18489 LIBS
=$ac_check_lib_save_LIBS
18491 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18492 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18493 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18494 cat >>confdefs.h
<<_ACEOF
18495 #define HAVE_LIBK5CRYPTO 1
18498 LIBS
="-lk5crypto $LIBS"
18503 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18504 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18505 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 ac_check_lib_save_LIBS
=$LIBS
18509 LIBS
="-lcrypto $LIBS"
18510 cat >conftest.
$ac_ext <<_ACEOF
18513 cat confdefs.h
>>conftest.
$ac_ext
18514 cat >>conftest.
$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18517 /* Override any gcc2 internal prototype to avoid an error. */
18521 /* We use char because int might match the return type of a gcc2
18522 builtin and then its argument prototype would still apply. */
18523 char mit_des_cbc_encrypt ();
18527 mit_des_cbc_encrypt ();
18532 rm -f conftest.
$ac_objext conftest
$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>conftest.er1
18536 grep -v '^ *+' conftest.er1
>conftest.err
18538 cat conftest.err
>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try
='test -s conftest$ac_exeext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.
$ac_ext >&5
18558 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18560 rm -f conftest.err conftest.
$ac_objext \
18561 conftest
$ac_exeext conftest.
$ac_ext
18562 LIBS
=$ac_check_lib_save_LIBS
18564 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18565 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18566 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18567 cat >>confdefs.h
<<_ACEOF
18568 #define HAVE_LIBCRYPTO 1
18571 LIBS
="-lcrypto $LIBS"
18576 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18577 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18578 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 ac_check_lib_save_LIBS
=$LIBS
18582 LIBS
="-lkrb5 $LIBS"
18583 cat >conftest.
$ac_ext <<_ACEOF
18586 cat confdefs.h
>>conftest.
$ac_ext
18587 cat >>conftest.
$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18590 /* Override any gcc2 internal prototype to avoid an error. */
18594 /* We use char because int might match the return type of a gcc2
18595 builtin and then its argument prototype would still apply. */
18596 char krb5_init_context ();
18600 krb5_init_context ();
18605 rm -f conftest.
$ac_objext conftest
$ac_exeext
18606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18607 (eval $ac_link) 2>conftest.er1
18609 grep -v '^ *+' conftest.er1
>conftest.err
18611 cat conftest.err
>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try
='test -s conftest$ac_exeext'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_lib_krb5_krb5_init_context
=yes
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.
$ac_ext >&5
18631 ac_cv_lib_krb5_krb5_init_context
=no
18633 rm -f conftest.err conftest.
$ac_objext \
18634 conftest
$ac_exeext conftest.
$ac_ext
18635 LIBS
=$ac_check_lib_save_LIBS
18637 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18638 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18639 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18640 cat >>confdefs.h
<<_ACEOF
18641 #define HAVE_LIBKRB5 1
18644 LIBS
="-lkrb5 $LIBS"
18648 if test "${with_kerberos5+set}" != set; then
18650 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18651 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18652 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 ac_check_lib_save_LIBS
=$LIBS
18656 LIBS
="-ldes425 $LIBS"
18657 cat >conftest.
$ac_ext <<_ACEOF
18660 cat confdefs.h
>>conftest.
$ac_ext
18661 cat >>conftest.
$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18664 /* Override any gcc2 internal prototype to avoid an error. */
18668 /* We use char because int might match the return type of a gcc2
18669 builtin and then its argument prototype would still apply. */
18670 char des_cbc_encrypt ();
18674 des_cbc_encrypt ();
18679 rm -f conftest.
$ac_objext conftest
$ac_exeext
18680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18681 (eval $ac_link) 2>conftest.er1
18683 grep -v '^ *+' conftest.er1
>conftest.err
18685 cat conftest.err
>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try
='test -s conftest$ac_exeext'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_cv_lib_des425_des_cbc_encrypt
=yes
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.
$ac_ext >&5
18705 ac_cv_lib_des425_des_cbc_encrypt
=no
18707 rm -f conftest.err conftest.
$ac_objext \
18708 conftest
$ac_exeext conftest.
$ac_ext
18709 LIBS
=$ac_check_lib_save_LIBS
18711 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18712 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18713 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18714 cat >>confdefs.h
<<_ACEOF
18715 #define HAVE_LIBDES425 1
18718 LIBS
="-ldes425 $LIBS"
18722 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18723 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18724 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 ac_check_lib_save_LIBS
=$LIBS
18729 cat >conftest.
$ac_ext <<_ACEOF
18732 cat confdefs.h
>>conftest.
$ac_ext
18733 cat >>conftest.
$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18736 /* Override any gcc2 internal prototype to avoid an error. */
18740 /* We use char because int might match the return type of a gcc2
18741 builtin and then its argument prototype would still apply. */
18742 char des_cbc_encrypt ();
18746 des_cbc_encrypt ();
18751 rm -f conftest.
$ac_objext conftest
$ac_exeext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18753 (eval $ac_link) 2>conftest.er1
18755 grep -v '^ *+' conftest.er1
>conftest.err
18757 cat conftest.err
>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try
='test -s conftest$ac_exeext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_lib_des_des_cbc_encrypt
=yes
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.
$ac_ext >&5
18777 ac_cv_lib_des_des_cbc_encrypt
=no
18779 rm -f conftest.err conftest.
$ac_objext \
18780 conftest
$ac_exeext conftest.
$ac_ext
18781 LIBS
=$ac_check_lib_save_LIBS
18783 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18784 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18785 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18786 cat >>confdefs.h
<<_ACEOF
18787 #define HAVE_LIBDES 1
18797 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18798 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18799 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18802 ac_check_lib_save_LIBS
=$LIBS
18803 LIBS
="-lkrb4 $LIBS"
18804 cat >conftest.
$ac_ext <<_ACEOF
18807 cat confdefs.h
>>conftest.
$ac_ext
18808 cat >>conftest.
$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18811 /* Override any gcc2 internal prototype to avoid an error. */
18815 /* We use char because int might match the return type of a gcc2
18816 builtin and then its argument prototype would still apply. */
18817 char krb_get_cred ();
18826 rm -f conftest.
$ac_objext conftest
$ac_exeext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828 (eval $ac_link) 2>conftest.er1
18830 grep -v '^ *+' conftest.er1
>conftest.err
18832 cat conftest.err
>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try
='test -s conftest$ac_exeext'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 ac_cv_lib_krb4_krb_get_cred
=yes
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.
$ac_ext >&5
18852 ac_cv_lib_krb4_krb_get_cred
=no
18854 rm -f conftest.err conftest.
$ac_objext \
18855 conftest
$ac_exeext conftest.
$ac_ext
18856 LIBS
=$ac_check_lib_save_LIBS
18858 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18859 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18860 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18861 cat >>confdefs.h
<<_ACEOF
18862 #define HAVE_LIBKRB4 1
18865 LIBS
="-lkrb4 $LIBS"
18869 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18870 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18871 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 ac_check_lib_save_LIBS
=$LIBS
18876 cat >conftest.
$ac_ext <<_ACEOF
18879 cat confdefs.h
>>conftest.
$ac_ext
18880 cat >>conftest.
$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18883 /* Override any gcc2 internal prototype to avoid an error. */
18887 /* We use char because int might match the return type of a gcc2
18888 builtin and then its argument prototype would still apply. */
18889 char krb_get_cred ();
18898 rm -f conftest.
$ac_objext conftest
$ac_exeext
18899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18900 (eval $ac_link) 2>conftest.er1
18902 grep -v '^ *+' conftest.er1
>conftest.err
18904 cat conftest.err
>&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
18907 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try
='test -s conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_lib_krb_krb_get_cred
=yes
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.
$ac_ext >&5
18924 ac_cv_lib_krb_krb_get_cred
=no
18926 rm -f conftest.err conftest.
$ac_objext \
18927 conftest
$ac_exeext conftest.
$ac_ext
18928 LIBS
=$ac_check_lib_save_LIBS
18930 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18931 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18932 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18933 cat >>confdefs.h
<<_ACEOF
18934 #define HAVE_LIBKRB 1
18945 if test "${with_kerberos5+set}" = set; then
18947 for ac_header
in krb5.h
18949 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18951 echo "$as_me:$LINENO: checking for $ac_header" >&5
18952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18959 # Is the header compilable?
18960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18962 cat >conftest.
$ac_ext <<_ACEOF
18965 cat confdefs.h
>>conftest.
$ac_ext
18966 cat >>conftest.
$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 $ac_includes_default
18969 #include <$ac_header>
18971 rm -f conftest.
$ac_objext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18973 (eval $ac_compile) 2>conftest.er1
18975 grep -v '^ *+' conftest.er1
>conftest.err
18977 cat conftest.err
>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; } &&
18986 { ac_try
='test -s conftest.$ac_objext'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; }; then
18992 ac_header_compiler
=yes
18994 echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.
$ac_ext >&5
18997 ac_header_compiler
=no
18999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19001 echo "${ECHO_T}$ac_header_compiler" >&6
19003 # Is the header present?
19004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19006 cat >conftest.
$ac_ext <<_ACEOF
19009 cat confdefs.h
>>conftest.
$ac_ext
19010 cat >>conftest.
$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 #include <$ac_header>
19014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19017 grep -v '^ *+' conftest.er1
>conftest.err
19019 cat conftest.err
>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } >/dev
/null
; then
19022 if test -s conftest.err
; then
19023 ac_cpp_err
=$ac_c_preproc_warn_flag
19024 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19031 if test -z "$ac_cpp_err"; then
19032 ac_header_preproc
=yes
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.
$ac_ext >&5
19037 ac_header_preproc
=no
19039 rm -f conftest.err conftest.
$ac_ext
19040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19041 echo "${ECHO_T}$ac_header_preproc" >&6
19043 # So? What about this header?
19044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19050 ac_header_preproc
=yes
19053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19067 ## ------------------------------------------ ##
19068 ## Report this to the AC_PACKAGE_NAME lists. ##
19069 ## ------------------------------------------ ##
19072 sed "s/^/$as_me: WARNING: /" >&2
19075 echo "$as_me:$LINENO: checking for $ac_header" >&5
19076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 eval "$as_ac_Header=\$ac_header_preproc"
19082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19087 cat >>confdefs.h
<<_ACEOF
19088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19097 for ac_header
in des.h
19099 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19101 echo "$as_me:$LINENO: checking for $ac_header" >&5
19102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19109 # Is the header compilable?
19110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19112 cat >conftest.
$ac_ext <<_ACEOF
19115 cat confdefs.h
>>conftest.
$ac_ext
19116 cat >>conftest.
$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 $ac_includes_default
19119 #include <$ac_header>
19121 rm -f conftest.
$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123 (eval $ac_compile) 2>conftest.er1
19125 grep -v '^ *+' conftest.er1
>conftest.err
19127 cat conftest.err
>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; } &&
19136 { ac_try
='test -s conftest.$ac_objext'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_header_compiler
=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.
$ac_ext >&5
19147 ac_header_compiler
=no
19149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19151 echo "${ECHO_T}$ac_header_compiler" >&6
19153 # Is the header present?
19154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19156 cat >conftest.
$ac_ext <<_ACEOF
19159 cat confdefs.h
>>conftest.
$ac_ext
19160 cat >>conftest.
$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 #include <$ac_header>
19164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19165 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19167 grep -v '^ *+' conftest.er1
>conftest.err
19169 cat conftest.err
>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } >/dev
/null
; then
19172 if test -s conftest.err
; then
19173 ac_cpp_err
=$ac_c_preproc_warn_flag
19174 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19181 if test -z "$ac_cpp_err"; then
19182 ac_header_preproc
=yes
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.
$ac_ext >&5
19187 ac_header_preproc
=no
19189 rm -f conftest.err conftest.
$ac_ext
19190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19191 echo "${ECHO_T}$ac_header_preproc" >&6
19193 # So? What about this header?
19194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19200 ac_header_preproc
=yes
19203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19217 ## ------------------------------------------ ##
19218 ## Report this to the AC_PACKAGE_NAME lists. ##
19219 ## ------------------------------------------ ##
19222 sed "s/^/$as_me: WARNING: /" >&2
19225 echo "$as_me:$LINENO: checking for $ac_header" >&5
19226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 eval "$as_ac_Header=\$ac_header_preproc"
19232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19237 cat >>confdefs.h
<<_ACEOF
19238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19243 for ac_header
in kerberosIV
/des.h
19245 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19247 echo "$as_me:$LINENO: checking for $ac_header" >&5
19248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19255 # Is the header compilable?
19256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19258 cat >conftest.
$ac_ext <<_ACEOF
19261 cat confdefs.h
>>conftest.
$ac_ext
19262 cat >>conftest.
$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 $ac_includes_default
19265 #include <$ac_header>
19267 rm -f conftest.
$ac_objext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19269 (eval $ac_compile) 2>conftest.er1
19271 grep -v '^ *+' conftest.er1
>conftest.err
19273 cat conftest.err
>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try
='test -s conftest.$ac_objext'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_header_compiler
=yes
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.
$ac_ext >&5
19293 ac_header_compiler
=no
19295 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19297 echo "${ECHO_T}$ac_header_compiler" >&6
19299 # Is the header present?
19300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19302 cat >conftest.
$ac_ext <<_ACEOF
19305 cat confdefs.h
>>conftest.
$ac_ext
19306 cat >>conftest.
$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 #include <$ac_header>
19310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19311 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19313 grep -v '^ *+' conftest.er1
>conftest.err
19315 cat conftest.err
>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } >/dev
/null
; then
19318 if test -s conftest.err
; then
19319 ac_cpp_err
=$ac_c_preproc_warn_flag
19320 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19327 if test -z "$ac_cpp_err"; then
19328 ac_header_preproc
=yes
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.
$ac_ext >&5
19333 ac_header_preproc
=no
19335 rm -f conftest.err conftest.
$ac_ext
19336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19337 echo "${ECHO_T}$ac_header_preproc" >&6
19339 # So? What about this header?
19340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19346 ac_header_preproc
=yes
19349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19363 ## ------------------------------------------ ##
19364 ## Report this to the AC_PACKAGE_NAME lists. ##
19365 ## ------------------------------------------ ##
19368 sed "s/^/$as_me: WARNING: /" >&2
19371 echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 eval "$as_ac_Header=\$ac_header_preproc"
19378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19383 cat >>confdefs.h
<<_ACEOF
19384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19389 for ac_header
in kerberos
/des.h
19391 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19393 echo "$as_me:$LINENO: checking for $ac_header" >&5
19394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19401 # Is the header compilable?
19402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19404 cat >conftest.
$ac_ext <<_ACEOF
19407 cat confdefs.h
>>conftest.
$ac_ext
19408 cat >>conftest.
$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410 $ac_includes_default
19411 #include <$ac_header>
19413 rm -f conftest.
$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1
>conftest.err
19419 cat conftest.err
>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try
='test -s conftest.$ac_objext'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_header_compiler
=yes
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.
$ac_ext >&5
19439 ac_header_compiler
=no
19441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19443 echo "${ECHO_T}$ac_header_compiler" >&6
19445 # Is the header present?
19446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19448 cat >conftest.
$ac_ext <<_ACEOF
19451 cat confdefs.h
>>conftest.
$ac_ext
19452 cat >>conftest.
$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19454 #include <$ac_header>
19456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19457 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19459 grep -v '^ *+' conftest.er1
>conftest.err
19461 cat conftest.err
>&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } >/dev
/null
; then
19464 if test -s conftest.err
; then
19465 ac_cpp_err
=$ac_c_preproc_warn_flag
19466 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19473 if test -z "$ac_cpp_err"; then
19474 ac_header_preproc
=yes
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.
$ac_ext >&5
19479 ac_header_preproc
=no
19481 rm -f conftest.err conftest.
$ac_ext
19482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19483 echo "${ECHO_T}$ac_header_preproc" >&6
19485 # So? What about this header?
19486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19492 ac_header_preproc
=yes
19495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19509 ## ------------------------------------------ ##
19510 ## Report this to the AC_PACKAGE_NAME lists. ##
19511 ## ------------------------------------------ ##
19514 sed "s/^/$as_me: WARNING: /" >&2
19517 echo "$as_me:$LINENO: checking for $ac_header" >&5
19518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 eval "$as_ac_Header=\$ac_header_preproc"
19524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19529 cat >>confdefs.h
<<_ACEOF
19530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19546 for ac_header
in krb.h
19548 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19550 echo "$as_me:$LINENO: checking for $ac_header" >&5
19551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19558 # Is the header compilable?
19559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19561 cat >conftest.
$ac_ext <<_ACEOF
19564 cat confdefs.h
>>conftest.
$ac_ext
19565 cat >>conftest.
$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 $ac_includes_default
19568 #include <$ac_header>
19570 rm -f conftest.
$ac_objext
19571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19572 (eval $ac_compile) 2>conftest.er1
19574 grep -v '^ *+' conftest.er1
>conftest.err
19576 cat conftest.err
>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try
='test -s conftest.$ac_objext'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 ac_header_compiler
=yes
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.
$ac_ext >&5
19596 ac_header_compiler
=no
19598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19600 echo "${ECHO_T}$ac_header_compiler" >&6
19602 # Is the header present?
19603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19605 cat >conftest.
$ac_ext <<_ACEOF
19608 cat confdefs.h
>>conftest.
$ac_ext
19609 cat >>conftest.
$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 #include <$ac_header>
19613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19614 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19616 grep -v '^ *+' conftest.er1
>conftest.err
19618 cat conftest.err
>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } >/dev
/null
; then
19621 if test -s conftest.err
; then
19622 ac_cpp_err
=$ac_c_preproc_warn_flag
19623 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19630 if test -z "$ac_cpp_err"; then
19631 ac_header_preproc
=yes
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.
$ac_ext >&5
19636 ac_header_preproc
=no
19638 rm -f conftest.err conftest.
$ac_ext
19639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19640 echo "${ECHO_T}$ac_header_preproc" >&6
19642 # So? What about this header?
19643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19649 ac_header_preproc
=yes
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19666 ## ------------------------------------------ ##
19667 ## Report this to the AC_PACKAGE_NAME lists. ##
19668 ## ------------------------------------------ ##
19671 sed "s/^/$as_me: WARNING: /" >&2
19674 echo "$as_me:$LINENO: checking for $ac_header" >&5
19675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 eval "$as_ac_Header=\$ac_header_preproc"
19681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19686 cat >>confdefs.h
<<_ACEOF
19687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19692 for ac_header
in kerberosIV
/krb.h
19694 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19696 echo "$as_me:$LINENO: checking for $ac_header" >&5
19697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19704 # Is the header compilable?
19705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19707 cat >conftest.
$ac_ext <<_ACEOF
19710 cat confdefs.h
>>conftest.
$ac_ext
19711 cat >>conftest.
$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 $ac_includes_default
19714 #include <$ac_header>
19716 rm -f conftest.
$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19720 grep -v '^ *+' conftest.er1
>conftest.err
19722 cat conftest.err
>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try
='test -s conftest.$ac_objext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_header_compiler
=yes
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.
$ac_ext >&5
19742 ac_header_compiler
=no
19744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19746 echo "${ECHO_T}$ac_header_compiler" >&6
19748 # Is the header present?
19749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19751 cat >conftest.
$ac_ext <<_ACEOF
19754 cat confdefs.h
>>conftest.
$ac_ext
19755 cat >>conftest.
$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 #include <$ac_header>
19759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19760 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19762 grep -v '^ *+' conftest.er1
>conftest.err
19764 cat conftest.err
>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } >/dev
/null
; then
19767 if test -s conftest.err
; then
19768 ac_cpp_err
=$ac_c_preproc_warn_flag
19769 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19776 if test -z "$ac_cpp_err"; then
19777 ac_header_preproc
=yes
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.
$ac_ext >&5
19782 ac_header_preproc
=no
19784 rm -f conftest.err conftest.
$ac_ext
19785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19786 echo "${ECHO_T}$ac_header_preproc" >&6
19788 # So? What about this header?
19789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19795 ac_header_preproc
=yes
19798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19812 ## ------------------------------------------ ##
19813 ## Report this to the AC_PACKAGE_NAME lists. ##
19814 ## ------------------------------------------ ##
19817 sed "s/^/$as_me: WARNING: /" >&2
19820 echo "$as_me:$LINENO: checking for $ac_header" >&5
19821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 eval "$as_ac_Header=\$ac_header_preproc"
19827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19832 cat >>confdefs.h
<<_ACEOF
19833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19838 for ac_header
in kerberos
/krb.h
19840 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842 echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19850 # Is the header compilable?
19851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19853 cat >conftest.
$ac_ext <<_ACEOF
19856 cat confdefs.h
>>conftest.
$ac_ext
19857 cat >>conftest.
$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 $ac_includes_default
19860 #include <$ac_header>
19862 rm -f conftest.
$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19866 grep -v '^ *+' conftest.er1
>conftest.err
19868 cat conftest.err
>&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try
='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_header_compiler
=yes
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.
$ac_ext >&5
19888 ac_header_compiler
=no
19890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19892 echo "${ECHO_T}$ac_header_compiler" >&6
19894 # Is the header present?
19895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19897 cat >conftest.
$ac_ext <<_ACEOF
19900 cat confdefs.h
>>conftest.
$ac_ext
19901 cat >>conftest.
$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 #include <$ac_header>
19905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19906 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19908 grep -v '^ *+' conftest.er1
>conftest.err
19910 cat conftest.err
>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } >/dev
/null
; then
19913 if test -s conftest.err
; then
19914 ac_cpp_err
=$ac_c_preproc_warn_flag
19915 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19922 if test -z "$ac_cpp_err"; then
19923 ac_header_preproc
=yes
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.
$ac_ext >&5
19928 ac_header_preproc
=no
19930 rm -f conftest.err conftest.
$ac_ext
19931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19932 echo "${ECHO_T}$ac_header_preproc" >&6
19934 # So? What about this header?
19935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19941 ac_header_preproc
=yes
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19958 ## ------------------------------------------ ##
19959 ## Report this to the AC_PACKAGE_NAME lists. ##
19960 ## ------------------------------------------ ##
19963 sed "s/^/$as_me: WARNING: /" >&2
19966 echo "$as_me:$LINENO: checking for $ac_header" >&5
19967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 eval "$as_ac_Header=\$ac_header_preproc"
19973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19978 cat >>confdefs.h
<<_ACEOF
19979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19996 for ac_header
in com_err.h
19998 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20000 echo "$as_me:$LINENO: checking for $ac_header" >&5
20001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20008 # Is the header compilable?
20009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20011 cat >conftest.
$ac_ext <<_ACEOF
20014 cat confdefs.h
>>conftest.
$ac_ext
20015 cat >>conftest.
$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20017 $ac_includes_default
20018 #include <$ac_header>
20020 rm -f conftest.
$ac_objext
20021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022 (eval $ac_compile) 2>conftest.er1
20024 grep -v '^ *+' conftest.er1
>conftest.err
20026 cat conftest.err
>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try
='test -s conftest.$ac_objext'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20041 ac_header_compiler
=yes
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.
$ac_ext >&5
20046 ac_header_compiler
=no
20048 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20050 echo "${ECHO_T}$ac_header_compiler" >&6
20052 # Is the header present?
20053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20055 cat >conftest.
$ac_ext <<_ACEOF
20058 cat confdefs.h
>>conftest.
$ac_ext
20059 cat >>conftest.
$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 #include <$ac_header>
20063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20064 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20066 grep -v '^ *+' conftest.er1
>conftest.err
20068 cat conftest.err
>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } >/dev
/null
; then
20071 if test -s conftest.err
; then
20072 ac_cpp_err
=$ac_c_preproc_warn_flag
20073 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20080 if test -z "$ac_cpp_err"; then
20081 ac_header_preproc
=yes
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.
$ac_ext >&5
20086 ac_header_preproc
=no
20088 rm -f conftest.err conftest.
$ac_ext
20089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20090 echo "${ECHO_T}$ac_header_preproc" >&6
20092 # So? What about this header?
20093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20099 ac_header_preproc
=yes
20102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20116 ## ------------------------------------------ ##
20117 ## Report this to the AC_PACKAGE_NAME lists. ##
20118 ## ------------------------------------------ ##
20121 sed "s/^/$as_me: WARNING: /" >&2
20124 echo "$as_me:$LINENO: checking for $ac_header" >&5
20125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 eval "$as_ac_Header=\$ac_header_preproc"
20131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20136 cat >>confdefs.h
<<_ACEOF
20137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20146 # Solaris requires -lintl if you want strerror (which calls dgettext)
20147 # to return localized messages.
20149 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20150 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20151 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 ac_check_lib_save_LIBS
=$LIBS
20155 LIBS
="-lintl $LIBS"
20156 cat >conftest.
$ac_ext <<_ACEOF
20159 cat confdefs.h
>>conftest.
$ac_ext
20160 cat >>conftest.
$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20163 /* Override any gcc2 internal prototype to avoid an error. */
20167 /* We use char because int might match the return type of a gcc2
20168 builtin and then its argument prototype would still apply. */
20178 rm -f conftest.
$ac_objext conftest
$ac_exeext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20180 (eval $ac_link) 2>conftest.er1
20182 grep -v '^ *+' conftest.er1
>conftest.err
20184 cat conftest.err
>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; } &&
20193 { ac_try
='test -s conftest$ac_exeext'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 ac_cv_lib_intl_dgettext
=yes
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.
$ac_ext >&5
20204 ac_cv_lib_intl_dgettext
=no
20206 rm -f conftest.err conftest.
$ac_objext \
20207 conftest
$ac_exeext conftest.
$ac_ext
20208 LIBS
=$ac_check_lib_save_LIBS
20210 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20211 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20212 if test $ac_cv_lib_intl_dgettext = yes; then
20213 cat >>confdefs.h
<<_ACEOF
20214 #define HAVE_LIBINTL 1
20217 LIBS
="-lintl $LIBS"
20222 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20223 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20224 if test "${emacs_cv_localtime_cache+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 if test x
$ac_cv_func_tzset = xyes
; then
20228 if test "$cross_compiling" = yes; then
20229 # If we have tzset, assume the worst when cross-compiling.
20230 emacs_cv_localtime_cache
=yes
20232 cat >conftest.
$ac_ext <<_ACEOF
20235 cat confdefs.h
>>conftest.
$ac_ext
20236 cat >>conftest.
$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 extern char **environ;
20243 for (to = from = environ; (*to = *from); from++)
20244 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20247 char TZ_GMT0[] = "TZ=GMT0";
20248 char TZ_PST8[] = "TZ=PST8";
20251 time_t now = time ((time_t *) 0);
20252 int hour_GMT0, hour_unset;
20253 if (putenv (TZ_GMT0) != 0)
20255 hour_GMT0 = localtime (&now)->tm_hour;
20257 hour_unset = localtime (&now)->tm_hour;
20258 if (putenv (TZ_PST8) != 0)
20260 if (localtime (&now)->tm_hour == hour_GMT0)
20263 if (localtime (&now)->tm_hour != hour_unset)
20268 rm -f conftest
$ac_exeext
20269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 emacs_cv_localtime_cache
=no
20281 echo "$as_me: program exited with status $ac_status" >&5
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.
$ac_ext >&5
20285 ( exit $ac_status )
20286 emacs_cv_localtime_cache
=yes
20288 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20291 # If we lack tzset, report that localtime does not cache TZ,
20292 # since we can't invalidate the cache if we don't have tzset.
20293 emacs_cv_localtime_cache
=no
20296 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20297 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20298 if test $emacs_cv_localtime_cache = yes; then
20300 cat >>confdefs.h
<<\_ACEOF
20301 #define LOCALTIME_CACHE 1
20306 if test "x$HAVE_TIMEVAL" = xyes
; then
20308 for ac_func
in gettimeofday
20310 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20311 echo "$as_me:$LINENO: checking for $ac_func" >&5
20312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20313 if eval "test \"\${$as_ac_var+set}\" = set"; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 cat >conftest.
$ac_ext <<_ACEOF
20319 cat confdefs.h
>>conftest.
$ac_ext
20320 cat >>conftest.
$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20324 #define $ac_func innocuous_$ac_func
20326 /* System header to define __stub macros and hopefully few prototypes,
20327 which can conflict with char $ac_func (); below.
20328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20329 <limits.h> exists even on freestanding compilers. */
20332 # include <limits.h>
20334 # include <assert.h>
20339 /* Override any gcc2 internal prototype to avoid an error. */
20344 /* We use char because int might match the return type of a gcc2
20345 builtin and then its argument prototype would still apply. */
20347 /* The GNU C library defines this for functions which it implements
20348 to always fail with ENOSYS. Some functions are actually named
20349 something starting with __ and the normal name is an alias. */
20350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20353 char (*f) () = $ac_func;
20362 return f != $ac_func;
20367 rm -f conftest.
$ac_objext conftest
$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>conftest.er1
20371 grep -v '^ *+' conftest.er1
>conftest.err
20373 cat conftest.err
>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try
='test -s conftest$ac_exeext'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 eval "$as_ac_var=yes"
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.
$ac_ext >&5
20393 eval "$as_ac_var=no"
20395 rm -f conftest.err conftest.
$ac_objext \
20396 conftest
$ac_exeext conftest.
$ac_ext
20398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20400 if test `eval echo '${'$as_ac_var'}'` = yes; then
20401 cat >>confdefs.h
<<_ACEOF
20402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20408 if test $ac_cv_func_gettimeofday = yes; then
20409 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20410 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20411 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 cat >conftest.
$ac_ext <<_ACEOF
20417 cat confdefs.h
>>conftest.
$ac_ext
20418 cat >>conftest.
$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20421 #ifdef TIME_WITH_SYS_TIME
20422 #include <sys/time.h>
20425 #ifdef HAVE_SYS_TIME_H
20426 #include <sys/time.h>
20434 struct timeval time;
20435 gettimeofday (&time, 0);
20440 rm -f conftest.
$ac_objext
20441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20442 (eval $ac_compile) 2>conftest.er1
20444 grep -v '^ *+' conftest.er1
>conftest.err
20446 cat conftest.err
>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } &&
20449 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try
='test -s conftest.$ac_objext'
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 emacs_cv_gettimeofday_two_arguments
=yes
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.
$ac_ext >&5
20466 emacs_cv_gettimeofday_two_arguments
=no
20468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20470 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20471 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20472 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20474 cat >>confdefs.h
<<\_ACEOF
20475 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20482 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20483 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20484 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20485 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 cat >conftest.
$ac_ext <<_ACEOF
20491 cat confdefs.h
>>conftest.
$ac_ext
20492 cat >>conftest.
$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 #include <sys/types.h>
20495 #include <$ac_cv_struct_tm>
20501 static struct tm ac_aggr;
20502 if (ac_aggr.tm_zone)
20508 rm -f conftest.
$ac_objext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20510 (eval $ac_compile) 2>conftest.er1
20512 grep -v '^ *+' conftest.er1
>conftest.err
20514 cat conftest.err
>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } &&
20517 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; } &&
20523 { ac_try
='test -s conftest.$ac_objext'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 ac_cv_member_struct_tm_tm_zone
=yes
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.
$ac_ext >&5
20534 cat >conftest.
$ac_ext <<_ACEOF
20537 cat confdefs.h
>>conftest.
$ac_ext
20538 cat >>conftest.
$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 #include <sys/types.h>
20541 #include <$ac_cv_struct_tm>
20547 static struct tm ac_aggr;
20548 if (sizeof ac_aggr.tm_zone)
20554 rm -f conftest.
$ac_objext
20555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20556 (eval $ac_compile) 2>conftest.er1
20558 grep -v '^ *+' conftest.er1
>conftest.err
20560 cat conftest.err
>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } &&
20569 { ac_try
='test -s conftest.$ac_objext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ac_cv_member_struct_tm_tm_zone
=yes
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.
$ac_ext >&5
20580 ac_cv_member_struct_tm_tm_zone
=no
20582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20586 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20587 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20588 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20590 cat >>confdefs.h
<<_ACEOF
20591 #define HAVE_STRUCT_TM_TM_ZONE 1
20597 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20599 cat >>confdefs.h
<<\_ACEOF
20600 #define HAVE_TM_ZONE 1
20604 echo "$as_me:$LINENO: checking for tzname" >&5
20605 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20606 if test "${ac_cv_var_tzname+set}" = set; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20609 cat >conftest.
$ac_ext <<_ACEOF
20612 cat confdefs.h
>>conftest.
$ac_ext
20613 cat >>conftest.
$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 #ifndef tzname /* For SGI. */
20617 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20628 rm -f conftest.
$ac_objext conftest
$ac_exeext
20629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20630 (eval $ac_link) 2>conftest.er1
20632 grep -v '^ *+' conftest.er1
>conftest.err
20634 cat conftest.err
>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
20637 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try
='test -s conftest$ac_exeext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_cv_var_tzname
=yes
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.
$ac_ext >&5
20654 ac_cv_var_tzname
=no
20656 rm -f conftest.err conftest.
$ac_objext \
20657 conftest
$ac_exeext conftest.
$ac_ext
20659 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20660 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20661 if test $ac_cv_var_tzname = yes; then
20663 cat >>confdefs.h
<<\_ACEOF
20664 #define HAVE_TZNAME 1
20671 if test "$ac_cv_func_gettimeofday" = yes; then
20672 echo "$as_me:$LINENO: checking for struct timezone" >&5
20673 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20674 if test "${emacs_cv_struct_timezone+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 cat >conftest.
$ac_ext <<_ACEOF
20680 cat confdefs.h
>>conftest.
$ac_ext
20681 cat >>conftest.
$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 #include <sys/time.h>
20687 struct timezone tz;
20692 rm -f conftest.
$ac_objext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20694 (eval $ac_compile) 2>conftest.er1
20696 grep -v '^ *+' conftest.er1
>conftest.err
20698 cat conftest.err
>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
20701 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try
='test -s conftest.$ac_objext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 if test "$cross_compiling" = yes; then
20714 emacs_cv_struct_timezone
=yes
20716 cat >conftest.
$ac_ext <<_ACEOF
20719 cat confdefs.h
>>conftest.
$ac_ext
20720 cat >>conftest.
$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20723 #ifdef TIME_WITH_SYS_TIME
20724 #include <sys/time.h>
20727 #ifdef HAVE_SYS_TIME_H
20728 #include <sys/time.h>
20734 struct timeval time;
20735 struct timezone dummy;
20736 exit (gettimeofday (&time, &dummy));
20739 rm -f conftest
$ac_exeext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20741 (eval $ac_link) 2>&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 emacs_cv_struct_timezone
=yes
20752 echo "$as_me: program exited with status $ac_status" >&5
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.
$ac_ext >&5
20756 ( exit $ac_status )
20757 emacs_cv_struct_timezone
=no
20759 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.
$ac_ext >&5
20765 emacs_cv_struct_timezone
=no
20767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20769 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20770 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20774 echo "$as_me:$LINENO: checking for socket" >&5
20775 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20776 if test "${ac_cv_func_socket+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 cat >conftest.
$ac_ext <<_ACEOF
20782 cat confdefs.h
>>conftest.
$ac_ext
20783 cat >>conftest.
$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20787 #define socket innocuous_socket
20789 /* System header to define __stub macros and hopefully few prototypes,
20790 which can conflict with char socket (); below.
20791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20792 <limits.h> exists even on freestanding compilers. */
20795 # include <limits.h>
20797 # include <assert.h>
20802 /* Override any gcc2 internal prototype to avoid an error. */
20807 /* We use char because int might match the return type of a gcc2
20808 builtin and then its argument prototype would still apply. */
20810 /* The GNU C library defines this for functions which it implements
20811 to always fail with ENOSYS. Some functions are actually named
20812 something starting with __ and the normal name is an alias. */
20813 #if defined (__stub_socket) || defined (__stub___socket)
20816 char (*f) () = socket;
20825 return f != socket;
20830 rm -f conftest.
$ac_objext conftest
$ac_exeext
20831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20832 (eval $ac_link) 2>conftest.er1
20834 grep -v '^ *+' conftest.er1
>conftest.err
20836 cat conftest.err
>&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); } &&
20839 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; } &&
20845 { ac_try
='test -s conftest$ac_exeext'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 ac_cv_func_socket
=yes
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.
$ac_ext >&5
20856 ac_cv_func_socket
=no
20858 rm -f conftest.err conftest.
$ac_objext \
20859 conftest
$ac_exeext conftest.
$ac_ext
20861 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20862 echo "${ECHO_T}$ac_cv_func_socket" >&6
20863 if test $ac_cv_func_socket = yes; then
20869 if test $ok_so_far = yes; then
20870 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20871 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20872 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20873 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20877 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20879 # Is the header compilable?
20880 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20881 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20882 cat >conftest.
$ac_ext <<_ACEOF
20885 cat confdefs.h
>>conftest.
$ac_ext
20886 cat >>conftest.
$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 $ac_includes_default
20889 #include <netinet/in.h>
20891 rm -f conftest.
$ac_objext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20893 (eval $ac_compile) 2>conftest.er1
20895 grep -v '^ *+' conftest.er1
>conftest.err
20897 cat conftest.err
>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try
='test -s conftest.$ac_objext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_header_compiler
=yes
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.
$ac_ext >&5
20917 ac_header_compiler
=no
20919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20921 echo "${ECHO_T}$ac_header_compiler" >&6
20923 # Is the header present?
20924 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20925 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20926 cat >conftest.
$ac_ext <<_ACEOF
20929 cat confdefs.h
>>conftest.
$ac_ext
20930 cat >>conftest.
$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <netinet/in.h>
20934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20935 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20937 grep -v '^ *+' conftest.er1
>conftest.err
20939 cat conftest.err
>&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } >/dev
/null
; then
20942 if test -s conftest.err
; then
20943 ac_cpp_err
=$ac_c_preproc_warn_flag
20944 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20951 if test -z "$ac_cpp_err"; then
20952 ac_header_preproc
=yes
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.
$ac_ext >&5
20957 ac_header_preproc
=no
20959 rm -f conftest.err conftest.
$ac_ext
20960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20961 echo "${ECHO_T}$ac_header_preproc" >&6
20963 # So? What about this header?
20964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20967 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20969 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20970 ac_header_preproc
=yes
20973 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20974 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20976 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20978 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20979 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20980 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20981 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20982 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20983 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20984 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20987 ## ------------------------------------------ ##
20988 ## Report this to the AC_PACKAGE_NAME lists. ##
20989 ## ------------------------------------------ ##
20992 sed "s/^/$as_me: WARNING: /" >&2
20995 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20996 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20997 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
21000 ac_cv_header_netinet_in_h
=$ac_header_preproc
21002 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21003 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21006 if test $ac_cv_header_netinet_in_h = yes; then
21014 if test $ok_so_far = yes; then
21015 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21016 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21017 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21018 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21022 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21024 # Is the header compilable?
21025 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21026 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21027 cat >conftest.
$ac_ext <<_ACEOF
21030 cat confdefs.h
>>conftest.
$ac_ext
21031 cat >>conftest.
$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 $ac_includes_default
21034 #include <arpa/inet.h>
21036 rm -f conftest.
$ac_objext
21037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21038 (eval $ac_compile) 2>conftest.er1
21040 grep -v '^ *+' conftest.er1
>conftest.err
21042 cat conftest.err
>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
21045 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try
='test -s conftest.$ac_objext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_header_compiler
=yes
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.
$ac_ext >&5
21062 ac_header_compiler
=no
21064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21066 echo "${ECHO_T}$ac_header_compiler" >&6
21068 # Is the header present?
21069 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21070 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21071 cat >conftest.
$ac_ext <<_ACEOF
21074 cat confdefs.h
>>conftest.
$ac_ext
21075 cat >>conftest.
$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <arpa/inet.h>
21079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21082 grep -v '^ *+' conftest.er1
>conftest.err
21084 cat conftest.err
>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } >/dev
/null
; then
21087 if test -s conftest.err
; then
21088 ac_cpp_err
=$ac_c_preproc_warn_flag
21089 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21096 if test -z "$ac_cpp_err"; then
21097 ac_header_preproc
=yes
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.
$ac_ext >&5
21102 ac_header_preproc
=no
21104 rm -f conftest.err conftest.
$ac_ext
21105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21106 echo "${ECHO_T}$ac_header_preproc" >&6
21108 # So? What about this header?
21109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21111 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21112 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21113 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21114 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21115 ac_header_preproc
=yes
21118 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21119 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21121 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21123 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21125 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21127 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21128 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21129 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21132 ## ------------------------------------------ ##
21133 ## Report this to the AC_PACKAGE_NAME lists. ##
21134 ## ------------------------------------------ ##
21137 sed "s/^/$as_me: WARNING: /" >&2
21140 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21141 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21142 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21147 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21148 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21151 if test $ac_cv_header_arpa_inet_h = yes; then
21159 if test $ok_so_far = yes; then
21161 cat >>confdefs.h
<<\_ACEOF
21162 #define HAVE_INET_SOCKETS 1
21168 for ac_header
in sys
/ioctl.h
21170 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21172 echo "$as_me:$LINENO: checking for $ac_header" >&5
21173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21180 # Is the header compilable?
21181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21183 cat >conftest.
$ac_ext <<_ACEOF
21186 cat confdefs.h
>>conftest.
$ac_ext
21187 cat >>conftest.
$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 $ac_includes_default
21190 #include <$ac_header>
21192 rm -f conftest.
$ac_objext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194 (eval $ac_compile) 2>conftest.er1
21196 grep -v '^ *+' conftest.er1
>conftest.err
21198 cat conftest.err
>&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; } &&
21207 { ac_try
='test -s conftest.$ac_objext'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; }; then
21213 ac_header_compiler
=yes
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.
$ac_ext >&5
21218 ac_header_compiler
=no
21220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21222 echo "${ECHO_T}$ac_header_compiler" >&6
21224 # Is the header present?
21225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21227 cat >conftest.
$ac_ext <<_ACEOF
21230 cat confdefs.h
>>conftest.
$ac_ext
21231 cat >>conftest.
$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21233 #include <$ac_header>
21235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21236 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21238 grep -v '^ *+' conftest.er1
>conftest.err
21240 cat conftest.err
>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } >/dev
/null
; then
21243 if test -s conftest.err
; then
21244 ac_cpp_err
=$ac_c_preproc_warn_flag
21245 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21252 if test -z "$ac_cpp_err"; then
21253 ac_header_preproc
=yes
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.
$ac_ext >&5
21258 ac_header_preproc
=no
21260 rm -f conftest.err conftest.
$ac_ext
21261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21262 echo "${ECHO_T}$ac_header_preproc" >&6
21264 # So? What about this header?
21265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21271 ac_header_preproc
=yes
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21288 ## ------------------------------------------ ##
21289 ## Report this to the AC_PACKAGE_NAME lists. ##
21290 ## ------------------------------------------ ##
21293 sed "s/^/$as_me: WARNING: /" >&2
21296 echo "$as_me:$LINENO: checking for $ac_header" >&5
21297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 eval "$as_ac_Header=\$ac_header_preproc"
21303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21308 cat >>confdefs.h
<<_ACEOF
21309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21317 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21319 cat >>confdefs.h
<<\_ACEOF
21320 #define HAVE_AIX_SMT_EXP 1
21325 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21326 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21327 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21328 echo "$as_me:$LINENO: result: yes" >&5
21329 echo "${ECHO_T}yes" >&6
21331 cat >>confdefs.h
<<\_ACEOF
21332 #define HAVE_DEV_PTMX 1
21336 echo "$as_me:$LINENO: result: no" >&5
21337 echo "${ECHO_T}no" >&6
21340 echo "$as_me:$LINENO: checking for pid_t" >&5
21341 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21342 if test "${ac_cv_type_pid_t+set}" = set; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 cat >conftest.
$ac_ext <<_ACEOF
21348 cat confdefs.h
>>conftest.
$ac_ext
21349 cat >>conftest.
$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 $ac_includes_default
21357 if (sizeof (pid_t))
21363 rm -f conftest.
$ac_objext
21364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21365 (eval $ac_compile) 2>conftest.er1
21367 grep -v '^ *+' conftest.er1
>conftest.err
21369 cat conftest.err
>&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } &&
21372 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; } &&
21378 { ac_try
='test -s conftest.$ac_objext'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; }; then
21384 ac_cv_type_pid_t
=yes
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.
$ac_ext >&5
21389 ac_cv_type_pid_t
=no
21391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21393 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21394 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21395 if test $ac_cv_type_pid_t = yes; then
21399 cat >>confdefs.h
<<_ACEOF
21407 for ac_header
in unistd.h vfork.h
21409 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21411 echo "$as_me:$LINENO: checking for $ac_header" >&5
21412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21419 # Is the header compilable?
21420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21422 cat >conftest.
$ac_ext <<_ACEOF
21425 cat confdefs.h
>>conftest.
$ac_ext
21426 cat >>conftest.
$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 $ac_includes_default
21429 #include <$ac_header>
21431 rm -f conftest.
$ac_objext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21433 (eval $ac_compile) 2>conftest.er1
21435 grep -v '^ *+' conftest.er1
>conftest.err
21437 cat conftest.err
>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
21440 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; } &&
21446 { ac_try
='test -s conftest.$ac_objext'
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448 (eval $ac_try) 2>&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; }; then
21452 ac_header_compiler
=yes
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.
$ac_ext >&5
21457 ac_header_compiler
=no
21459 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21461 echo "${ECHO_T}$ac_header_compiler" >&6
21463 # Is the header present?
21464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21466 cat >conftest.
$ac_ext <<_ACEOF
21469 cat confdefs.h
>>conftest.
$ac_ext
21470 cat >>conftest.
$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <$ac_header>
21474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21475 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21477 grep -v '^ *+' conftest.er1
>conftest.err
21479 cat conftest.err
>&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } >/dev
/null
; then
21482 if test -s conftest.err
; then
21483 ac_cpp_err
=$ac_c_preproc_warn_flag
21484 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21491 if test -z "$ac_cpp_err"; then
21492 ac_header_preproc
=yes
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.
$ac_ext >&5
21497 ac_header_preproc
=no
21499 rm -f conftest.err conftest.
$ac_ext
21500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21501 echo "${ECHO_T}$ac_header_preproc" >&6
21503 # So? What about this header?
21504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21510 ac_header_preproc
=yes
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21527 ## ------------------------------------------ ##
21528 ## Report this to the AC_PACKAGE_NAME lists. ##
21529 ## ------------------------------------------ ##
21532 sed "s/^/$as_me: WARNING: /" >&2
21535 echo "$as_me:$LINENO: checking for $ac_header" >&5
21536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 eval "$as_ac_Header=\$ac_header_preproc"
21542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21547 cat >>confdefs.h
<<_ACEOF
21548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21557 for ac_func
in fork vfork
21559 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560 echo "$as_me:$LINENO: checking for $ac_func" >&5
21561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21562 if eval "test \"\${$as_ac_var+set}\" = set"; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 cat >conftest.
$ac_ext <<_ACEOF
21568 cat confdefs.h
>>conftest.
$ac_ext
21569 cat >>conftest.
$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21573 #define $ac_func innocuous_$ac_func
21575 /* System header to define __stub macros and hopefully few prototypes,
21576 which can conflict with char $ac_func (); below.
21577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21578 <limits.h> exists even on freestanding compilers. */
21581 # include <limits.h>
21583 # include <assert.h>
21588 /* Override any gcc2 internal prototype to avoid an error. */
21593 /* We use char because int might match the return type of a gcc2
21594 builtin and then its argument prototype would still apply. */
21596 /* The GNU C library defines this for functions which it implements
21597 to always fail with ENOSYS. Some functions are actually named
21598 something starting with __ and the normal name is an alias. */
21599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21602 char (*f) () = $ac_func;
21611 return f != $ac_func;
21616 rm -f conftest.
$ac_objext conftest
$ac_exeext
21617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21618 (eval $ac_link) 2>conftest.er1
21620 grep -v '^ *+' conftest.er1
>conftest.err
21622 cat conftest.err
>&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } &&
21625 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; } &&
21631 { ac_try
='test -s conftest$ac_exeext'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21637 eval "$as_ac_var=yes"
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.
$ac_ext >&5
21642 eval "$as_ac_var=no"
21644 rm -f conftest.err conftest.
$ac_objext \
21645 conftest
$ac_exeext conftest.
$ac_ext
21647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21649 if test `eval echo '${'$as_ac_var'}'` = yes; then
21650 cat >>confdefs.h
<<_ACEOF
21651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21657 if test "x$ac_cv_func_fork" = xyes
; then
21658 echo "$as_me:$LINENO: checking for working fork" >&5
21659 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21660 if test "${ac_cv_func_fork_works+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 if test "$cross_compiling" = yes; then
21664 ac_cv_func_fork_works
=cross
21666 cat >conftest.
$ac_ext <<_ACEOF
21667 /* By Ruediger Kuhlmann. */
21668 #include <sys/types.h>
21670 # include <unistd.h>
21672 /* Some systems only have a dummy stub for fork() */
21680 rm -f conftest
$ac_exeext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682 (eval $ac_link) 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_cv_func_fork_works
=yes
21693 echo "$as_me: program exited with status $ac_status" >&5
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.
$ac_ext >&5
21697 ( exit $ac_status )
21698 ac_cv_func_fork_works
=no
21700 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21703 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21704 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21707 ac_cv_func_fork_works
=$ac_cv_func_fork
21709 if test "x$ac_cv_func_fork_works" = xcross
; then
21711 *-*-amigaos* |
*-*-msdosdjgpp*)
21712 # Override, as these systems have only a dummy fork() stub
21713 ac_cv_func_fork_works
=no
21716 ac_cv_func_fork_works
=yes
21719 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21720 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21722 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21723 if test "x$ac_cv_func_vfork" = xyes
; then
21724 echo "$as_me:$LINENO: checking for working vfork" >&5
21725 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21726 if test "${ac_cv_func_vfork_works+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 if test "$cross_compiling" = yes; then
21730 ac_cv_func_vfork_works
=cross
21732 cat >conftest.
$ac_ext <<_ACEOF
21735 cat confdefs.h
>>conftest.
$ac_ext
21736 cat >>conftest.
$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738 /* Thanks to Paul Eggert for this test. */
21740 #include <stdlib.h>
21741 #include <sys/types.h>
21742 #include <sys/stat.h>
21743 #include <sys/wait.h>
21745 # include <unistd.h>
21748 # include <vfork.h>
21750 /* On some sparc systems, changes by the child to local and incoming
21751 argument registers are propagated back to the parent. The compiler
21752 is told about this with #include <vfork.h>, but some compilers
21753 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21754 static variable whose address is put into a register that is
21755 clobbered by the vfork. */
21758 sparc_address_test (int arg)
21760 sparc_address_test (arg) int arg;
21763 static pid_t child;
21781 pid_t parent = getpid ();
21784 sparc_address_test (0);
21789 /* Here is another test for sparc vfork register problems. This
21790 test uses lots of local variables, at least as many local
21791 variables as main has allocated so far including compiler
21792 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21793 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21794 reuse the register of parent for one of the local variables,
21795 since it will think that parent can't possibly be used any more
21796 in this routine. Assigning to the local variable will thus
21797 munge parent in the parent process. */
21799 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21800 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21801 /* Convince the compiler that p..p7 are live; otherwise, it might
21802 use the same hardware register for all 8 local variables. */
21803 if (p != p1 || p != p2 || p != p3 || p != p4
21804 || p != p5 || p != p6 || p != p7)
21807 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21808 from child file descriptors. If the child closes a descriptor
21809 before it execs or exits, this munges the parent's descriptor
21810 as well. Test for this by closing stdout in the child. */
21811 _exit(close(fileno(stdout)) != 0);
21816 while (wait(&status) != child)
21819 /* Was there some problem with vforking? */
21822 /* Did the child fail? (This shouldn't happen.) */
21825 /* Did the vfork/compiler bug occur? */
21826 || parent != getpid()
21828 /* Did the file descriptor bug occur? */
21829 || fstat(fileno(stdout), &st) != 0
21834 rm -f conftest
$ac_exeext
21835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21836 (eval $ac_link) 2>&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 ac_cv_func_vfork_works
=yes
21847 echo "$as_me: program exited with status $ac_status" >&5
21848 echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.
$ac_ext >&5
21851 ( exit $ac_status )
21852 ac_cv_func_vfork_works
=no
21854 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21857 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21858 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21861 if test "x$ac_cv_func_fork_works" = xcross
; then
21862 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21863 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21864 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21867 if test "x$ac_cv_func_vfork_works" = xyes
; then
21869 cat >>confdefs.h
<<\_ACEOF
21870 #define HAVE_WORKING_VFORK 1
21875 cat >>confdefs.h
<<\_ACEOF
21880 if test "x$ac_cv_func_fork_works" = xyes
; then
21882 cat >>confdefs.h
<<\_ACEOF
21883 #define HAVE_WORKING_FORK 1
21889 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21890 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21891 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21894 cat >conftest.
$ac_ext <<_ACEOF
21897 cat confdefs.h
>>conftest.
$ac_ext
21898 cat >>conftest.
$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21900 #include <langinfo.h>
21904 char* cs = nl_langinfo(CODESET);
21909 rm -f conftest.
$ac_objext conftest
$ac_exeext
21910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21911 (eval $ac_link) 2>conftest.er1
21913 grep -v '^ *+' conftest.er1
>conftest.err
21915 cat conftest.err
>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } &&
21918 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; } &&
21924 { ac_try
='test -s conftest$ac_exeext'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21930 emacs_cv_langinfo_codeset
=yes
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.
$ac_ext >&5
21935 emacs_cv_langinfo_codeset
=no
21937 rm -f conftest.err conftest.
$ac_objext \
21938 conftest
$ac_exeext conftest.
$ac_ext
21941 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21942 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21943 if test $emacs_cv_langinfo_codeset = yes; then
21945 cat >>confdefs.h
<<\_ACEOF
21946 #define HAVE_LANGINFO_CODESET 1
21951 echo "$as_me:$LINENO: checking for size_t" >&5
21952 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21953 if test "${ac_cv_type_size_t+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 cat >conftest.
$ac_ext <<_ACEOF
21959 cat confdefs.h
>>conftest.
$ac_ext
21960 cat >>conftest.
$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 $ac_includes_default
21968 if (sizeof (size_t))
21974 rm -f conftest.
$ac_objext
21975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21976 (eval $ac_compile) 2>conftest.er1
21978 grep -v '^ *+' conftest.er1
>conftest.err
21980 cat conftest.err
>&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
21983 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } &&
21989 { ac_try
='test -s conftest.$ac_objext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ac_cv_type_size_t
=yes
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.
$ac_ext >&5
22000 ac_cv_type_size_t
=no
22002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22004 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22005 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22006 if test $ac_cv_type_size_t = yes; then
22008 cat >>confdefs.h
<<_ACEOF
22009 #define HAVE_SIZE_T 1
22016 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22017 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22018 if test "${ac_cv_type_mbstate_t+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 cat >conftest.
$ac_ext <<_ACEOF
22024 cat confdefs.h
>>conftest.
$ac_ext
22025 cat >>conftest.
$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 $ac_includes_default
22028 # include <wchar.h>
22032 mbstate_t x; return sizeof x;
22037 rm -f conftest.
$ac_objext
22038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22039 (eval $ac_compile) 2>conftest.er1
22041 grep -v '^ *+' conftest.er1
>conftest.err
22043 cat conftest.err
>&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
22046 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try
='test -s conftest.$ac_objext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 ac_cv_type_mbstate_t
=yes
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.
$ac_ext >&5
22063 ac_cv_type_mbstate_t
=no
22065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22067 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22068 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22069 if test $ac_cv_type_mbstate_t = yes; then
22071 cat >>confdefs.h
<<\_ACEOF
22072 #define HAVE_MBSTATE_T 1
22077 cat >>confdefs.h
<<\_ACEOF
22078 #define mbstate_t int
22083 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22084 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22085 if test "${emacs_cv_c_restrict+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 cat >conftest.
$ac_ext <<_ACEOF
22091 cat confdefs.h
>>conftest.
$ac_ext
22092 cat >>conftest.
$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 void fred (int *restrict x);
22103 rm -f conftest.
$ac_objext
22104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22105 (eval $ac_compile) 2>conftest.er1
22107 grep -v '^ *+' conftest.er1
>conftest.err
22109 cat conftest.err
>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; } &&
22118 { ac_try
='test -s conftest.$ac_objext'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
22124 emacs_cv_c_restrict
=yes
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.
$ac_ext >&5
22129 cat >conftest.
$ac_ext <<_ACEOF
22132 cat confdefs.h
>>conftest.
$ac_ext
22133 cat >>conftest.
$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22135 void fred (int *__restrict x);
22144 rm -f conftest.
$ac_objext
22145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22146 (eval $ac_compile) 2>conftest.er1
22148 grep -v '^ *+' conftest.er1
>conftest.err
22150 cat conftest.err
>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } &&
22153 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; } &&
22159 { ac_try
='test -s conftest.$ac_objext'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; }; then
22165 emacs_cv_c_restrict
=__restrict
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.
$ac_ext >&5
22170 emacs_cv_c_restrict
=no
22172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22176 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22177 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22178 case "$emacs_cv_c_restrict" in
22179 yes) emacs_restrict
=restrict
;;
22180 no
) emacs_restrict
="";;
22181 *) emacs_restrict
="$emacs_cv_c_restrict";;
22183 if test "$emacs_restrict" != __restrict
; then
22185 cat >>confdefs.h
<<_ACEOF
22186 #define __restrict $emacs_restrict
22191 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22192 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22193 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 cat >conftest.
$ac_ext <<_ACEOF
22199 cat confdefs.h
>>conftest.
$ac_ext
22200 cat >>conftest.
$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 void fred (int x[__restrict]);
22211 rm -f conftest.
$ac_objext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213 (eval $ac_compile) 2>conftest.er1
22215 grep -v '^ *+' conftest.er1
>conftest.err
22217 cat conftest.err
>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } &&
22220 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; } &&
22226 { ac_try
='test -s conftest.$ac_objext'
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 emacs_cv_c_restrict_arr
=yes
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.
$ac_ext >&5
22237 emacs_cv_c_restrict_arr
=no
22239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22241 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22242 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22243 if test "$emacs_cv_c_restrict_arr" = yes; then
22245 cat >>confdefs.h
<<\_ACEOF
22246 #define __restrict_arr __restrict
22253 # Set up the CFLAGS for real compilation, so we can substitute it.
22254 CFLAGS
="$REAL_CFLAGS"
22255 CPPFLAGS
="$REAL_CPPFLAGS"
22257 #### Find out which version of Emacs this is.
22258 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22259 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22260 if test x
"${version}" = x
; then
22261 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22262 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22263 { (exit 1); exit 1; }; }
22266 ### Specify what sort of things we'll be editing into Makefile and config.h.
22267 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22303 cat >>confdefs.h
<<_ACEOF
22304 #define EMACS_CONFIGURATION "${canonical}"
22308 cat >>confdefs.h
<<_ACEOF
22309 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22313 cat >>confdefs.h
<<_ACEOF
22314 #define config_machfile "${machfile}"
22318 cat >>confdefs.h
<<_ACEOF
22319 #define config_opsysfile "${opsysfile}"
22323 cat >>confdefs.h
<<_ACEOF
22324 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22328 cat >>confdefs.h
<<_ACEOF
22329 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22333 cat >>confdefs.h
<<_ACEOF
22334 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22338 cat >>confdefs.h
<<_ACEOF
22339 #define UNEXEC_SRC ${UNEXEC_SRC}
22343 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22345 cat >>confdefs.h
<<\_ACEOF
22346 #define HAVE_X_WINDOWS 1
22350 if test "${USE_X_TOOLKIT}" != "none" ; then
22352 cat >>confdefs.h
<<\_ACEOF
22353 #define USE_X_TOOLKIT 1
22357 if test "${HAVE_X11}" = "yes" ; then
22359 cat >>confdefs.h
<<\_ACEOF
22364 if test "${HAVE_XFREE386}" = "yes" ; then
22366 cat >>confdefs.h
<<\_ACEOF
22367 #define HAVE_XFREE386 1
22371 if test "${HAVE_MENUS}" = "yes" ; then
22373 cat >>confdefs.h
<<\_ACEOF
22374 #define HAVE_MENUS 1
22378 if test "${GNU_MALLOC}" = "yes" ; then
22380 cat >>confdefs.h
<<\_ACEOF
22381 #define GNU_MALLOC 1
22385 if test "${REL_ALLOC}" = "yes" ; then
22387 cat >>confdefs.h
<<\_ACEOF
22388 #define REL_ALLOC 1
22397 #### Report on what we decided to do.
22398 #### Report GTK as a toolkit, even if it doesn't use Xt.
22399 #### It makes printing result more understandable as using GTK sets
22400 #### toolkit_scroll_bars to yes by default.
22401 if test "${HAVE_GTK}" = "yes"; then
22406 Configured for \`${canonical}'.
22408 Where should the build process find the source code? ${srcdir}
22409 What operating system and machine description files should Emacs use?
22410 \`${opsysfile}' and \`${machfile}'
22411 What compiler should emacs be built with? ${CC} ${CFLAGS}
22412 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22413 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22414 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22415 What window system should Emacs use? ${window_system}
22416 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22418 if test -n "${x_includes}"; then
22419 echo " Where do we find X Windows header files? ${x_includes}"
22421 echo " Where do we find X Windows header files? Standard dirs"
22423 if test -n "${x_libraries}"; then
22424 echo " Where do we find X Windows libraries? ${x_libraries}"
22426 echo " Where do we find X Windows libraries? Standard dirs"
22429 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22430 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22431 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22432 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22433 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22434 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22435 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22438 if test $USE_XASSERTS = yes; then
22439 echo " Compiling with asserts turned on."
22440 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22446 # Remove any trailing slashes in these variables.
22447 test "${prefix}" != NONE
&&
22448 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22449 test "${exec_prefix}" != NONE
&&
22450 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22452 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22453 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22454 ## from Makefile.c can correctly provide the arg `-traditional' to the
22457 cat >conftest.
$ac_ext <<_ACEOF
22460 cat confdefs.h
>>conftest.
$ac_ext
22461 cat >>conftest.
$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22466 $EGREP "yes..yes" >/dev
/null
2>&1; then
22467 CPP_NEED_TRADITIONAL
=no
22469 CPP_NEED_TRADITIONAL
=yes
22474 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"
22475 ac_config_commands
="$ac_config_commands default"
22476 cat >confcache
<<\_ACEOF
22477 # This file is a shell script that caches the results of configure
22478 # tests run on this system so they can be shared between configure
22479 # scripts and configure runs, see configure's option --config-cache.
22480 # It is not useful on other systems. If it contains results you don't
22481 # want to keep, you may remove or edit it.
22483 # config.status only pays attention to the cache file if you give it
22484 # the --recheck option to rerun configure.
22486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22488 # following values.
22492 # The following way of writing the cache mishandles newlines in values,
22493 # but we know of no workaround that is simple, portable, and efficient.
22494 # So, don't put newlines in cache variables' values.
22495 # Ultrix sh set writes to stderr and can't be redirected directly,
22496 # and sets the high bit in the cache file unless we assign to the vars.
22499 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22501 # `set' does not quote correctly, so add quotes (double-quote
22502 # substitution turns \\\\ into \\, and sed turns \\ into \).
22505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22508 # `set' quotes correctly as required by POSIX, so do not add quotes.
22510 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22517 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22519 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22521 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22522 if test -w $cache_file; then
22523 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22524 cat confcache
>$cache_file
22526 echo "not updating unwritable cache $cache_file"
22531 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22532 # Let make expand exec_prefix.
22533 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22535 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22536 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22537 # trailing colons and then remove the whole line if VPATH becomes empty
22538 # (actually we leave an empty line to preserve line numbers).
22539 if test "x$srcdir" = x.
; then
22540 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22541 s/:*\$(srcdir):*/:/;
22542 s/:*\${srcdir}:*/:/;
22544 s/^\([^=]*=[ ]*\):*/\1/;
22550 DEFS
=-DHAVE_CONFIG_H
22554 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22555 # 1. Remove the extension, and $U if already installed.
22556 ac_i
=`echo "$ac_i" |
22557 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22559 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22560 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22562 LIBOBJS
=$ac_libobjs
22564 LTLIBOBJS
=$ac_ltlibobjs
22568 : ${CONFIG_STATUS=./config.status}
22569 ac_clean_files_save
=$ac_clean_files
22570 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22571 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22572 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22573 cat >$CONFIG_STATUS <<_ACEOF
22575 # Generated by $as_me.
22576 # Run this file to recreate the current configuration.
22577 # Compiler output produced by configure, useful for debugging
22578 # configure, is in config.log if it exists.
22581 ac_cs_recheck=false
22583 SHELL=\${CONFIG_SHELL-$SHELL}
22586 cat >>$CONFIG_STATUS <<\_ACEOF
22587 ## --------------------- ##
22588 ## M4sh Initialization. ##
22589 ## --------------------- ##
22591 # Be Bourne compatible
22592 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22596 # is contrary to our usage. Disable this feature.
22597 alias -g '${1+"$@"}'='"$@"'
22598 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22601 DUALCASE
=1; export DUALCASE
# for MKS sh
22603 # Support unset when possible.
22604 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22611 # Work around bugs in pre-3.0 UWIN ksh.
22612 $as_unset ENV MAIL MAILPATH
22619 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22620 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22621 LC_TELEPHONE LC_TIME
22623 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22624 eval $as_var=C
; export $as_var
22630 # Required to use basename.
22631 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22637 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22638 as_basename
=basename
22644 # Name of the executable.
22645 as_me
=`$as_basename "$0" ||
22646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22647 X"$0" : 'X\(//\)$' \| \
22648 X"$0" : 'X\(/\)$' \| \
22649 . : '\(.\)' 2>/dev/null ||
22651 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22652 /^X\/\(\/\/\)$/{ s//\1/; q; }
22653 /^X\/\(\/\).*/{ s//\1/; q; }
22657 # PATH needs CR, and LINENO needs CR and PATH.
22658 # Avoid depending upon Character Ranges.
22659 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22660 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22661 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22662 as_cr_digits
='0123456789'
22663 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22665 # The user is always right.
22666 if test "${PATH_SEPARATOR+set}" != set; then
22667 echo "#! /bin/sh" >conf$$.sh
22668 echo "exit 0" >>conf$$.sh
22670 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22679 as_lineno_1
=$LINENO
22680 as_lineno_2
=$LINENO
22681 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22682 test "x$as_lineno_1" != "x$as_lineno_2" &&
22683 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22684 # Find who we are. Look in the path if we contain no path at all
22687 *[\\/]* ) as_myself
=$0 ;;
22688 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22689 for as_dir
in $PATH
22692 test -z "$as_dir" && as_dir
=.
22693 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22698 # We did not find ourselves, most probably we were run as `sh COMMAND'
22699 # in which case we are not to be found in the path.
22700 if test "x$as_myself" = x
; then
22703 if test ! -f "$as_myself"; then
22704 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22705 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22706 { (exit 1); exit 1; }; }
22708 case $CONFIG_SHELL in
22710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22711 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22714 test -z "$as_dir" && as_dir
=.
22715 for as_base
in sh bash ksh sh5
; do
22718 if ("$as_dir/$as_base" -c '
22719 as_lineno_1=$LINENO
22720 as_lineno_2=$LINENO
22721 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22722 test "x$as_lineno_1" != "x$as_lineno_2" &&
22723 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22724 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22725 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22726 CONFIG_SHELL
=$as_dir/$as_base
22727 export CONFIG_SHELL
22728 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22737 # uniformly replaced by the line number. The first 'sed' inserts a
22738 # line-number line before each line; the second 'sed' does the real
22739 # work. The second script uses 'N' to pair each line-number line
22740 # with the numbered line, and appends trailing '-' during
22741 # substitution so that $LINENO is not a special case at line end.
22742 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22743 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22744 sed '=' <$as_myself |
22749 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22752 s,^['$as_cr_digits']*\n,,
22753 ' >$as_me.lineno
&&
22754 chmod +x
$as_me.lineno ||
22755 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22756 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22757 { (exit 1); exit 1; }; }
22759 # Don't try to exec as it changes $[0], causing all sort of problems
22760 # (the dirname of $[0] is not the place where we might find the
22761 # original and so on. Autoconf is especially sensible to this).
22763 # Exit status is that of the last command.
22768 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22769 *c
*,-n*) ECHO_N
= ECHO_C
='
22771 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22772 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22775 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22781 rm -f conf$$ conf$$.exe conf$$.
file
22783 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22784 # We could just check for DJGPP; but this test a) works b) is more generic
22785 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22786 if test -f conf$$.exe
; then
22787 # Don't use ln at all; we don't have any links
22792 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22797 rm -f conf$$ conf$$.exe conf$$.
file
22799 if mkdir
-p .
2>/dev
/null
; then
22802 test -d .
/-p && rmdir .
/-p
22806 as_executable_p
="test -f"
22808 # Sed expression to map a string onto a valid CPP name.
22809 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22811 # Sed expression to map a string onto a valid variable name.
22812 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22816 # We need space, tab and new line, in precisely that order.
22826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22827 # report actual input values of CONFIG_FILES etc. instead of their
22828 # values after options handling. Logging --version etc. is OK.
22832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22833 ## Running $as_me. ##
22838 This file was extended by $as_me, which was
22839 generated by GNU Autoconf 2.59. Invocation command line was
22841 CONFIG_FILES = $CONFIG_FILES
22842 CONFIG_HEADERS = $CONFIG_HEADERS
22843 CONFIG_LINKS = $CONFIG_LINKS
22844 CONFIG_COMMANDS = $CONFIG_COMMANDS
22848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22852 # Files that config.status was made for.
22853 if test -n "$ac_config_files"; then
22854 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22857 if test -n "$ac_config_headers"; then
22858 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22861 if test -n "$ac_config_links"; then
22862 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22865 if test -n "$ac_config_commands"; then
22866 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22869 cat >>$CONFIG_STATUS <<\_ACEOF
22872 \`$as_me' instantiates files from templates according to the
22873 current configuration.
22875 Usage: $0 [OPTIONS] [FILE]...
22877 -h, --help print this help, then exit
22878 -V, --version print version number, then exit
22879 -q, --quiet do not print progress messages
22880 -d, --debug don't remove temporary files
22881 --recheck update $as_me by reconfiguring in the same conditions
22882 --file=FILE[:TEMPLATE]
22883 instantiate the configuration file FILE
22884 --header=FILE[:TEMPLATE]
22885 instantiate the configuration header FILE
22887 Configuration files:
22890 Configuration headers:
22893 Configuration commands:
22896 Report bugs to <bug-autoconf@gnu.org>."
22899 cat >>$CONFIG_STATUS <<_ACEOF
22902 configured by $0, generated by GNU Autoconf 2.59,
22903 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22905 Copyright (C) 2003 Free Software Foundation, Inc.
22906 This config.status script is free software; the Free Software Foundation
22907 gives unlimited permission to copy, distribute and modify it."
22912 cat >>$CONFIG_STATUS <<\_ACEOF
22913 # If no file are specified by the user, then we need to provide default
22914 # value. By we need to know if files were specified by the user.
22920 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22921 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22929 *) # This is not an option, so the user has probably given explicit
22932 ac_need_defaults
=false
;;
22936 # Handling of the options.
22938 cat >>$CONFIG_STATUS <<\_ACEOF
22939 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22941 --version |
--vers* |
-V )
22942 echo "$ac_cs_version"; exit 0 ;;
22944 # Conflict between --help and --header
22945 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22946 Try \`$0 --help' for more information." >&5
22947 echo "$as_me: error: ambiguous option: $1
22948 Try \`$0 --help' for more information." >&2;}
22949 { (exit 1); exit 1; }; };;
22950 --help |
--hel |
-h )
22951 echo "$ac_cs_usage"; exit 0 ;;
22952 --debug |
--d* |
-d )
22954 --file |
--fil |
--fi |
--f )
22956 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22957 ac_need_defaults
=false
;;
22958 --header |
--heade |
--head |
--hea )
22960 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22961 ac_need_defaults
=false
;;
22962 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22963 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22966 # This is an error.
22967 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22968 Try \`$0 --help' for more information." >&5
22969 echo "$as_me: error: unrecognized option: $1
22970 Try \`$0 --help' for more information." >&2;}
22971 { (exit 1); exit 1; }; } ;;
22973 *) ac_config_targets
="$ac_config_targets $1" ;;
22979 ac_configure_extra_args
=
22981 if $ac_cs_silent; then
22983 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22987 cat >>$CONFIG_STATUS <<_ACEOF
22988 if \$ac_cs_recheck; then
22989 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22990 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22995 cat >>$CONFIG_STATUS <<_ACEOF
22997 # INIT-COMMANDS section.
23000 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23006 cat >>$CONFIG_STATUS <<\_ACEOF
23007 for ac_config_target
in $ac_config_targets
23009 case "$ac_config_target" in
23010 # Handling of arguments.
23011 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23012 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23013 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23014 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23015 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23016 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23017 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23018 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23019 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23020 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23021 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23022 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23023 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23024 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23025 { (exit 1); exit 1; }; };;
23029 # If the user did not use the arguments to specify the items to instantiate,
23030 # then the envvar interface is used. Set only those that are not.
23031 # We use the long form for the default assignment because of an extremely
23032 # bizarre bug on SunOS 4.1.3.
23033 if $ac_need_defaults; then
23034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23035 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23036 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23039 # Have a temporary directory for convenience. Make it in the build tree
23040 # simply because there is no reason to put it here, and in addition,
23041 # creating and moving files from /tmp can sometimes cause problems.
23042 # Create a temporary directory, and hook for its removal unless debugging.
23045 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23046 trap '{ (exit 1); exit 1; }' 1 2 13 15
23049 # Create a (secure) tmp directory for tmp files.
23052 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23053 test -n "$tmp" && test -d "$tmp"
23056 tmp
=.
/confstat$$
-$RANDOM
23057 (umask 077 && mkdir
$tmp)
23060 echo "$me: cannot create a temporary directory in ." >&2
23061 { (exit 1); exit 1; }
23066 cat >>$CONFIG_STATUS <<_ACEOF
23069 # CONFIG_FILES section.
23072 # No need to generate the scripts if there are no CONFIG_FILES.
23073 # This happens for instance when ./config.status config.h
23074 if test -n "\$CONFIG_FILES"; then
23075 # Protect against being on the right side of a sed subst in config.status.
23076 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23077 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23078 s,@SHELL@,$SHELL,;t t
23079 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23080 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23081 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23082 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23083 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23084 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23085 s,@exec_prefix@,$exec_prefix,;t t
23086 s,@prefix@,$prefix,;t t
23087 s,@program_transform_name@,$program_transform_name,;t t
23088 s,@bindir@,$bindir,;t t
23089 s,@sbindir@,$sbindir,;t t
23090 s,@libexecdir@,$libexecdir,;t t
23091 s,@datadir@,$datadir,;t t
23092 s,@sysconfdir@,$sysconfdir,;t t
23093 s,@sharedstatedir@,$sharedstatedir,;t t
23094 s,@localstatedir@,$localstatedir,;t t
23095 s,@libdir@,$libdir,;t t
23096 s,@includedir@,$includedir,;t t
23097 s,@oldincludedir@,$oldincludedir,;t t
23098 s,@infodir@,$infodir,;t t
23099 s,@mandir@,$mandir,;t t
23100 s,@build_alias@,$build_alias,;t t
23101 s,@host_alias@,$host_alias,;t t
23102 s,@target_alias@,$target_alias,;t t
23103 s,@DEFS@,$DEFS,;t t
23104 s,@ECHO_C@,$ECHO_C,;t t
23105 s,@ECHO_N@,$ECHO_N,;t t
23106 s,@ECHO_T@,$ECHO_T,;t t
23107 s,@LIBS@,$LIBS,;t t
23108 s,@MAINT@,$MAINT,;t t
23109 s,@build@,$build,;t t
23110 s,@build_cpu@,$build_cpu,;t t
23111 s,@build_vendor@,$build_vendor,;t t
23112 s,@build_os@,$build_os,;t t
23113 s,@host@,$host,;t t
23114 s,@host_cpu@,$host_cpu,;t t
23115 s,@host_vendor@,$host_vendor,;t t
23116 s,@host_os@,$host_os,;t t
23118 s,@CFLAGS@,$CFLAGS,;t t
23119 s,@LDFLAGS@,$LDFLAGS,;t t
23120 s,@CPPFLAGS@,$CPPFLAGS,;t t
23121 s,@ac_ct_CC@,$ac_ct_CC,;t t
23122 s,@EXEEXT@,$EXEEXT,;t t
23123 s,@OBJEXT@,$OBJEXT,;t t
23124 s,@LN_S@,$LN_S,;t t
23126 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23127 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23128 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23129 s,@RANLIB@,$RANLIB,;t t
23130 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23131 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23132 s,@GZIP_PROG@,$GZIP_PROG,;t t
23133 s,@EGREP@,$EGREP,;t t
23134 s,@LIBSOUND@,$LIBSOUND,;t t
23135 s,@SET_MAKE@,$SET_MAKE,;t t
23136 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23137 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23138 s,@GTK_LIBS@,$GTK_LIBS,;t t
23139 s,@ALLOCA@,$ALLOCA,;t t
23140 s,@liblockfile@,$liblockfile,;t t
23141 s,@LIBOBJS@,$LIBOBJS,;t t
23142 s,@NEED_SETGID@,$NEED_SETGID,;t t
23143 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23144 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23145 s,@GETOPT_H@,$GETOPT_H,;t t
23146 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23147 s,@version@,$version,;t t
23148 s,@configuration@,$configuration,;t t
23149 s,@canonical@,$canonical,;t t
23150 s,@srcdir@,$srcdir,;t t
23151 s,@lispdir@,$lispdir,;t t
23152 s,@locallisppath@,$locallisppath,;t t
23153 s,@lisppath@,$lisppath,;t t
23154 s,@x_default_search_path@,$x_default_search_path,;t t
23155 s,@etcdir@,$etcdir,;t t
23156 s,@archlibdir@,$archlibdir,;t t
23157 s,@docdir@,$docdir,;t t
23158 s,@bitmapdir@,$bitmapdir,;t t
23159 s,@gamedir@,$gamedir,;t t
23160 s,@gameuser@,$gameuser,;t t
23161 s,@c_switch_system@,$c_switch_system,;t t
23162 s,@c_switch_machine@,$c_switch_machine,;t t
23163 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23164 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23165 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23166 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23167 s,@machfile@,$machfile,;t t
23168 s,@opsysfile@,$opsysfile,;t t
23169 s,@carbon_appdir@,$carbon_appdir,;t t
23170 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23175 cat >>$CONFIG_STATUS <<\_ACEOF
23176 # Split the substitutions into bite-sized pieces for seds with
23177 # small command number limits, like on Digital OSF/1 and HP-UX.
23178 ac_max_sed_lines
=48
23179 ac_sed_frag
=1 # Number of current file.
23180 ac_beg
=1 # First line for current file.
23181 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23184 while $ac_more_lines; do
23185 if test $ac_beg -gt 1; then
23186 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23188 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23190 if test ! -s $tmp/subs.frag
; then
23191 ac_more_lines
=false
23193 # The purpose of the label and of the branching condition is to
23194 # speed up the sed processing (if there are no `@' at all, there
23195 # is no need to browse any of the substitutions).
23196 # These are the two extra sed commands mentioned above.
23198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23199 if test -z "$ac_sed_cmds"; then
23200 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23202 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23204 ac_sed_frag
=`expr $ac_sed_frag + 1`
23206 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23209 if test -z "$ac_sed_cmds"; then
23212 fi # test -n "$CONFIG_FILES"
23215 cat >>$CONFIG_STATUS <<\_ACEOF
23216 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23219 - |
*:- |
*:-:* ) # input from stdin
23221 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23222 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23223 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23224 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23225 * ) ac_file_in
=$ac_file.
in ;;
23228 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23229 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23231 X"$ac_file" : 'X\(//\)[^/]' \| \
23232 X"$ac_file" : 'X\(//\)$' \| \
23233 X"$ac_file" : 'X\(/\)' \| \
23234 . : '\(.\)' 2>/dev/null ||
23236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23238 /^X\(\/\/\)$/{ s//\1/; q; }
23239 /^X\(\/\).*/{ s//\1/; q; }
23241 { if $as_mkdir_p; then
23246 while test ! -d "$as_dir"; do
23247 as_dirs
="$as_dir $as_dirs"
23248 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23250 X"$as_dir" : 'X\(//\)[^/]' \| \
23251 X"$as_dir" : 'X\(//\)$' \| \
23252 X"$as_dir" : 'X\(/\)' \| \
23253 . : '\(.\)' 2>/dev/null ||
23255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23257 /^X\(\/\/\)$/{ s//\1/; q; }
23258 /^X\(\/\).*/{ s//\1/; q; }
23261 test ! -n "$as_dirs" || mkdir
$as_dirs
23262 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23263 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23264 { (exit 1); exit 1; }; }; }
23268 if test "$ac_dir" != .
; then
23269 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23270 # A "../" for each directory in $ac_dir_suffix.
23271 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23273 ac_dir_suffix
= ac_top_builddir
=
23277 .
) # No --srcdir option. We are building in place.
23279 if test -z "$ac_top_builddir"; then
23282 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23284 [\\/]* | ?
:[\\/]* ) # Absolute path.
23285 ac_srcdir
=$srcdir$ac_dir_suffix;
23286 ac_top_srcdir
=$srcdir ;;
23287 *) # Relative path.
23288 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23289 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23292 # Do not use `cd foo && pwd` to compute absolute paths, because
23293 # the directories may not exist.
23295 .
) ac_abs_builddir
="$ac_dir";;
23298 .
) ac_abs_builddir
=`pwd`;;
23299 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23300 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23303 case $ac_abs_builddir in
23304 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23306 case ${ac_top_builddir}.
in
23307 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23308 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23309 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23312 case $ac_abs_builddir in
23313 .
) ac_abs_srcdir
=$ac_srcdir;;
23316 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23317 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23318 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23321 case $ac_abs_builddir in
23322 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23324 case $ac_top_srcdir in
23325 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23326 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23327 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23333 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23334 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23337 # Let's still pretend it is `configure' which instantiates (i.e., don't
23338 # use $as_me), people would be surprised to read:
23339 # /* config.h. Generated by config.status. */
23340 if test x
"$ac_file" = x-
; then
23343 configure_input
="$ac_file. "
23345 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23346 sed 's,.*/,,'` by configure."
23348 # First look for the input files in the build tree, otherwise in the
23350 ac_file_inputs
=`IFS=:
23351 for f in $ac_file_in; do
23353 -) echo $tmp/stdin ;;
23355 # Absolute (can't be DOS-style, as IFS=:)
23356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23357 echo "$as_me: error: cannot find input file: $f" >&2;}
23358 { (exit 1); exit 1; }; }
23361 if test -f "$f"; then
23364 elif test -f "$srcdir/$f"; then
23369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23370 echo "$as_me: error: cannot find input file: $f" >&2;}
23371 { (exit 1); exit 1; }; }
23374 done` ||
{ (exit 1); exit 1; }
23376 if test x
"$ac_file" != x-
; then
23377 { echo "$as_me:$LINENO: creating $ac_file" >&5
23378 echo "$as_me: creating $ac_file" >&6;}
23382 cat >>$CONFIG_STATUS <<_ACEOF
23386 cat >>$CONFIG_STATUS <<\_ACEOF
23388 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23389 s
,@configure_input@
,$configure_input,;t t
23390 s
,@srcdir@
,$ac_srcdir,;t t
23391 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23392 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23393 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23394 s
,@builddir@
,$ac_builddir,;t t
23395 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23396 s
,@top_builddir@
,$ac_top_builddir,;t t
23397 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23398 s
,@INSTALL@
,$ac_INSTALL,;t t
23399 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23401 if test x"$ac_file" != x-; then
23402 mv $tmp/out $ac_file
23410 cat >>$CONFIG_STATUS <<\_ACEOF
23413 # CONFIG_HEADER section.
23416 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23417 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23419 # ac_d sets the value in "#define NAME VALUE" lines.
23420 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23421 ac_dB
='[ ].*$,\1#\2'
23424 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23425 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23426 ac_uB
='$,\1#\2define\3'
23430 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23433 - |
*:- |
*:-:* ) # input from stdin
23435 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23436 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23437 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23438 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23439 * ) ac_file_in
=$ac_file.
in ;;
23442 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23443 echo "$as_me: creating $ac_file" >&6;}
23445 # First look for the input files in the build tree, otherwise in the
23447 ac_file_inputs
=`IFS=:
23448 for f in $ac_file_in; do
23450 -) echo $tmp/stdin ;;
23452 # Absolute (can't be DOS-style, as IFS=:)
23453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23454 echo "$as_me: error: cannot find input file: $f" >&2;}
23455 { (exit 1); exit 1; }; }
23456 # Do quote $f, to prevent DOS paths from being IFS'd.
23459 if test -f "$f"; then
23462 elif test -f "$srcdir/$f"; then
23467 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23468 echo "$as_me: error: cannot find input file: $f" >&2;}
23469 { (exit 1); exit 1; }; }
23472 done` ||
{ (exit 1); exit 1; }
23473 # Remove the trailing spaces.
23474 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23478 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23479 # `conftest.undefs', that substitutes the proper values into
23480 # config.h.in to produce config.h. The first handles `#define'
23481 # templates, and the second `#undef' templates.
23482 # And first: Protect against being on the right side of a sed subst in
23483 # config.status. Protect against being in an unquoted here document
23484 # in config.status.
23485 rm -f conftest.defines conftest.undefs
23486 # Using a here document instead of a string reduces the quoting nightmare.
23487 # Putting comments in sed scripts is not portable.
23489 # `end' is used to avoid that the second main sed command (meant for
23490 # 0-ary CPP macros) applies to n-ary macro definitions.
23491 # See the Autoconf documentation for `clear'.
23492 cat >confdef2sed.
sed <<\_ACEOF
23497 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23499 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23502 # If some macros were called several times there might be several times
23503 # the same #defines, which is useless. Nevertheless, we may not want to
23504 # sort them, since we want the *last* AC-DEFINE to be honored.
23505 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23506 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23507 rm -f confdef2sed.sed
23509 # This sed command replaces #undef with comments. This is necessary, for
23510 # example, in the case of _POSIX_SOURCE, which is predefined and required
23511 # on some systems where configure will not decide to define it.
23512 cat >>conftest.undefs <<\_ACEOF
23513 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23516 # Break up conftest.defines because some shells have a limit on the size
23517 # of here documents, and old seds have small limits too (100 cmds).
23518 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23519 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23520 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23521 echo ' :' >>$CONFIG_STATUS
23522 rm -f conftest.tail
23523 while grep . conftest.defines >/dev/null
23525 # Write a limited-size here document to $tmp/defines.sed.
23526 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23527 # Speed up: don't consider the non `#define' lines.
23528 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23529 # Work around the forget-to-reset-the-flag bug.
23530 echo 't clr' >>$CONFIG_STATUS
23531 echo ': clr' >>$CONFIG_STATUS
23532 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23534 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23536 mv $tmp/out $tmp/in
23538 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23539 rm -f conftest.defines
23540 mv conftest.
tail conftest.defines
23542 rm -f conftest.defines
23543 echo ' fi # grep' >>$CONFIG_STATUS
23544 echo >>$CONFIG_STATUS
23546 # Break up conftest.undefs because some shells have a limit on the size
23547 # of here documents, and old seds have small limits too (100 cmds).
23548 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23549 rm -f conftest.
tail
23550 while grep . conftest.undefs
>/dev
/null
23552 # Write a limited-size here document to $tmp/undefs.sed.
23553 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23554 # Speed up: don't consider the non
`#undef'
23555 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23556 # Work around the forget-to-reset-the-flag bug.
23557 echo 't clr' >>$CONFIG_STATUS
23558 echo ': clr' >>$CONFIG_STATUS
23559 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23561 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23563 mv $tmp/out $tmp/in
23565 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23566 rm -f conftest.undefs
23567 mv conftest.tail conftest.undefs
23569 rm -f conftest.undefs
23571 cat >>$CONFIG_STATUS <<\_ACEOF
23572 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23573 # use $as_me), people would be surprised to read:
23574 # /* config.h. Generated by config.status. */
23575 if test x
"$ac_file" = x-
; then
23576 echo "/* Generated by configure. */" >$tmp/config.h
23578 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23580 cat $tmp/in >>$tmp/config.h
23582 if test x
"$ac_file" != x-
; then
23583 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23584 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23585 echo "$as_me: $ac_file is unchanged" >&6;}
23587 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23589 X"$ac_file" : 'X\(//\)[^/]' \| \
23590 X"$ac_file" : 'X\(//\)$' \| \
23591 X"$ac_file" : 'X\(/\)' \| \
23592 . : '\(.\)' 2>/dev/null ||
23594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23596 /^X\(\/\/\)$/{ s//\1/; q; }
23597 /^X\(\/\).*/{ s//\1/; q; }
23599 { if $as_mkdir_p; then
23604 while test ! -d "$as_dir"; do
23605 as_dirs
="$as_dir $as_dirs"
23606 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23608 X"$as_dir" : 'X\(//\)[^/]' \| \
23609 X"$as_dir" : 'X\(//\)$' \| \
23610 X"$as_dir" : 'X\(/\)' \| \
23611 . : '\(.\)' 2>/dev/null ||
23613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23615 /^X\(\/\/\)$/{ s//\1/; q; }
23616 /^X\(\/\).*/{ s//\1/; q; }
23619 test ! -n "$as_dirs" || mkdir
$as_dirs
23620 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23621 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23622 { (exit 1); exit 1; }; }; }
23625 mv $tmp/config.h
$ac_file
23629 rm -f $tmp/config.h
23633 cat >>$CONFIG_STATUS <<\_ACEOF
23636 # CONFIG_COMMANDS section.
23638 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23639 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23640 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23641 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23642 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23643 X"$ac_dest" : 'X\(//\)[^/]' \| \
23644 X"$ac_dest" : 'X\(//\)$' \| \
23645 X"$ac_dest" : 'X\(/\)' \| \
23646 . : '\(.\)' 2>/dev/null ||
23648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23650 /^X\(\/\/\)$/{ s//\1/; q; }
23651 /^X\(\/\).*/{ s//\1/; q; }
23653 { if $as_mkdir_p; then
23658 while test ! -d "$as_dir"; do
23659 as_dirs
="$as_dir $as_dirs"
23660 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23662 X"$as_dir" : 'X\(//\)[^/]' \| \
23663 X"$as_dir" : 'X\(//\)$' \| \
23664 X"$as_dir" : 'X\(/\)' \| \
23665 . : '\(.\)' 2>/dev/null ||
23667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23669 /^X\(\/\/\)$/{ s//\1/; q; }
23670 /^X\(\/\).*/{ s//\1/; q; }
23673 test ! -n "$as_dirs" || mkdir
$as_dirs
23674 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23676 { (exit 1); exit 1; }; }; }
23680 if test "$ac_dir" != .
; then
23681 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23682 # A "../" for each directory in $ac_dir_suffix.
23683 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23685 ac_dir_suffix
= ac_top_builddir
=
23689 .
) # No --srcdir option. We are building in place.
23691 if test -z "$ac_top_builddir"; then
23694 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23696 [\\/]* | ?
:[\\/]* ) # Absolute path.
23697 ac_srcdir
=$srcdir$ac_dir_suffix;
23698 ac_top_srcdir
=$srcdir ;;
23699 *) # Relative path.
23700 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23701 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23704 # Do not use `cd foo && pwd` to compute absolute paths, because
23705 # the directories may not exist.
23707 .
) ac_abs_builddir
="$ac_dir";;
23710 .
) ac_abs_builddir
=`pwd`;;
23711 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23712 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23715 case $ac_abs_builddir in
23716 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23718 case ${ac_top_builddir}.
in
23719 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23720 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23721 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23724 case $ac_abs_builddir in
23725 .
) ac_abs_srcdir
=$ac_srcdir;;
23728 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23729 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23730 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23733 case $ac_abs_builddir in
23734 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23736 case $ac_top_srcdir in
23737 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23738 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23739 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23744 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23745 echo "$as_me: executing $ac_dest commands" >&6;}
23749 ### Make the necessary directories, if they don't exist.
23750 for dir
in etc lisp
; do
23751 test -d ${dir} || mkdir
${dir}
23754 # Build src/Makefile from ${srcdir}/src/Makefile.c
23755 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23756 # This must be done after src/config.h is built, since we rely on that file.
23758 # Now get this: Some word that is part of the ${srcdir} directory name
23759 # or the ${configuration} value might, just might, happen to be an
23760 # identifier like `sun4' or `i386' or something, and be predefined by
23761 # the C preprocessor to some helpful value like 1, or maybe the empty
23762 # string. Needless to say consequent macro substitutions are less
23763 # than conducive to the makefile finding the correct directory.
23764 undefs
="`echo $top_srcdir $configuration $canonical |
23765 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23766 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23769 echo creating src
/epaths.h
23770 ${MAKE-make} epaths-force
23772 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23773 # `..' to `. .' unless invoked with -traditional
23775 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23776 CPPFLAGS
="$CPPFLAGS -traditional"
23779 echo creating lib-src
/Makefile
23781 rm -f junk.c junk1.c junk2.c
23782 sed -e '/start of cpp stuff/q' \
23783 < Makefile.c
> junk1.c
23784 sed -e '1,/start of cpp stuff/d'\
23785 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23786 < Makefile.c
> junk.c
23787 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23788 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23789 cat junk1.c junk2.c
> Makefile.new
23790 rm -f junk.c junk1.c junk2.c
23791 chmod 444 Makefile.new
23792 mv -f Makefile.new Makefile
23795 echo creating src
/Makefile
23797 rm -f junk.c junk1.c junk2.c
23798 sed -e '/start of cpp stuff/q' \
23799 < Makefile.c
> junk1.c
23800 sed -e '1,/start of cpp stuff/d'\
23801 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23802 < Makefile.c
> junk.c
23803 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23804 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23805 cat junk1.c junk2.c
> Makefile.new
23806 rm -f junk.c junk1.c junk2.c
23807 chmod 444 Makefile.new
23808 mv -f Makefile.new Makefile
23811 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23812 echo creating src
/.gdbinit
23813 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23816 # This is how we know whether to re-run configure in certain cases.
23817 touch src
/config.stamp
23824 cat >>$CONFIG_STATUS <<\_ACEOF
23826 { (exit 0); exit 0; }
23828 chmod +x
$CONFIG_STATUS
23829 ac_clean_files
=$ac_clean_files_save
23832 # configure is writing to config.log, and then calls config.status.
23833 # config.status does its own redirection, appending to config.log.
23834 # Unfortunately, on DOS this fails, as config.log is still kept open
23835 # by configure, so config.status won't be able to write to it; its
23836 # output is simply discarded. So we exec the FD to /dev/null,
23837 # effectively closing config.log, so it can be properly (re)opened and
23838 # appended to by config.status. When coming back to configure, we
23839 # need to make the FD available again.
23840 if test "$no_create" != yes; then
23842 ac_config_status_args
=
23843 test "$silent" = yes &&
23844 ac_config_status_args
="$ac_config_status_args --quiet"
23846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23849 # would make configure fail if this is the last instruction.
23850 $ac_cs_success ||
{ (exit 1); exit 1; }